last sync: 2023-Jun-19 17:45:01 UTC

Community Policy definition

Create Delete Lock on specified Azure VMs

Name Create Delete Lock on specified Azure VMs
Community-Policy GitHub
Id 950850fa-9a1a-4bd5-941d-01d0d6dbbf4b
Version 1.0.0
details on versioning
Category Compute
Microsoft docs
Description List the VM names under the parameter vmName that you want to create a Delete Lock on./nThen expand the deployment variables and the resources to the amount of VMs given in the vmName array parameter. Make sure the values and deployment variables and resources are always aligned in numbers.
Mode All
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
Used RBAC Role
Role Name Role Id
User Access Administrator 18d7d88d-d35e-4fb5-a5c3-7773c20a72d9
Contributor b24988ac-6180-42a0-ab88-20f7382dd24c
Rule Aliases THEN-ExistenceCondition (1)
Alias Namespace ResourceType DefaultPath Modifiable
Microsoft.Authorization/locks/level Microsoft.Authorization locks properties.level false
Rule ResourceTypes IF (1)
Microsoft.Compute/virtualMachines
THEN-Deployment (2)
Microsoft.Authorization/locks
Microsoft.Compute/virtualMachines
JSON