Microsoft.Compute galleries/applications/versions 2019-07-01

The galleries/applications/versions resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Compute/galleries/applications/versions resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Compute/galleries/applications/versions@2019-07-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    publishingProfile: {
      enableHealthCheck: bool
      endOfLifeDate: 'string'
      excludeFromLatest: bool
      manageActions: {
        install: 'string'
        remove: 'string'
        update: 'string'
      }
      replicaCount: int
      source: {
        defaultConfigurationLink: 'string'
        mediaLink: 'string'
      }
      storageAccountType: 'string'
      targetRegions: [
        {
          name: 'string'
          regionalReplicaCount: int
          storageAccountType: 'string'
        }
      ]
    }
  }
}

Property values

galleries/applications/versions

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Compute/galleries/applications/versions'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2019-07-01'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
location Resource location string (required)
tags Resource tags Dictionary of tag names and values. See Tags in templates
properties Describes the properties of a gallery Image Version. GalleryApplicationVersionProperties

GalleryApplicationVersionProperties

Name Description Value
publishingProfile The publishing profile of a gallery image version. GalleryApplicationVersionPublishingProfile (required)

GalleryApplicationVersionPublishingProfile

Name Description Value
enableHealthCheck Optional. Whether or not this application reports health. bool
endOfLifeDate The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable. string
excludeFromLatest If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version. bool
manageActions UserArtifactManage
replicaCount The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable. int
source The source image from which the Image Version is going to be created. UserArtifactSource (required)
storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable. 'Standard_LRS'
'Standard_ZRS'
targetRegions The target regions where the Image Version is going to be replicated to. This property is updatable. TargetRegion[]

UserArtifactManage

Name Description Value
install Required. The path and arguments to install the gallery application. This is limited to 4096 characters. string (required)
remove Required. The path and arguments to remove the gallery application. This is limited to 4096 characters. string (required)
update Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove command on the previous version and install command on the current version of the gallery application. This is limited to 4096 characters. string

UserArtifactSource

Name Description Value
defaultConfigurationLink Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob. string
mediaLink Required. The mediaLink of the artifact, must be a readable storage page blob. string (required)

TargetRegion

Name Description Value
name The name of the region. string (required)
regionalReplicaCount The number of replicas of the Image Version to be created per region. This property is updatable. int
storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable. 'Standard_LRS'
'Standard_ZRS'