From d680d0ed31643857b38d63668148f462437493b0 Mon Sep 17 00:00:00 2001 From: Bhaskar Brahma Date: Thu, 21 Jan 2021 00:05:56 -0800 Subject: [PATCH] Fixed old gallery application version properties (#12438) --- ...pdateASimpleGalleryApplicationVersion.json | 20 ++++++++--- .../GetAGalleryApplicationVersion.json | 5 ++- ...plicationVersionWithReplicationStatus.json | 5 ++- ...licationVersionsInAGalleryApplication.json | 5 ++- .../stable/2019-03-01/gallery.json | 36 ++++++++++++++----- ...pdateASimpleGalleryApplicationVersion.json | 20 ++++++++--- .../GetAGalleryApplicationVersion.json | 5 ++- ...plicationVersionWithReplicationStatus.json | 5 ++- ...licationVersionsInAGalleryApplication.json | 5 ++- ...pdateASimpleGalleryApplicationVersion.json | 10 ++++-- .../stable/2019-07-01/gallery.json | 36 ++++++++++++++----- ...pdateASimpleGalleryApplicationVersion.json | 20 ++++++++--- .../GetAGalleryApplicationVersion.json | 5 ++- ...plicationVersionWithReplicationStatus.json | 5 ++- ...licationVersionsInAGalleryApplication.json | 5 ++- ...pdateASimpleGalleryApplicationVersion.json | 10 ++++-- .../stable/2019-12-01/gallery.json | 36 ++++++++++++++----- 17 files changed, 181 insertions(+), 52 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json index bf1184f95048..2f2a5e9b0288 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -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", @@ -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": [ { @@ -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": [ { @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json index 8b9c1fe5a139..eb10845fc721 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json index 12bfa07e8838..a391618e41e2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json index 4396c3195f78..77208ddeebfb 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json index 5e478800029a..51513e99b92e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json @@ -1440,9 +1440,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", @@ -1457,25 +1456,44 @@ "required": [ "source" ], - "description": "The publishing profile of a gallery Image Version." + "description": "The publishing profile of a gallery image version." }, "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": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json index aede7a8eeae6..2cc0831d3e5e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -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", @@ -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": [ { @@ -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": [ { @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json index 6fea34a1fd64..5c465b2394bb 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json index a91a4daf865b..09fabd60e293 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json index af550ea5e129..dc6b5799f891 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/UpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/UpdateASimpleGalleryApplicationVersion.json index 2027cc64296f..02711c8c59ce 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/UpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/UpdateASimpleGalleryApplicationVersion.json @@ -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", @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json index 6f0081100c90..e6a60faa4721 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json @@ -1800,9 +1800,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", @@ -1817,25 +1816,44 @@ "required": [ "source" ], - "description": "The publishing profile of a gallery Image Version." + "description": "The publishing profile of a gallery image version." }, "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": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json index c7c9061bc098..46de739a5a2f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -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", @@ -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": [ { @@ -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": [ { @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersion.json index e67c354802c8..be2b0511870e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersion.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json index 0d4fedb679f3..04a960f7f7e4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json index 12684f333fcc..c40ddd503418 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/UpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/UpdateASimpleGalleryApplicationVersion.json index ddcdf19710ec..5427ab5666b3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/UpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/examples/UpdateASimpleGalleryApplicationVersion.json @@ -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", @@ -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": [ { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json index 870eff714f3d..076a9233f0d7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2019-12-01/gallery.json @@ -1800,9 +1800,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", @@ -1817,25 +1816,44 @@ "required": [ "source" ], - "description": "The publishing profile of a gallery Image Version." + "description": "The publishing profile of a gallery image version." }, "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": {