Skip to content

Conversation

pamelafox
Copy link
Contributor

Purpose

This pull request updates the location parameter in the infra/main.bicep file to restrict allowed deployment regions and add relevant metadata. The main change ensures that deployments can only be performed in regions supported by microsoft.insights/components.

Resource region restrictions:

  • Added an @allowed decorator to the location parameter, listing all supported Azure regions for microsoft.insights/components. This prevents deployments in unsupported regions.
  • Added an @metadata decorator to the location parameter to specify its type as 'location' for azd.

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[X] No

Type of change

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist

See CONTRIBUTING.md for more details.

N/A

@pamelafox pamelafox requested a review from Copilot October 3, 2025 17:48
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR restricts the allowed deployment regions for Azure resources by adding validation to the location parameter in the Bicep infrastructure file. The restriction is implemented due to regional limitations of the microsoft.insights/components resource.

  • Added an @allowed decorator listing all 54 supported Azure regions for Application Insights components
  • Added an @metadata decorator to specify the parameter type as 'location' for Azure Developer CLI

@pamelafox pamelafox merged commit 9e53c6c into main Oct 3, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant