Source |
Repository Community-Policy GitHub JSON Community-Policy GitHub |
|||||||||||||||||||||
Display name | Deploy or audit for a specific role assignment at the subscription scope | |||||||||||||||||||||
Id | 7700791c-4631-45b6-9880-3a493d1827a5 | |||||||||||||||||||||
Version | 1.0.0 Details on versioning |
|||||||||||||||||||||
Category | Authorization Microsoft Learn |
|||||||||||||||||||||
Description | This policy will validate that a specific role assignment exists or not. It can either audit for the role assignment or deploy it if it does not exist. | |||||||||||||||||||||
Mode | All | |||||||||||||||||||||
Type | Custom Community | |||||||||||||||||||||
Effect | Default DeployIfNotExists Allowed DeployIfNotExists, AuditIfNotExists, Disabled |
|||||||||||||||||||||
RBAC role(s) |
|
|||||||||||||||||||||
Rule aliases | THEN-ExistenceCondition (2)
|
|||||||||||||||||||||
Rule resource types | IF (1) Microsoft.Resources/subscriptions THEN-Deployment (2) Microsoft.Authorization/roleAssignments Microsoft.Authorization/roleDefinitions |
|||||||||||||||||||||
JSON |
|