Skip to content

Commit

Permalink
Fix single subscripition issue for diag on MG
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhang9 committed Oct 22, 2024
1 parent 36471aa commit 6d1a172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eslzArm/eslzArm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2718,7 +2718,8 @@
},
{
// Deploying Diagnostic Settings to ESLite management groups if Log Analytics was deployed via a loop
"condition": "[and(not(empty(parameters('singlePlatformSubscriptionId'))), empty(parameters('managementSubscriptionId')), equals(parameters('enableLogAnalytics'), 'Yes'))]",
// exclude Mooncake since Management Group Diagnostic Settings Rest API is NOT supported in Azure China. https://learn.microsoft.com/en-us/answers/questions/1640390/confirm-if-management-group-diagnostic-settings-re
"condition": "[and(not(empty(parameters('singlePlatformSubscriptionId'))), empty(parameters('managementSubscriptionId')), equals(parameters('enableLogAnalytics'), 'Yes'), not(equals(environment().resourceManager, 'https://management.chinacloudapi.cn')))]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-10-01",
"name": "[take(concat(variables('mgmtGroupsESLiteArray')[copyIndex()], variables('deploymentNames').diagnosticSettingsforMGsDeploymentName), 64)]",
Expand Down

0 comments on commit 6d1a172

Please sign in to comment.