last sync: 2025-May-26 17:12:08 UTC

Deploy Windows VM Application

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 25c202a4-16b4-403f-82d4-0dba3e3e689a (1.0.0) to Azure
Display name Deploy Windows VM Application
Id 25c202a4-16b4-403f-82d4-0dba3e3e689a
Version 1.0.0
Details on versioning
Category Compute
Microsoft Learn
Description This policy will deploy a vm application to Windows virtual machines. You will need to assign the managed identity the reader role to the Azure Compute Gallery where the application resides. Users or service principles deploying virtual machines will also need the reader role assigned to the Azure Compute Gallery for the policy to take effect during new virtual machine deployments
Mode Indexed
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Virtual Machine Contributor 9980e02c-c2be-4d73-94e8-173b1dc7cf3c
Managed Application Publisher Operator b9331d33-8a36-4f8c-b097-4f54124fdb44
Rule aliases IF (3)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Compute/imageOffer Microsoft.Compute
Microsoft.Compute
Microsoft.Compute
virtualMachines
virtualMachineScaleSets
disks
properties.storageProfile.imageReference.offer
properties.virtualMachineProfile.storageProfile.imageReference.offer
properties.creationData.imageReference.id
True
True
True


False
False
False
Microsoft.Compute/imagePublisher Microsoft.Compute
Microsoft.Compute
Microsoft.Compute
virtualMachines
virtualMachineScaleSets
disks
properties.storageProfile.imageReference.publisher
properties.virtualMachineProfile.storageProfile.imageReference.publisher
properties.creationData.imageReference.id
True
True
True


False
False
False
Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType Microsoft.Compute virtualMachines properties.storageProfile.osDisk.osType True True
THEN-ExistenceCondition (2)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Compute/virtualMachines/applicationProfile.galleryApplications[*] Microsoft.Compute virtualMachines properties.applicationProfile.galleryApplications[*] True False
Microsoft.Compute/virtualMachines/applicationProfile.galleryApplications[*].packageReferenceId Microsoft.Compute virtualMachines properties.applicationProfile.galleryApplications[*].packageReferenceId True False
Rule resource types IF (1)
Microsoft.Compute/virtualMachines
THEN-Deployment (1)
Microsoft.Compute/virtualMachines/VMapplications
JSON
EPAC
Deploy policy 25c202a4-16b4-403f-82d4-0dba3e3e689a (1.0.0) to Azure