Skip to content

Commit

Permalink
Fixed old gallery application version properties (#12438)
Browse files Browse the repository at this point in the history
  • Loading branch information
D1v38om83r authored Jan 21, 2021
1 parent 27ec242 commit d680d0e
Show file tree
Hide file tree
Showing 17 changed files with 181 additions and 52 deletions.
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
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 @@ -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",
Expand All @@ -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": {
Expand Down
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
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 @@ -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",
Expand All @@ -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": {
Expand Down
Loading

0 comments on commit d680d0e

Please sign in to comment.