Skip to content

Commit d680d0e

Browse files
authored
Fixed old gallery application version properties (#12438)
1 parent 27ec242 commit d680d0e

17 files changed

+181
-52
lines changed

specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
"properties": {
1212
"publishingProfile": {
1313
"source": {
14-
"fileName": "package.zip",
1514
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
1615
},
16+
"manageActions": {
17+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
18+
"remove": "del C:\\package "
19+
},
1720
"targetRegions": [
1821
{
1922
"name": "West US",
@@ -38,9 +41,12 @@
3841
"properties": {
3942
"publishingProfile": {
4043
"source": {
41-
"fileName": "package.zip",
4244
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
4345
},
46+
"manageActions": {
47+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
48+
"remove": "del C:\\package "
49+
},
4450
"enableHealthCheck": false,
4551
"targetRegions": [
4652
{
@@ -68,9 +74,12 @@
6874
"properties": {
6975
"publishingProfile": {
7076
"source": {
71-
"fileName": "package.zip",
7277
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
7378
},
79+
"manageActions": {
80+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
81+
"remove": "del C:\\package "
82+
},
7483
"enableHealthCheck": false,
7584
"targetRegions": [
7685
{
@@ -98,9 +107,12 @@
98107
"properties": {
99108
"publishingProfile": {
100109
"source": {
101-
"fileName": "package.zip",
102110
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
103111
},
112+
"manageActions": {
113+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
114+
"remove": "del C:\\package "
115+
},
104116
"enableHealthCheck": false,
105117
"targetRegions": [
106118
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersion.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
"properties": {
1818
"publishingProfile": {
1919
"source": {
20-
"fileName": "package.zip",
2120
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
2221
},
22+
"manageActions": {
23+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
24+
"remove": "del C:\\package "
25+
},
2326
"enableHealthCheck": false,
2427
"targetRegions": [
2528
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"properties": {
1515
"publishingProfile": {
1616
"source": {
17-
"fileName": "package.zip",
1817
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
1918
},
19+
"manageActions": {
20+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
21+
"remove": "del C:\\package "
22+
},
2023
"enableHealthCheck": false,
2124
"targetRegions": [
2225
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
"properties": {
1919
"publishingProfile": {
2020
"source": {
21-
"fileName": "package.zip",
2221
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
2322
},
23+
"manageActions": {
24+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
25+
"remove": "del C:\\package "
26+
},
2427
"enableHealthCheck": false,
2528
"targetRegions": [
2629
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/gallery.json

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,9 +1440,8 @@
14401440
"source": {
14411441
"$ref": "#/definitions/UserArtifactSource"
14421442
},
1443-
"contentType": {
1444-
"type": "string",
1445-
"description": "Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc."
1443+
"manageActions": {
1444+
"$ref": "#/definitions/UserArtifactManage"
14461445
},
14471446
"enableHealthCheck": {
14481447
"type": "boolean",
@@ -1457,25 +1456,44 @@
14571456
"required": [
14581457
"source"
14591458
],
1460-
"description": "The publishing profile of a gallery Image Version."
1459+
"description": "The publishing profile of a gallery image version."
14611460
},
14621461
"UserArtifactSource": {
14631462
"properties": {
1464-
"fileName": {
1463+
"mediaLink": {
14651464
"type": "string",
1466-
"description": "Required. The fileName of the artifact."
1465+
"description": "Required. The mediaLink of the artifact, must be a readable storage page blob."
14671466
},
1468-
"mediaLink": {
1467+
"defaultConfigurationLink": {
14691468
"type": "string",
1470-
"description": "Required. The mediaLink of the artifact, must be a readable storage blob."
1469+
"description": "Optional. The defaultConfigurationLink of the artifact, must be a readable storage page blob."
14711470
}
14721471
},
14731472
"required": [
1474-
"fileName",
14751473
"mediaLink"
14761474
],
14771475
"description": "The source image from which the Image Version is going to be created."
14781476
},
1477+
"UserArtifactManage": {
1478+
"properties": {
1479+
"install": {
1480+
"type": "string",
1481+
"description": "Required. The path and arguments to install the gallery application. This is limited to 4096 characters."
1482+
},
1483+
"remove": {
1484+
"type": "string",
1485+
"description": "Required. The path and arguments to remove the gallery application. This is limited to 4096 characters."
1486+
},
1487+
"update": {
1488+
"type": "string",
1489+
"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."
1490+
}
1491+
},
1492+
"required": [
1493+
"install",
1494+
"remove"
1495+
]
1496+
},
14791497
"GalleryImage": {
14801498
"properties": {
14811499
"properties": {

specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
"properties": {
1212
"publishingProfile": {
1313
"source": {
14-
"fileName": "package.zip",
1514
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
1615
},
16+
"manageActions": {
17+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
18+
"remove": "del C:\\package "
19+
},
1720
"targetRegions": [
1821
{
1922
"name": "West US",
@@ -38,9 +41,12 @@
3841
"properties": {
3942
"publishingProfile": {
4043
"source": {
41-
"fileName": "package.zip",
4244
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
4345
},
46+
"manageActions": {
47+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
48+
"remove": "del C:\\package "
49+
},
4450
"enableHealthCheck": false,
4551
"targetRegions": [
4652
{
@@ -68,9 +74,12 @@
6874
"properties": {
6975
"publishingProfile": {
7076
"source": {
71-
"fileName": "package.zip",
7277
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
7378
},
79+
"manageActions": {
80+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
81+
"remove": "del C:\\package "
82+
},
7483
"enableHealthCheck": false,
7584
"targetRegions": [
7685
{
@@ -98,9 +107,12 @@
98107
"properties": {
99108
"publishingProfile": {
100109
"source": {
101-
"fileName": "package.zip",
102110
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
103111
},
112+
"manageActions": {
113+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
114+
"remove": "del C:\\package "
115+
},
104116
"enableHealthCheck": false,
105117
"targetRegions": [
106118
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersion.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
"properties": {
1818
"publishingProfile": {
1919
"source": {
20-
"fileName": "package.zip",
2120
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
2221
},
22+
"manageActions": {
23+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
24+
"remove": "del C:\\package "
25+
},
2326
"enableHealthCheck": false,
2427
"targetRegions": [
2528
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/GetAGalleryApplicationVersionWithReplicationStatus.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
"properties": {
1515
"publishingProfile": {
1616
"source": {
17-
"fileName": "package.zip",
1817
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
1918
},
19+
"manageActions": {
20+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
21+
"remove": "del C:\\package "
22+
},
2023
"enableHealthCheck": false,
2124
"targetRegions": [
2225
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/ListGalleryApplicationVersionsInAGalleryApplication.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818
"properties": {
1919
"publishingProfile": {
2020
"source": {
21-
"fileName": "package.zip",
2221
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
2322
},
23+
"manageActions": {
24+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
25+
"remove": "del C:\\package "
26+
},
2427
"enableHealthCheck": false,
2528
"targetRegions": [
2629
{

specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/examples/UpdateASimpleGalleryApplicationVersion.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
"properties": {
1111
"publishingProfile": {
1212
"source": {
13-
"fileName": "package.zip",
1413
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
1514
},
15+
"manageActions": {
16+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
17+
"remove": "del C:\\package "
18+
},
1619
"targetRegions": [
1720
{
1821
"name": "West US",
@@ -37,9 +40,12 @@
3740
"properties": {
3841
"publishingProfile": {
3942
"source": {
40-
"fileName": "package.zip",
4143
"mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}"
4244
},
45+
"manageActions": {
46+
"install": "powershell -command \"Expand-Archive -Path package.zip -DestinationPath C:\\package\"",
47+
"remove": "del C:\\package "
48+
},
4349
"enableHealthCheck": false,
4450
"targetRegions": [
4551
{

0 commit comments

Comments
 (0)