Skip to content

Commit

Permalink
Added batch to security center to how to fix update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Oct 20, 2023
1 parent 70360b6 commit 4530ccb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/security/azure-security-center/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
6 changes: 4 additions & 2 deletions modules/security/azure-security-center/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 4530ccb

Please sign in to comment.