Skip to content

Commit 7f23b7e

Browse files
committed
Added note about DINE permission behavior for evaluation vs deployment
1 parent 8cde23f commit 7f23b7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/governance/policy/concepts/assignment-structure.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ Assignments using a system-assigned managed identity must also specify a top-lev
372372
},
373373
```
374374

375+
> [!NOTE]
376+
>
377+
> For a _deployIfNotExists_ policy, the assignment identity is always used for the ARM Template deployment. However, when the target resource is created or updated, the requestor's identity is used for the evaluation.
378+
>
379+
> For example, imagine a policy which deploys Microsoft.Insights/diagnosticSettings on Microsoft.KeyVault/vaults. When a key vault is created, the caller identity will be used to get the Microsoft.Insights/diagnosticSettings resources to evaluate the existence condition of the policy definition. If the conditions are met, then the policy assignment's identity will be used to deploy the diagnostic settings on the key vault. This means that the caller would need Microsoft.Insights/diagnosticSettings/read permissions, and the assignment would need Microsoft.Insights/diagnosticSettings/write permissions.
380+
375381
## Next steps
376382

377383
- Learn about the [policy definition structure](./definition-structure-basics.md).

0 commit comments

Comments
 (0)