diff --git a/CHANGELOG.md b/CHANGELOG.md index c85abca..d49b05b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Unreleased + +Added + * AZ-1336: Add `zone_balancing_enabled` parameter + # v6.3.0 - 2023-12-01 Added diff --git a/README.md b/README.md index 26d3558..9fe359c 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ module "app_service_plan" { | stack | Project stack name | `string` | n/a | yes | | use\_caf\_naming | Use the Azure CAF naming provider to generate default resource name. `custom_name` override this if set. Legacy default name is used if this is set to `false`. | `bool` | `true` | no | | worker\_count | The number of Workers (instances) to be allocated. | `number` | `3` | no | +| zone\_balancing\_enabled | Should the Service Plan balance across Availability Zones in the region. | `bool` | `true` | no | ## Outputs diff --git a/resources.tf b/resources.tf index a16db62..d081af4 100644 --- a/resources.tf +++ b/resources.tf @@ -4,8 +4,9 @@ resource "azurerm_service_plan" "plan" { location = var.location resource_group_name = var.resource_group_name - os_type = var.os_type - sku_name = var.sku_name + os_type = var.os_type + sku_name = var.sku_name + zone_balancing_enabled = var.zone_balancing_enabled worker_count = var.sku_name == "Y1" ? null : var.worker_count maximum_elastic_worker_count = var.maximum_elastic_worker_count diff --git a/variables.tf b/variables.tf index 5c48efd..79886e7 100644 --- a/variables.tf +++ b/variables.tf @@ -71,3 +71,9 @@ variable "per_site_scaling_enabled" { type = bool default = false } + +variable "zone_balancing_enabled" { + description = "Should the Service Plan balance across Availability Zones in the region." + type = bool + default = true +}