f5-azure-arm-templates-v2
f5-azure-arm-templates-v2 copied to clipboard
Existing Stack auto-scale group deployment fails b/c region doesn't support Application Insights resources
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
g to accomplish? -->