From b3fe447f2fc748798c85d56d64115145883cb23e Mon Sep 17 00:00:00 2001 From: Yutaro SUGAI Date: Thu, 3 Sep 2026 05:57:36 +0000 Subject: [PATCH] fix: expand supported-regions allowlist to match official list The Bicep/Terraform/clone-agent.sh region allowlists only listed 4 regions (swedencentral, uksouth, eastus2, australiaeast), but Azure SRE Agent now supports 18 regions per the official reference. This blocked deployments to any of the other 14 regions, including japaneast. Fixes #247 Co-Authored-By: Claude Sonnet 5 --- sreagent-templates/CHANGELOG.md | 3 +++ sreagent-templates/VERSION | 2 +- sreagent-templates/bicep/main.bicep | 4 ++-- sreagent-templates/bin/clone-agent.sh | 8 ++++---- sreagent-templates/docs/GETTING-STARTED.md | 6 ++++-- sreagent-templates/terraform/variables.tf | 6 +++--- 6 files changed, 17 insertions(+), 12 deletions(-) diff --git a/sreagent-templates/CHANGELOG.md b/sreagent-templates/CHANGELOG.md index e11d56cfb..ab95a962c 100644 --- a/sreagent-templates/CHANGELOG.md +++ b/sreagent-templates/CHANGELOG.md @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Expanded the supported-regions allowlist from 4 to the current 18 regions (adds `japaneast`, `canadacentral`, `centralus`, `eastasia`, `francecentral`, `italynorth`, `koreacentral`, `northcentralus`, `southafricanorth`, `southeastasia`, `spaincentral`, `westcentralus`, `westus2`, `westus3`) in `bicep/main.bicep`, `terraform/variables.tf`, `bin/clone-agent.sh`, and `docs/GETTING-STARTED.md` to match the [official supported-regions reference](https://learn.microsoft.com/azure/sre-agent/supported-regions). Fixes #247. + ## [1.0.0] — 2026-05-07 ### Deploy Backends diff --git a/sreagent-templates/VERSION b/sreagent-templates/VERSION index 3eefcb9dd..7dea76edb 100644 --- a/sreagent-templates/VERSION +++ b/sreagent-templates/VERSION @@ -1 +1 @@ -1.0.0 +1.0.1 diff --git a/sreagent-templates/bicep/main.bicep b/sreagent-templates/bicep/main.bicep index 55c417f76..42d1b5995 100644 --- a/sreagent-templates/bicep/main.bicep +++ b/sreagent-templates/bicep/main.bicep @@ -30,8 +30,8 @@ param agentName string @description('Required. Resource group that holds the agent + its identity + LAW + App Insights. Separate from the RGs the agent monitors.') param agentResourceGroupName string -@description('Required. Region. Only the regions in @allowed are currently supported by the SRE Agent RP.') -@allowed(['swedencentral', 'uksouth', 'eastus2', 'australiaeast']) +@description('Required. Region. Only the regions in @allowed are currently supported by the SRE Agent RP. See https://learn.microsoft.com/azure/sre-agent/supported-regions') +@allowed(['australiaeast', 'canadacentral', 'centralus', 'eastasia', 'eastus2', 'francecentral', 'italynorth', 'japaneast', 'koreacentral', 'northcentralus', 'southafricanorth', 'southeastasia', 'spaincentral', 'swedencentral', 'uksouth', 'westcentralus', 'westus2', 'westus3']) param location string = 'eastus2' @description('Required. Resource groups the agent is granted access to (read or act, depending on accessLevel).') diff --git a/sreagent-templates/bin/clone-agent.sh b/sreagent-templates/bin/clone-agent.sh index f60630db9..6a667811d 100755 --- a/sreagent-templates/bin/clone-agent.sh +++ b/sreagent-templates/bin/clone-agent.sh @@ -202,7 +202,7 @@ else fi # 2b. Region is supported -ALLOWED_REGIONS=("swedencentral" "uksouth" "eastus2" "australiaeast") +ALLOWED_REGIONS=("australiaeast" "canadacentral" "centralus" "eastasia" "eastus2" "francecentral" "italynorth" "japaneast" "koreacentral" "northcentralus" "southafricanorth" "southeastasia" "spaincentral" "swedencentral" "uksouth" "westcentralus" "westus2" "westus3") if printf '%s\n' "${ALLOWED_REGIONS[@]}" | grep -qx "$NEW_LOC"; then _ok "Region '${NEW_LOC}' is supported" else @@ -408,12 +408,12 @@ else _err "No connectors configured — agent will have no observability data to work with" fi -# 4b. Region — all 4 supported regions are equal -SUPPORTED_REGIONS=("eastus2" "swedencentral" "uksouth" "australiaeast") +# 4b. Region — all supported regions are equal +SUPPORTED_REGIONS=("australiaeast" "canadacentral" "centralus" "eastasia" "eastus2" "francecentral" "italynorth" "japaneast" "koreacentral" "northcentralus" "southafricanorth" "southeastasia" "spaincentral" "swedencentral" "uksouth" "westcentralus" "westus2" "westus3") if printf '%s\n' "${SUPPORTED_REGIONS[@]}" | grep -qx "$NEW_LOC"; then _ok "Region '${NEW_LOC}' is supported" else - _err "Region '${NEW_LOC}' not supported. Must be: eastus2, swedencentral, uksouth, or australiaeast" + _err "Region '${NEW_LOC}' not supported. Must be one of: ${SUPPORTED_REGIONS[*]}" fi # 4d. Skills — at least one skill recommended diff --git a/sreagent-templates/docs/GETTING-STARTED.md b/sreagent-templates/docs/GETTING-STARTED.md index 7bdcfd497..6acd4854a 100644 --- a/sreagent-templates/docs/GETTING-STARTED.md +++ b/sreagent-templates/docs/GETTING-STARTED.md @@ -150,7 +150,7 @@ For connectors that use MI, no secrets are needed in files — just RBAC grants. ``` Checks: -- Region is supported (eastus2, swedencentral, uksouth, australiaeast) +- Region is supported (see [Supported regions](#supported-regions)) - At least 1 connector configured - No unfilled `EDIT_ME` placeholders - Connector auth requirements flagged (which need tokens, which need portal sign-in) @@ -218,4 +218,6 @@ cd agents/prod && git add -A && git commit -m "backup $(date +%Y-%m-%d)" && git ## Supported regions -`eastus2` · `swedencentral` · `uksouth` · `australiaeast` +`australiaeast` · `canadacentral` · `centralus` · `eastasia` · `eastus2` · `francecentral` · `italynorth` · `japaneast` · `koreacentral` · `northcentralus` · `southafricanorth` · `southeastasia` · `spaincentral` · `swedencentral` · `uksouth` · `westcentralus` · `westus2` · `westus3` + +See the [official supported-regions reference](https://learn.microsoft.com/azure/sre-agent/supported-regions) for the current, canonical list. diff --git a/sreagent-templates/terraform/variables.tf b/sreagent-templates/terraform/variables.tf index ba0c78dac..f6f5d7fd5 100644 --- a/sreagent-templates/terraform/variables.tf +++ b/sreagent-templates/terraform/variables.tf @@ -20,13 +20,13 @@ variable "resource_group_name" { } variable "location" { - description = "Azure region. Only regions supported by the SRE Agent RP." + description = "Azure region. Only regions supported by the SRE Agent RP. See https://learn.microsoft.com/azure/sre-agent/supported-regions" type = string default = "eastus2" validation { - condition = contains(["swedencentral", "uksouth", "eastus2", "australiaeast"], var.location) - error_message = "location must be one of: swedencentral, uksouth, eastus2, australiaeast." + condition = contains(["australiaeast", "canadacentral", "centralus", "eastasia", "eastus2", "francecentral", "italynorth", "japaneast", "koreacentral", "northcentralus", "southafricanorth", "southeastasia", "spaincentral", "swedencentral", "uksouth", "westcentralus", "westus2", "westus3"], var.location) + error_message = "location must be one of: australiaeast, canadacentral, centralus, eastasia, eastus2, francecentral, italynorth, japaneast, koreacentral, northcentralus, southafricanorth, southeastasia, spaincentral, swedencentral, uksouth, westcentralus, westus2, westus3." } }