Fixes empty parameters for amba service hook and email contact (#1818)

This commit is contained in:
Arjen Huitema 2024-11-05 09:56:42 +01:00 коммит произвёл GitHub
Родитель 548bb1d58a
Коммит 77496912e0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -75,6 +75,7 @@ Here's what's changed in Enterprise Scale/Azure Landing Zones:
- Resolved a bug in the Portal Accelerator related to deploying the single platform subscription setup. Incorrect parameter settings led to the failure of AMBA, as it erroneously attempted to deploy to a standard management group structure instead of a single platform management group as needed.
- Increasing Policy assignment delay by a couple of minutes to help reduce assignment errors using the portal accelerator experience (the infamous "please wait 30 minutes and try again" error).
- An issue with the Portal Accelerator regarding the Azure Monitor Baseline Alerts notifications settings was resolved. The problem occurred when no Email Address or Service Hook was specified on the Baseline alerts and monitoring tab. In this scenario, an empty string was converted to an array, resulting in the format `[""]` instead of `[]`. This caused errors during the remediation of the Notification Assets initiative.
### September 2024

Просмотреть файл

@ -2268,7 +2268,7 @@
"value": "[parameters('userAssignedManagedIdentityName')]"
},
"ALZWebhookServiceUri": {
"value": "[array(parameters('ambaAgServiceHook'))]"
"value": "[if(empty(parameters('ambaAgServiceHook')), null(), array(parameters('ambaAgServiceHook')))]"
},
"ALZArmRoleId": {
"value": "[array(parameters('ambaAgArmRole'))]"
@ -2283,7 +2283,7 @@
"value": "[deployment().location]"
},
"ALZMonitorActionGroupEmail": {
"value": "[array(parameters('ambaAgEmailContact'))]"
"value": "[if(empty(parameters('ambaAgEmailContact')), null(), array(parameters('ambaAgEmailContact')))]"
},
"managementSubscriptionId": {
"value": "[parameters('managementSubscriptionId')]"