Share via


Gallery Applications - Update

Update a gallery Application Definition.

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}?api-version=2024-03-03

URI Parameters

Name In Required Type Description
galleryApplicationName
path True

string

The name of the gallery Application Definition to be retrieved.

galleryName
path True

string

The name of the Shared Image Gallery.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Request Body

Name Required Type Description
properties.supportedOSType True

OperatingSystemTypes

This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux.

properties.customActions

GalleryApplicationCustomAction[]

A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application.

properties.description

string

The description of this gallery Application Definition resource. This property is updatable.

properties.endOfLifeDate

string (date-time)

The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.

properties.eula

string

The Eula agreement for the gallery Application Definition.

properties.privacyStatementUri

string

The privacy statement uri.

properties.releaseNoteUri

string

The release note uri.

tags

object

Resource tags

Responses

Name Type Description
200 OK

GalleryApplication

The request has succeeded.

Headers

  • Location: string
  • Retry-After: integer
Other Status Codes

CloudError

An unexpected error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Sample request

PATCH https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName?api-version=2024-03-03

{
  "properties": {
    "description": "This is the gallery application description.",
    "eula": "This is the gallery application EULA.",
    "privacyStatementUri": "myPrivacyStatementUri}",
    "releaseNoteUri": "myReleaseNoteUri",
    "supportedOSType": "Windows",
    "customActions": [
      {
        "name": "myCustomAction",
        "script": "myCustomActionScript",
        "description": "This is the custom action description.",
        "parameters": [
          {
            "name": "myCustomActionParameter",
            "required": false,
            "type": "String",
            "defaultValue": "default value of parameter.",
            "description": "This is the description of the parameter"
          }
        ]
      }
    ]
  }
}

Sample response

{
  "properties": {
    "description": "This is the gallery application description.",
    "eula": "This is the gallery application EULA.",
    "privacyStatementUri": "myPrivacyStatementUri}",
    "releaseNoteUri": "myReleaseNoteUri",
    "supportedOSType": "Windows",
    "customActions": [
      {
        "name": "myCustomAction",
        "script": "myCustomActionScript",
        "description": "This is the custom action description.",
        "parameters": [
          {
            "name": "myCustomActionParameter",
            "required": false,
            "type": "String",
            "defaultValue": "default value of parameter.",
            "description": "This is the description of the parameter"
          }
        ]
      }
    ]
  },
  "location": "West US",
  "name": "myGalleryApplicationName",
  "type": "Microsoft.Compute/galleries",
  "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName"
}

Definitions

Name Description
ApiError

Api error.

ApiErrorBase

Api error base.

CloudError

An error response from the Compute service.

createdByType

The type of identity that created the resource.

GalleryApplication

Specifies information about the gallery Application Definition that you want to create or update.

GalleryApplicationCustomAction

A custom action that can be performed with a Gallery Application Version.

GalleryApplicationCustomActionParameter

The definition of a parameter that can be passed to a custom action of a Gallery Application Version.

GalleryApplicationCustomActionParameterType

Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob

GalleryApplicationUpdate

Specifies information about the gallery Application Definition that you want to update.

InnerError

Inner error details.

OperatingSystemTypes

This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux.

systemData

Metadata pertaining to creation and last modification of the resource.

ApiError

Api error.

Name Type Description
code

string

The error code.

details

ApiErrorBase[]

The Api error details

innererror

InnerError

The Api inner error

message

string

The error message.

target

string

The target of the particular error.

ApiErrorBase

Api error base.

Name Type Description
code

string

The error code.

message

string

The error message.

target

string

The target of the particular error.

CloudError

An error response from the Compute service.

Name Type Description
error

ApiError

Api error.

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

GalleryApplication

Specifies information about the gallery Application Definition that you want to create or update.

Name Type Description
id

string

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

The geo-location where the resource lives

name

string

The name of the resource

properties.customActions

GalleryApplicationCustomAction[]

A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application.

properties.description

string

The description of this gallery Application Definition resource. This property is updatable.

properties.endOfLifeDate

string (date-time)

The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.

properties.eula

string

The Eula agreement for the gallery Application Definition.

properties.privacyStatementUri

string

The privacy statement uri.

properties.releaseNoteUri

string

The release note uri.

properties.supportedOSType

OperatingSystemTypes

This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags

object

Resource tags.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

GalleryApplicationCustomAction

A custom action that can be performed with a Gallery Application Version.

Name Type Description
description

string

Description to help the users understand what this custom action does.

name

string

The name of the custom action. Must be unique within the Gallery Application Version.

parameters

GalleryApplicationCustomActionParameter[]

The parameters that this custom action uses

script

string

The script to run when executing this custom action.

GalleryApplicationCustomActionParameter

The definition of a parameter that can be passed to a custom action of a Gallery Application Version.

Name Type Description
defaultValue

string

The default value of the parameter. Only applies to string types

description

string

A description to help users understand what this parameter means

name

string

The name of the custom action. Must be unique within the Gallery Application Version.

required

boolean

Indicates whether this parameter must be passed when running the custom action.

type

GalleryApplicationCustomActionParameterType

Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob

GalleryApplicationCustomActionParameterType

Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob

Value Description
String
ConfigurationDataBlob
LogOutputBlob

GalleryApplicationUpdate

Specifies information about the gallery Application Definition that you want to update.

Name Type Description
id

string

Resource Id

name

string

Resource name

properties.customActions

GalleryApplicationCustomAction[]

A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application.

properties.description

string

The description of this gallery Application Definition resource. This property is updatable.

properties.endOfLifeDate

string (date-time)

The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.

properties.eula

string

The Eula agreement for the gallery Application Definition.

properties.privacyStatementUri

string

The privacy statement uri.

properties.releaseNoteUri

string

The release note uri.

properties.supportedOSType

OperatingSystemTypes

This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux.

tags

object

Resource tags

type

string

Resource type

InnerError

Inner error details.

Name Type Description
errordetail

string

The internal error message or exception dump.

exceptiontype

string

The exception type.

OperatingSystemTypes

This property allows you to specify the supported type of the OS that application is built for. Possible values are: Windows, Linux.

Value Description
Windows
Linux

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.