Microsoft.Compute galleries/applications 2022-08-03

Bicep resource definition

The galleries/applications 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 resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Compute/galleries/applications@2022-08-03' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    customActions: [
      {
        description: 'string'
        name: 'string'
        parameters: [
          {
            defaultValue: 'string'
            description: 'string'
            name: 'string'
            required: bool
            type: 'string'
          }
        ]
        script: 'string'
      }
    ]
    description: 'string'
    endOfLifeDate: 'string'
    eula: 'string'
    privacyStatementUri: 'string'
    releaseNoteUri: 'string'
    supportedOSType: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

GalleryApplicationCustomAction

Name Description Value
description Description to help the users understand what this custom action does. string
name The name of the custom action. Must be unique within the Gallery Application Version. string (required)
parameters The parameters that this custom action uses GalleryApplicationCustomActionParameter[]
script The script to run when executing this custom action. string (required)

GalleryApplicationCustomActionParameter

Name Description Value
defaultValue The default value of the parameter. Only applies to string types string
description A description to help users understand what this parameter means string
name The name of the custom action. Must be unique within the Gallery Application Version. string (required)
required Indicates whether this parameter must be passed when running the custom action. bool
type Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob 'ConfigurationDataBlob'
'LogOutputBlob'
'String'

GalleryApplicationProperties

Name Description Value
customActions A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. GalleryApplicationCustomAction[]
description The description of this gallery Application Definition resource. This property is updatable. string
endOfLifeDate The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. string
eula The Eula agreement for the gallery Application Definition. string
privacyStatementUri The privacy statement uri. string
releaseNoteUri The release note uri. string
supportedOSType This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux. 'Linux'
'Windows' (required)

Microsoft.Compute/galleries/applications

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
properties Describes the properties of a gallery Application Definition. GalleryApplicationProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

ResourceTags

Name Description Value

ARM template resource definition

The galleries/applications 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 resource, add the following JSON to your template.

{
  "type": "Microsoft.Compute/galleries/applications",
  "apiVersion": "2022-08-03",
  "name": "string",
  "location": "string",
  "properties": {
    "customActions": [
      {
        "description": "string",
        "name": "string",
        "parameters": [
          {
            "defaultValue": "string",
            "description": "string",
            "name": "string",
            "required": "bool",
            "type": "string"
          }
        ],
        "script": "string"
      }
    ],
    "description": "string",
    "endOfLifeDate": "string",
    "eula": "string",
    "privacyStatementUri": "string",
    "releaseNoteUri": "string",
    "supportedOSType": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

GalleryApplicationCustomAction

Name Description Value
description Description to help the users understand what this custom action does. string
name The name of the custom action. Must be unique within the Gallery Application Version. string (required)
parameters The parameters that this custom action uses GalleryApplicationCustomActionParameter[]
script The script to run when executing this custom action. string (required)

GalleryApplicationCustomActionParameter

Name Description Value
defaultValue The default value of the parameter. Only applies to string types string
description A description to help users understand what this parameter means string
name The name of the custom action. Must be unique within the Gallery Application Version. string (required)
required Indicates whether this parameter must be passed when running the custom action. bool
type Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob 'ConfigurationDataBlob'
'LogOutputBlob'
'String'

GalleryApplicationProperties

Name Description Value
customActions A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. GalleryApplicationCustomAction[]
description The description of this gallery Application Definition resource. This property is updatable. string
endOfLifeDate The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. string
eula The Eula agreement for the gallery Application Definition. string
privacyStatementUri The privacy statement uri. string
releaseNoteUri The release note uri. string
supportedOSType This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux. 'Linux'
'Windows' (required)

Microsoft.Compute/galleries/applications

Name Description Value
apiVersion The api version '2022-08-03'
location Resource location string (required)
name The resource name string (required)
properties Describes the properties of a gallery Application Definition. GalleryApplicationProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Compute/galleries/applications'

ResourceTags

Name Description Value

Terraform (AzAPI provider) resource definition

The galleries/applications 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 resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/galleries/applications@2022-08-03"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      customActions = [
        {
          description = "string"
          name = "string"
          parameters = [
            {
              defaultValue = "string"
              description = "string"
              name = "string"
              required = bool
              type = "string"
            }
          ]
          script = "string"
        }
      ]
      description = "string"
      endOfLifeDate = "string"
      eula = "string"
      privacyStatementUri = "string"
      releaseNoteUri = "string"
      supportedOSType = "string"
    }
  })
}

Property values

GalleryApplicationCustomAction

Name Description Value
description Description to help the users understand what this custom action does. string
name The name of the custom action. Must be unique within the Gallery Application Version. string (required)
parameters The parameters that this custom action uses GalleryApplicationCustomActionParameter[]
script The script to run when executing this custom action. string (required)

GalleryApplicationCustomActionParameter

Name Description Value
defaultValue The default value of the parameter. Only applies to string types string
description A description to help users understand what this parameter means string
name The name of the custom action. Must be unique within the Gallery Application Version. string (required)
required Indicates whether this parameter must be passed when running the custom action. bool
type Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob 'ConfigurationDataBlob'
'LogOutputBlob'
'String'

GalleryApplicationProperties

Name Description Value
customActions A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. GalleryApplicationCustomAction[]
description The description of this gallery Application Definition resource. This property is updatable. string
endOfLifeDate The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. string
eula The Eula agreement for the gallery Application Definition. string
privacyStatementUri The privacy statement uri. string
releaseNoteUri The release note uri. string
supportedOSType This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux. 'Linux'
'Windows' (required)

Microsoft.Compute/galleries/applications

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
properties Describes the properties of a gallery Application Definition. GalleryApplicationProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Compute/galleries/applications@2022-08-03"

ResourceTags

Name Description Value