Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing Stack auto-scale group deployment fails b/c region doesn't support Application Insights resources #43

Open
steveh565 opened this issue Nov 26, 2024 · 0 comments

Comments

@steveh565
Copy link

Describe the bug

Deployment fails at step bigIpTemplate with the following error:
{
"error": {
"code": "BadRequest",
"message": "Region doesn't support Classic resource mode for Application Insights resources. Please use Workspace-based mode.",
"innererror": {
"trace": [
"System.ArgumentException"
]
}
}
}

Expected behavior

User Input validation should catch this error and handle it gracefully.

Current behavior

unexpected deployment failure:
{
"error": {
"code": "BadRequest",
"message": "Region doesn't support Classic resource mode for Application Insights resources. Please use Workspace-based mode.",
"innererror": {
"trace": [
"System.ArgumentException"
]
}
}
}

Possible solution

Improve user input validation to detect this condition before trying to attempt the deployment.

Steps to reproduce

Click to deploy existing stack auto-scale set template, select subnets input SSH key and all that good stuff and then the deployment fails trying to create a resource type unsupported by the region the resource group is deployed in.

https://portal.azure.com/#view/HubsExtension/DeploymentDetailsBlade/~/overview/id/%2Fsubscriptions%2Fb9922b70-7518-4b04-bf9d-3aabbca45b0a%2FresourceGroups%2Fsh-observability%2Fproviders%2FMicrosoft.Resources%2Fdeployments%2FMicrosoft.Template-20241126082639/packageId/Microsoft.Template/packageIconUri/https%3A%2F%2Fcatalogartifact.azureedge.net%2Fpublicartifacts%2FMicrosoft.Template-2.1.8%2FMedium.png/primaryResourceId//createBlade~/%7B%22bladeName%22%3A%22CustomDeploymentBlade%22%2C%22extension%22%3A%22Microsoft_Azure_CreateUIDef%22%2C%22telemetryId%22%3A%22575e4d87-a971-4f1a-9630-22a1b6f2079c%22%7D

Screenshots

arm-template-fail
g to accomplish? -->

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

No branches or pull requests

1 participant