last sync: 2025-Jun-06 17:23:16 UTC

Allow custom VM image from a Resource Group

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 841c8cb0-cce0-4716-a026-5254dd6468c6 (1.0.0) to Azure
Display name Allow custom VM image from a Resource Group
Id 841c8cb0-cce0-4716-a026-5254dd6468c6
Version 1.0.0
Details on versioning
Category Compute
Microsoft Learn
Description This policy allows only usage of images from a resource group
Mode All
Type Custom Community
Effect Default
Audit
Allowed
Deny, Audit, Disabled
RBAC role(s) none
Rule aliases IF (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Compute/imageId Microsoft.Compute
Microsoft.Compute
Microsoft.Compute
virtualMachines
virtualMachineScaleSets
disks
properties.storageProfile.imageReference.id
properties.virtualMachineProfile.storageProfile.imageReference.id
properties.creationData.imageReference.id
True
True
True


False
False
False
Rule resource types IF (1)
Microsoft.Compute/virtualMachines
JSON
EPAC
Deploy policy 841c8cb0-cce0-4716-a026-5254dd6468c6 (1.0.0) to Azure