Microsoft.Compute galleries/applications/versions 2021-10-01

Bicep resource definition

The galleries/applications/versions resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

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

resource symbolicname 'Microsoft.Compute/galleries/applications/versions@2021-10-01' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    publishingProfile: {
      enableHealthCheck: bool
      endOfLifeDate: 'string'
      excludeFromLatest: bool
      manageActions: {
        install: 'string'
        remove: 'string'
        update: 'string'
      }
      replicaCount: int
      replicationMode: 'string'
      source: {
        defaultConfigurationLink: 'string'
        mediaLink: 'string'
      }
      storageAccountType: 'string'
      targetExtendedLocations: [
        {
          encryption: {
            dataDiskImages: [
              {
                diskEncryptionSetId: 'string'
                lun: int
              }
            ]
            osDiskImage: {
              diskEncryptionSetId: 'string'
              securityProfile: {
                confidentialVMEncryptionType: 'string'
                secureVMDiskEncryptionSetId: 'string'
              }
            }
          }
          extendedLocation: {
            name: 'string'
            type: 'string'
          }
          extendedLocationReplicaCount: int
          name: 'string'
          storageAccountType: 'string'
        }
      ]
      targetRegions: [
        {
          encryption: {
            dataDiskImages: [
              {
                diskEncryptionSetId: 'string'
                lun: int
              }
            ]
            osDiskImage: {
              diskEncryptionSetId: 'string'
              securityProfile: {
                confidentialVMEncryptionType: 'string'
                secureVMDiskEncryptionSetId: 'string'
              }
            }
          }
          name: 'string'
          regionalReplicaCount: int
          storageAccountType: 'string'
        }
      ]
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

DataDiskImageEncryption

Name Description Value
diskEncryptionSetId A relative URI containing the resource ID of the disk encryption set. string
lun This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. int (required)

EncryptionImages

Name Description Value
dataDiskImages A list of encryption specifications for data disk images. DataDiskImageEncryption[]
osDiskImage Contains encryption settings for an OS disk image. OSDiskImageEncryption

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
replicationMode Optional parameter which specifies the mode to be used for replication. This property is not updatable. 'Full'
'Shallow'
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. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'
targetExtendedLocations The target extended locations where the Image Version is going to be replicated to. This property is updatable. GalleryTargetExtendedLocation[]
targetRegions The target regions where the Image Version is going to be replicated to. This property is updatable. TargetRegion[]

GalleryExtendedLocation

Name Description Value
name string
type It is type of the extended location. 'EdgeZone'
'Unknown'

GalleryTargetExtendedLocation

Name Description Value
encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. EncryptionImages
extendedLocation The name of the extended location. GalleryExtendedLocation
extendedLocationReplicaCount The number of replicas of the Image Version to be created per extended location. This property is updatable. int
name The name of the region. string
storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'

Microsoft.Compute/galleries/applications/versions

Name Description Value
location Resource location string (required)
name The resource name string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: galleries/applications
properties Describes the properties of a gallery image version. GalleryApplicationVersionProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

OSDiskImageEncryption

Name Description Value
diskEncryptionSetId A relative URI containing the resource ID of the disk encryption set. string
securityProfile This property specifies the security profile of an OS disk image. OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

Name Description Value
confidentialVMEncryptionType confidential VM encryption types 'EncryptedVMGuestStateOnlyWithPmk'
'EncryptedWithCmk'
'EncryptedWithPmk'
secureVMDiskEncryptionSetId secure VM disk encryption set id string

ResourceTags

Name Description Value

TargetRegion

Name Description Value
encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. EncryptionImages
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. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'

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)

ARM template resource definition

The galleries/applications/versions resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

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

{
  "type": "Microsoft.Compute/galleries/applications/versions",
  "apiVersion": "2021-10-01",
  "name": "string",
  "location": "string",
  "properties": {
    "publishingProfile": {
      "enableHealthCheck": "bool",
      "endOfLifeDate": "string",
      "excludeFromLatest": "bool",
      "manageActions": {
        "install": "string",
        "remove": "string",
        "update": "string"
      },
      "replicaCount": "int",
      "replicationMode": "string",
      "source": {
        "defaultConfigurationLink": "string",
        "mediaLink": "string"
      },
      "storageAccountType": "string",
      "targetExtendedLocations": [
        {
          "encryption": {
            "dataDiskImages": [
              {
                "diskEncryptionSetId": "string",
                "lun": "int"
              }
            ],
            "osDiskImage": {
              "diskEncryptionSetId": "string",
              "securityProfile": {
                "confidentialVMEncryptionType": "string",
                "secureVMDiskEncryptionSetId": "string"
              }
            }
          },
          "extendedLocation": {
            "name": "string",
            "type": "string"
          },
          "extendedLocationReplicaCount": "int",
          "name": "string",
          "storageAccountType": "string"
        }
      ],
      "targetRegions": [
        {
          "encryption": {
            "dataDiskImages": [
              {
                "diskEncryptionSetId": "string",
                "lun": "int"
              }
            ],
            "osDiskImage": {
              "diskEncryptionSetId": "string",
              "securityProfile": {
                "confidentialVMEncryptionType": "string",
                "secureVMDiskEncryptionSetId": "string"
              }
            }
          },
          "name": "string",
          "regionalReplicaCount": "int",
          "storageAccountType": "string"
        }
      ]
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

DataDiskImageEncryption

Name Description Value
diskEncryptionSetId A relative URI containing the resource ID of the disk encryption set. string
lun This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. int (required)

EncryptionImages

Name Description Value
dataDiskImages A list of encryption specifications for data disk images. DataDiskImageEncryption[]
osDiskImage Contains encryption settings for an OS disk image. OSDiskImageEncryption

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
replicationMode Optional parameter which specifies the mode to be used for replication. This property is not updatable. 'Full'
'Shallow'
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. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'
targetExtendedLocations The target extended locations where the Image Version is going to be replicated to. This property is updatable. GalleryTargetExtendedLocation[]
targetRegions The target regions where the Image Version is going to be replicated to. This property is updatable. TargetRegion[]

GalleryExtendedLocation

Name Description Value
name string
type It is type of the extended location. 'EdgeZone'
'Unknown'

GalleryTargetExtendedLocation

Name Description Value
encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. EncryptionImages
extendedLocation The name of the extended location. GalleryExtendedLocation
extendedLocationReplicaCount The number of replicas of the Image Version to be created per extended location. This property is updatable. int
name The name of the region. string
storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'

Microsoft.Compute/galleries/applications/versions

Name Description Value
apiVersion The api version '2021-10-01'
location Resource location string (required)
name The resource name string (required)
properties Describes the properties of a gallery image version. GalleryApplicationVersionProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Compute/galleries/applications/versions'

OSDiskImageEncryption

Name Description Value
diskEncryptionSetId A relative URI containing the resource ID of the disk encryption set. string
securityProfile This property specifies the security profile of an OS disk image. OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

Name Description Value
confidentialVMEncryptionType confidential VM encryption types 'EncryptedVMGuestStateOnlyWithPmk'
'EncryptedWithCmk'
'EncryptedWithPmk'
secureVMDiskEncryptionSetId secure VM disk encryption set id string

ResourceTags

Name Description Value

TargetRegion

Name Description Value
encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. EncryptionImages
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. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'

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)

Terraform (AzAPI provider) resource definition

The galleries/applications/versions resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/galleries/applications/versions@2021-10-01"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      publishingProfile = {
        enableHealthCheck = bool
        endOfLifeDate = "string"
        excludeFromLatest = bool
        manageActions = {
          install = "string"
          remove = "string"
          update = "string"
        }
        replicaCount = int
        replicationMode = "string"
        source = {
          defaultConfigurationLink = "string"
          mediaLink = "string"
        }
        storageAccountType = "string"
        targetExtendedLocations = [
          {
            encryption = {
              dataDiskImages = [
                {
                  diskEncryptionSetId = "string"
                  lun = int
                }
              ]
              osDiskImage = {
                diskEncryptionSetId = "string"
                securityProfile = {
                  confidentialVMEncryptionType = "string"
                  secureVMDiskEncryptionSetId = "string"
                }
              }
            }
            extendedLocation = {
              name = "string"
              type = "string"
            }
            extendedLocationReplicaCount = int
            name = "string"
            storageAccountType = "string"
          }
        ]
        targetRegions = [
          {
            encryption = {
              dataDiskImages = [
                {
                  diskEncryptionSetId = "string"
                  lun = int
                }
              ]
              osDiskImage = {
                diskEncryptionSetId = "string"
                securityProfile = {
                  confidentialVMEncryptionType = "string"
                  secureVMDiskEncryptionSetId = "string"
                }
              }
            }
            name = "string"
            regionalReplicaCount = int
            storageAccountType = "string"
          }
        ]
      }
    }
  })
}

Property values

DataDiskImageEncryption

Name Description Value
diskEncryptionSetId A relative URI containing the resource ID of the disk encryption set. string
lun This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine. int (required)

EncryptionImages

Name Description Value
dataDiskImages A list of encryption specifications for data disk images. DataDiskImageEncryption[]
osDiskImage Contains encryption settings for an OS disk image. OSDiskImageEncryption

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
replicationMode Optional parameter which specifies the mode to be used for replication. This property is not updatable. 'Full'
'Shallow'
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. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'
targetExtendedLocations The target extended locations where the Image Version is going to be replicated to. This property is updatable. GalleryTargetExtendedLocation[]
targetRegions The target regions where the Image Version is going to be replicated to. This property is updatable. TargetRegion[]

GalleryExtendedLocation

Name Description Value
name string
type It is type of the extended location. 'EdgeZone'
'Unknown'

GalleryTargetExtendedLocation

Name Description Value
encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. EncryptionImages
extendedLocation The name of the extended location. GalleryExtendedLocation
extendedLocationReplicaCount The number of replicas of the Image Version to be created per extended location. This property is updatable. int
name The name of the region. string
storageAccountType Specifies the storage account type to be used to store the image. This property is not updatable. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'

Microsoft.Compute/galleries/applications/versions

Name Description Value
location Resource location string (required)
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: galleries/applications
properties Describes the properties of a gallery image version. GalleryApplicationVersionProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Compute/galleries/applications/versions@2021-10-01"

OSDiskImageEncryption

Name Description Value
diskEncryptionSetId A relative URI containing the resource ID of the disk encryption set. string
securityProfile This property specifies the security profile of an OS disk image. OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

Name Description Value
confidentialVMEncryptionType confidential VM encryption types 'EncryptedVMGuestStateOnlyWithPmk'
'EncryptedWithCmk'
'EncryptedWithPmk'
secureVMDiskEncryptionSetId secure VM disk encryption set id string

ResourceTags

Name Description Value

TargetRegion

Name Description Value
encryption Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact. EncryptionImages
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. 'Premium_LRS'
'StandardSSD_LRS'
'Standard_LRS'
'Standard_ZRS'

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)