last sync: 2025-Apr-29 17:16:02 UTC

Deploy Linux VM Application

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy b83d392d-3a11-41ac-bf39-c6ee381b9255 (1.0.0) to Azure
Display name Deploy Linux VM Application
Id b83d392d-3a11-41ac-bf39-c6ee381b9255
Version 1.0.0
Details on versioning
Category Compute
Microsoft Learn
Description This policy will deploy a vm application to Linux 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
Rule aliases IF (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
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 b83d392d-3a11-41ac-bf39-c6ee381b9255 (1.0.0) to Azure