Deployment fails in westus3 due to "Region doesn’t support Classic resource mode for Application Insights resources." #1273 (#1291)

Co-authored-by: stas <statis@microsoft.com>
This commit is contained in:
Stas
2021-09-29 08:09:09 -07:00
committed by GitHub
parent 22b2d62e29
commit c4133be8f5

View File

@ -388,8 +388,17 @@
"OWNER": "[parameters('owner')]"
}
},
{
"apiVersion": "2015-05-01",
"type": "Microsoft.OperationalInsights/workspaces",
"apiVersion": "2020-08-01",
"name": "[parameters('name')]",
"location": "[resourceGroup().location]",
"properties": {}
},
{
"apiVersion": "2020-02-02-preview",
"name": "[parameters('name')]",
"type": "microsoft.insights/components",
"location": "[resourceGroup().location]",
@ -397,11 +406,15 @@
"properties": {
"ApplicationId": "[parameters('name')]",
"Application_Type": "other",
"RetentionInDays": "[variables('log_retention')]"
"RetentionInDays": "[variables('log_retention')]",
"WorkspaceResourceId" : "[resourceId('Microsoft.OperationalInsights/workspaces', parameters('name'))]"
},
"tags": {
"OWNER": "[parameters('owner')]"
},
"dependsOn" : [
"[resourceId('Microsoft.OperationalInsights/workspaces', parameters('name'))]"
],
"resources": [
{
"name": "df20765c-ed5b-46f9-a47b-20f4aaf7936d",