Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions sreagent-templates/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sreagent-templates/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
4 changes: 2 additions & 2 deletions sreagent-templates/bicep/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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).')
Expand Down
8 changes: 4 additions & 4 deletions sreagent-templates/bin/clone-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions sreagent-templates/docs/GETTING-STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
6 changes: 3 additions & 3 deletions sreagent-templates/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

Expand Down