This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
'Generalized' 'Specialized' (required)
osType
This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows,Linux.
'Linux' 'Windows' (required)
privacyStatementUri
The privacy statement uri.
string
purchasePlan
Describes the gallery image definition purchase plan. This is used by marketplace images.
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.
This template would create all Dev Box admin resources as per Dev Box quick start guide (/azure/dev-box/quickstart-create-dev-box). You can view all resources created, or directly go to DevPortal.microsoft.com to create your first Dev Box.
ARM template resource definition
The galleries/images resource type can be deployed with operations that target:
This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
'Generalized' 'Specialized' (required)
osType
This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows,Linux.
'Linux' 'Windows' (required)
privacyStatementUri
The privacy statement uri.
string
purchasePlan
Describes the gallery image definition purchase plan. This is used by marketplace images.
This template would create all Dev Box admin resources as per Dev Box quick start guide (/azure/dev-box/quickstart-create-dev-box). You can view all resources created, or directly go to DevPortal.microsoft.com to create your first Dev Box.
This template allows you to create a simple Image Definition in a Azure Compute Gallery. Please ensure that you have run the Shared Image Gallery 101 Template before you deploy this.
Terraform (AzAPI provider) resource definition
The galleries/images 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/images resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/galleries/images@2022-08-03"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
architecture = "string"
description = "string"
disallowed = {
diskTypes = [
"string"
]
}
endOfLifeDate = "string"
eula = "string"
features = [
{
name = "string"
value = "string"
}
]
hyperVGeneration = "string"
identifier = {
offer = "string"
publisher = "string"
sku = "string"
}
osState = "string"
osType = "string"
privacyStatementUri = "string"
purchasePlan = {
name = "string"
product = "string"
publisher = "string"
}
recommended = {
memory = {
max = int
min = int
}
vCPUs = {
max = int
min = int
}
}
releaseNoteUri = "string"
}
})
}
Property values
Disallowed
Name
Description
Value
diskTypes
A list of disk types.
string[]
GalleryImageFeature
Name
Description
Value
name
The name of the gallery image feature.
string
value
The value of the gallery image feature.
string
GalleryImageIdentifier
Name
Description
Value
offer
The name of the gallery image definition offer.
string (required)
publisher
The name of the gallery image definition publisher.
string (required)
sku
The name of the gallery image definition SKU.
string (required)
GalleryImageProperties
Name
Description
Value
architecture
The architecture of the image. Applicable to OS disks only.
'Arm64' 'x64'
description
The description of this gallery image definition resource. This property is updatable.
This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
'Generalized' 'Specialized' (required)
osType
This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows,Linux.
'Linux' 'Windows' (required)
privacyStatementUri
The privacy statement uri.
string
purchasePlan
Describes the gallery image definition purchase plan. This is used by marketplace images.