Skip to content

Commit 1cd6b41

Browse files
committed
Adding skip scenarios for modify policies
1 parent 9f1880c commit 1cd6b41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/governance/policy/concepts/effect-modify.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ If either of these checks fail, the policy evaluation falls back to the specifie
4242
There are some cases when modify operations are skipped during evaluation:
4343
- When the condition of an operation in the `operations` array is evaluated to _false_, that particular operation is skipped.
4444
- If an alias specified for an operation is not modifiable in the request's API version, then evaluation uses the conflict effect. If the conflict effect is set to _deny_, the request will be blocked. If the conflict effect is set to _audit_, the request will be allowed through but the modify operation will be skipped.
45-
- [LEFT OFF HERE]
45+
- In some cases, modifiable properties are nested within other properties and have an alias like `Microsoft.Storage/storageAccounts/blobServices/deleteRetentionPolicy.enabled`. If the "parent" property, in this case `deleteRetentionPolicy`, is not present in the request, modification is skipped because this is assumed to be ommitted intentionally.
46+
- When a modify operation attempts to add or replace the `identity.type` field on a resource other than a Virtual Machine or Virtual Machine Scale Set, policy evaluation is skipped altogether so the modification is not performed. In this case, the resource is considered not [applicable](../concepts/policy-applicability.md) to the policy.
4647

4748
When a policy definition using the `modify` effect is run as part of an evaluation cycle, it doesn't make changes to resources that already exist. Instead, it marks any resource that meets the `if` condition as non-compliant.
4849

0 commit comments

Comments
 (0)