Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions modules/terraform-cdp-deploy/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,13 @@ variable "azure_environment_flexible_server_delegated_subnet_names" {
default = null

validation {
condition = !(
condition = (
var.infra_type == "azure" &&
(var.azure_environment_flexible_server_delegated_subnet_names != null &&
length(var.azure_environment_flexible_server_delegated_subnet_names) > 0) &&
try(length(var.azure_environment_flexible_server_delegated_subnet_names), 0) > 0) &&
(var.azure_create_private_endpoints == true)
)
error_message = "azure_environment_flexible_server_delegated_subnet_names and azure_create_private_endpoints are mutually exclusive and cannot be used together."
) ? false : true
error_message = "azure_environment_flexible_server_delegated_subnet_names and azure_create_private_endpoints are mutually exclusive and cannot be used together when infra_type is 'azure'."
}

}
Expand Down