Skip to content

Commit

Permalink
Change "evaluationDelay" to "AfterProvisioning"
Browse files Browse the repository at this point in the history
The policy evaluation has been set to run after the provisioning instead of waiting for 10 minutes.
For more information, refer to:
https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effects#deployifnotexists
  • Loading branch information
aschabus committed Dec 19, 2023
1 parent 14507f1 commit 7e8e025
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Authorization/locks",
"evaluationDelay": "AfterProvisioning",
"existenceCondition": {
"field": "Microsoft.Authorization/locks/level",
"equals": "CanNotDelete"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Authorization/locks",
"evaluationDelay": "AfterProvisioning",
"existenceCondition": {
"field": "Microsoft.Authorization/locks/level",
"equals": "CanNotDelete"
Expand Down

0 comments on commit 7e8e025

Please sign in to comment.