Gallery Applications - Create Or Update
Create or update a gallery Application Definition.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}?api-version=2022-03-03
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
gallery
|
path | True |
string |
The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters. |
gallery
|
path | True |
string |
The name of the Shared Application Gallery in which the Application Definition is to be created. |
resource
|
path | True |
string |
The name of the resource group. |
subscription
|
path | True |
string |
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
api-version
|
query | True |
string |
Client Api Version. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
location | True |
string |
Resource location |
properties.supportedOSType | True |
This property allows you to specify the supported type of the OS that application is built for. |
|
properties.customActions |
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 |
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 |
OK |
|
201 Created |
Created |
|
202 Accepted |
Accepted |
|
Other Status Codes |
Error response describing why the operation failed. |
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
Create or update a simple gallery Application.
Sample Request
PUT https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName?api-version=2022-03-03
{
"location": "West US",
"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"
}
{
"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"
}
{
"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 |
---|---|
Api |
Api error. |
Api |
Api error base. |
Cloud |
An error response from the Compute service. |
Gallery |
Specifies information about the gallery Application Definition that you want to create or update. |
Gallery |
A custom action that can be performed with a Gallery Application Version. |
Gallery |
The definition of a parameter that can be passed to a custom action of a Gallery Application Version. |
Gallery |
Specifies the type of the custom action parameter. Possible values are: String, ConfigurationDataBlob or LogOutputBlob |
Inner |
Inner error details. |
Operating |
This property allows you to specify the supported type of the OS that application is built for. |
ApiError
Api error.
Name | Type | Description |
---|---|---|
code |
string |
The error code. |
details |
The Api error details |
|
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 |
Api error. |
GalleryApplication
Specifies information about the gallery Application Definition that you want to create or update.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id |
location |
string |
Resource location |
name |
string |
Resource name |
properties.customActions |
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 |
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 |
This property allows you to specify the supported type of the OS that application is built for. |
|
tags |
object |
Resource tags |
type |
string |
Resource type |
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 |
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 |
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
Name | Type | Description |
---|---|---|
ConfigurationDataBlob |
string |
|
LogOutputBlob |
string |
|
String |
string |
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
Name | Type | Description |
---|---|---|
Linux |
string |
|
Windows |
string |