Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Gallery ApplicationVersion specs. #11318

Merged
merged 5 commits into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"targetRegions": [
{
"name": "West US",
Expand All @@ -38,9 +41,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"enableHealthCheck": false,
"targetRegions": [
{
Expand Down Expand Up @@ -68,9 +74,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"enableHealthCheck": false,
"targetRegions": [
{
Expand Down Expand Up @@ -98,9 +107,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"enableHealthCheck": false,
"targetRegions": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2020-09-30",
"galleryName": "myGalleryName",
"galleryApplicationName": "myGalleryApplicationName",
"galleryApplicationVersionName": "1.0.0",
"galleryApplicationVersion": {
"location": "West US",
"properties": {
"publishingProfile": {
"source": {
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}",
"defaultConfigurationLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/configuration.ps1?{sasKey}"
},
"manageActions": {
"install": "powershell configuration.ps1 package.zip install",
"remove": "powershell configuration.ps1 package.zip remove",
"update": "powershell configuration.ps1 package.zip update"
},
"targetRegions": [
{
"name": "West US",
"regionalReplicaCount": 1,
"storageAccountType": "Standard_LRS"
}
],
"replicaCount": 1,
"endOfLifeDate": "2019-07-01T07:00:00Z",
"storageAccountType": "Standard_LRS"
}
}
}
},
"responses": {
"200": {
"body": {
"location": "West US",
"name": "1.0.0",
"type": "Microsoft.Compute/galleries/applications/versions",
"id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0",
"properties": {
"publishingProfile": {
"source": {
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}",
"defaultConfigurationLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/configuration.ps1?{sasKey}"
},
"manageActions": {
"install": "powershell configuration.ps1 package.zip install",
"remove": "powershell configuration.ps1 package.zip remove",
"update": "powershell configuration.ps1 package.zip update"
},
"enableHealthCheck": false,
"targetRegions": [
{
"name": "West US",
"regionalReplicaCount": 1,
"storageAccountType": "Standard_LRS"
}
],
"replicaCount": 1,
"excludeFromLatest": false,
"publishedDate": "2019-06-21T17:13:57.5972568+00:00",
"endOfLifeDate": "2019-07-01T07:00:00+00:00",
"storageAccountType": "Standard_LRS"
},
"provisioningState": "Updating"
}
}
},
"201": {
"body": {
"location": "West US",
"name": "1.0.0",
"type": "Microsoft.Compute/galleries/applications/versions",
"id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0",
"properties": {
"publishingProfile": {
"source": {
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}",
"defaultConfigurationLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/configuration.ps1?{sasKey}"
},
"manageActions": {
"install": "powershell configuration.ps1 package.zip install",
"remove": "powershell configuration.ps1 package.zip remove",
"update": "powershell configuration.ps1 package.zip update"
},
"enableHealthCheck": false,
"targetRegions": [
{
"name": "West US",
"regionalReplicaCount": 1,
"storageAccountType": "Standard_LRS"
}
],
"replicaCount": 1,
"excludeFromLatest": false,
"publishedDate": "2019-06-21T17:13:57.5972568+00:00",
"endOfLifeDate": "2019-07-01T07:00:00+00:00",
"storageAccountType": "Standard_LRS"
},
"provisioningState": "Creating"
}
}
},
"202": {
"body": {
"location": "West US",
"name": "1.0.0",
"type": "Microsoft.Compute/galleries/applications/versions",
"id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0",
"properties": {
"publishingProfile": {
"source": {
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}",
"defaultConfigurationLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/configuration.ps1?{sasKey}"
},
"manageActions": {
"install": "powershell configuration.ps1 package.zip install",
"remove": "powershell configuration.ps1 package.zip remove",
"update": "powershell configuration.ps1 package.zip update"
},
"enableHealthCheck": false,
"targetRegions": [
{
"name": "West US",
"regionalReplicaCount": 1,
"storageAccountType": "Standard_LRS"
}
],
"replicaCount": 1,
"excludeFromLatest": false,
"publishedDate": "2019-06-21T17:13:57.5972568+00:00",
"endOfLifeDate": "2019-07-01T07:00:00+00:00",
"storageAccountType": "Standard_LRS"
},
"provisioningState": "Updating"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"enableHealthCheck": false,
"targetRegions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"enableHealthCheck": false,
"targetRegions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"enableHealthCheck": false,
"targetRegions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"targetRegions": [
{
"name": "West US",
Expand All @@ -37,9 +40,12 @@
"properties": {
"publishingProfile": {
"source": {
"fileName": "package.zip",
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
},
"manageActions": {
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
"remove": "del C:\\package "
},
"enableHealthCheck": false,
"targetRegions": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1943,9 +1943,8 @@
"source": {
"$ref": "#/definitions/UserArtifactSource"
},
"contentType": {
"type": "string",
"description": "Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc."
"manageActions": {
"$ref": "#/definitions/UserArtifactManage"
},
"enableHealthCheck": {
"type": "boolean",
Expand All @@ -1964,21 +1963,40 @@
},
"UserArtifactSource": {
"properties": {
"fileName": {
"mediaLink": {
"type": "string",
"description": "Required. The fileName of the artifact."
"description": "Required. The mediaLink of the artifact, must be a readable storage page blob."
},
"mediaLink": {
"defaultConfigurationLink": {
"type": "string",
"description": "Required. The mediaLink of the artifact, must be a readable storage blob."
"description": "Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob."
}
},
"required": [
"fileName",
"mediaLink"
],
"description": "The source image from which the Image Version is going to be created."
},
"UserArtifactManage": {
"properties": {
"install": {
"type": "string",
"description": "Required. The path and arguments to install the gallery application. This is limited to 4096 characters."
},
"remove": {
"type": "string",
"description": "Required. The path and arguments to remove the gallery application. This is limited to 4096 characters."
},
"update": {
"type": "string",
"description": "Optional. The path and arguments to update the gallery application. If not present, then update operation will invoke remove command on the previous version and install command on the current version of the gallery application. This is limited to 4096 characters."
}
},
"required": [
"install",
"remove"
]
},
"GalleryImage": {
"properties": {
"properties": {
Expand Down