Skip to content

Conversation

pamelafox
Copy link
Collaborator

Purpose

Without this change, I selected "westcentralus" for the location, and got this error:
"Deployment Error Details:
LocationNotAvailableForResourceType: The provided location 'westcentralus' is not available for resource type 'microsoft.insights/components'. List of available regions for the resource type is 'eastus,southcentralus,northeurope,westeurope,southeastasia,westus2,uksouth,canadacentral,centralindia,japaneast,australiaeast,koreacentral,francecentral,centralus,eastus2,eastasia,westus,southafricanorth,northcentralus,brazilsouth,switzerlandnorth,norwayeast,norwaywest,australiasoutheast,australiacentral2,germanywestcentral,switzerlandwest,uaecentral,ukwest,japanwest,brazilsoutheast,uaenorth,australiacentral,southindia,westus3,koreasouth,swedencentral,canadaeast,jioindiacentral,jioindiawest,qatarcentral,southafricawest,germanynorth,polandcentral,israelcentral,italynorth,mexicocentral,spaincentral,newzealandnorth,chilecentral,indonesiacentral,malaysiawest'."

With this change, developers can only select one of those locations, so they should never get that error.

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

Does this require changes to learn.microsoft.com docs?

This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial,
check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.

[ ] 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 7, 2025 01:09
Copy link
Contributor

@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 Azure locations for deployment to prevent errors when provisioning Application Insights components. The change addresses a deployment failure that occurs when users select unsupported regions like "westcentralus" for Azure Application Insights resources.

  • Added an @allowed parameter validation decorator to the location parameter
  • Included all 55 supported regions for microsoft.insights/components resource type
  • Added explanatory comment about the regional restrictions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pamelafox pamelafox marked this pull request as ready for review October 7, 2025 01:19
@pamelafox pamelafox requested a review from Copilot October 7, 2025 01:25
Copy link
Contributor

@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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

2 participants