From 4530ccb4d003447cf4d61c8339e51369f5aba6b4 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Fri, 20 Oct 2023 20:47:10 +0200 Subject: [PATCH] Added batch to security center to how to fix update bug --- modules/security/azure-security-center/main.bicep | 1 + modules/security/azure-security-center/main.json | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/security/azure-security-center/main.bicep b/modules/security/azure-security-center/main.bicep index e1f9fbcab4..d0adb8211a 100644 --- a/modules/security/azure-security-center/main.bicep +++ b/modules/security/azure-security-center/main.bicep @@ -191,6 +191,7 @@ resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' = if (ena } } +@batchSize(1) resource pricingTiers 'Microsoft.Security/pricings@2018-06-01' = [for (pricing, index) in pricings: { name: pricing.name properties: { diff --git a/modules/security/azure-security-center/main.json b/modules/security/azure-security-center/main.json index cf4fce1f0b..757ee94252 100644 --- a/modules/security/azure-security-center/main.json +++ b/modules/security/azure-security-center/main.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.22.6.54827", - "templateHash": "5337788890835022528" + "templateHash": "6628258573559470770" }, "name": "Azure Security Center (Defender for Cloud)", "description": "This module deploys an Azure Security Center (Defender for Cloud) Configuration.", @@ -289,7 +289,9 @@ { "copy": { "name": "pricingTiers", - "count": "[length(variables('pricings'))]" + "count": "[length(variables('pricings'))]", + "mode": "serial", + "batchSize": 1 }, "type": "Microsoft.Security/pricings", "apiVersion": "2018-06-01",