Microsoft.Compute galleries 2021-07-01
Bicep resource definition
The galleries resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/galleries resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Compute/galleries@2021-07-01' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
properties: {
description: 'string'
identifier: {}
sharingProfile: {
permissions: 'string'
}
softDeletePolicy: {
isSoftDeleteEnabled: bool
}
}
}
Property values
galleries
Name | Description | Value |
---|---|---|
name | The resource name | string (required) Character limit: 1-80 Valid characters: Alphanumerics and periods. Start and end with alphanumeric. |
location | Resource location | string (required) |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
properties | Describes the properties of a Shared Image Gallery. | GalleryProperties |
GalleryProperties
Name | Description | Value |
---|---|---|
description | The description of this Shared Image Gallery resource. This property is updatable. | string |
identifier | Describes the gallery unique name. | GalleryIdentifier |
sharingProfile | Profile for gallery sharing to subscription or tenant | SharingProfile |
softDeletePolicy | Contains information about the soft deletion policy of the gallery. | SoftDeletePolicy |
GalleryIdentifier
This object doesn't contain any properties to set during deployment. All properties are ReadOnly.
SharingProfile
Name | Description | Value |
---|---|---|
permissions | This property allows you to specify the permission of sharing gallery. Possible values are: Private Groups |
'Groups' 'Private' |
SoftDeletePolicy
Name | Description | Value |
---|---|---|
isSoftDeleteEnabled | Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. | bool |
Quickstart templates
The following quickstart templates deploy this resource type.
Template | Description |
---|---|
Azure Image Builder with Azure Windows Baseline |
Creates an Azure Image Builder environment and builds a Windows Server image with the latest Windows Updates and Azure Windows Baseline applied. |
Create an Azure Compute Gallery |
This module creates an Azure Compute Gallery resource with apiVersion 2019-12-01. |
Create a Azure Compute Gallery |
This template allows you to create a Azure Compute Gallery. |
Configure Dev Box service |
This template would create all Dev Box admin resources as per Dev Box quick start guide. 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 resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/galleries resource, add the following JSON to your template.
{
"type": "Microsoft.Compute/galleries",
"apiVersion": "2021-07-01",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"description": "string",
"identifier": {},
"sharingProfile": {
"permissions": "string"
},
"softDeletePolicy": {
"isSoftDeleteEnabled": "bool"
}
}
}
Property values
galleries
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Compute/galleries' |
apiVersion | The resource api version | '2021-07-01' |
name | The resource name | string (required) Character limit: 1-80 Valid characters: Alphanumerics and periods. Start and end with alphanumeric. |
location | Resource location | string (required) |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
properties | Describes the properties of a Shared Image Gallery. | GalleryProperties |
GalleryProperties
Name | Description | Value |
---|---|---|
description | The description of this Shared Image Gallery resource. This property is updatable. | string |
identifier | Describes the gallery unique name. | GalleryIdentifier |
sharingProfile | Profile for gallery sharing to subscription or tenant | SharingProfile |
softDeletePolicy | Contains information about the soft deletion policy of the gallery. | SoftDeletePolicy |
GalleryIdentifier
This object doesn't contain any properties to set during deployment. All properties are ReadOnly.
SharingProfile
Name | Description | Value |
---|---|---|
permissions | This property allows you to specify the permission of sharing gallery. Possible values are: Private Groups |
'Groups' 'Private' |
SoftDeletePolicy
Name | Description | Value |
---|---|---|
isSoftDeleteEnabled | Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. | bool |
Quickstart templates
The following quickstart templates deploy this resource type.
Template | Description |
---|---|
Azure Image Builder with Azure Windows Baseline |
Creates an Azure Image Builder environment and builds a Windows Server image with the latest Windows Updates and Azure Windows Baseline applied. |
Create an Azure Compute Gallery |
This module creates an Azure Compute Gallery resource with apiVersion 2019-12-01. |
Create a Azure Compute Gallery |
This template allows you to create a Azure Compute Gallery. |
Configure Dev Box service |
This template would create all Dev Box admin resources as per Dev Box quick start guide. You can view all resources created, or directly go to DevPortal.microsoft.com to create your first Dev Box. |
Terraform (AzAPI provider) resource definition
The galleries 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 resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/galleries@2021-07-01"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
description = "string"
identifier = {}
sharingProfile = {
permissions = "string"
}
softDeletePolicy = {
isSoftDeleteEnabled = bool
}
}
})
}
Property values
galleries
Name | Description | Value |
---|---|---|
type | The resource type | "Microsoft.Compute/galleries@2021-07-01" |
name | The resource name | string (required) Character limit: 1-80 Valid characters: Alphanumerics and periods. Start and end with alphanumeric. |
location | Resource location | string (required) |
parent_id | To deploy to a resource group, use the ID of that resource group. | string (required) |
tags | Resource tags | Dictionary of tag names and values. |
properties | Describes the properties of a Shared Image Gallery. | GalleryProperties |
GalleryProperties
Name | Description | Value |
---|---|---|
description | The description of this Shared Image Gallery resource. This property is updatable. | string |
identifier | Describes the gallery unique name. | GalleryIdentifier |
sharingProfile | Profile for gallery sharing to subscription or tenant | SharingProfile |
softDeletePolicy | Contains information about the soft deletion policy of the gallery. | SoftDeletePolicy |
GalleryIdentifier
This object doesn't contain any properties to set during deployment. All properties are ReadOnly.
SharingProfile
Name | Description | Value |
---|---|---|
permissions | This property allows you to specify the permission of sharing gallery. Possible values are: Private Groups |
"Groups" "Private" |
SoftDeletePolicy
Name | Description | Value |
---|---|---|
isSoftDeleteEnabled | Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time. | bool |