-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.VirtualMachineImages to …
…add version preview/2019-05-01-preview (#5513) * Updates API version in new specs and examples * Adds base for updating Microsoft.VirtualMachineImages from version preview/2019-02-01-preview to version 2019-05-01-preview * Updates readme * Add ManagedIdentity, File customizer, fix bugs * Fix examples
- Loading branch information
1 parent
65f98d7
commit 4870243
Showing
14 changed files
with
1,886 additions
and
7 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
...crosoft.VirtualMachineImages/preview/2019-05-01-preview/examples/CreateImageTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-05-01-preview", | ||
"imageTemplateName": "myImageTemplate", | ||
"parameters": { | ||
"location": "westus", | ||
"tags": { | ||
"imagetemplate_tag1": "IT_T1", | ||
"imagetemplate_tag2": "IT_T2" | ||
}, | ||
"properties": { | ||
"source": { | ||
"type": "ManagedImage", | ||
"imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "Shell", | ||
"name": "Shell Customizer Example", | ||
"scriptUri": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "ManagedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "ManagedImage", | ||
"imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "Shell", | ||
"name": "Shell Customizer Example", | ||
"scriptUri": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "ManagedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
88 changes: 88 additions & 0 deletions
88
...ages/preview/2019-05-01-preview/examples/CreateImageTemplateWithUserAssignedIdentity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-05-01-preview", | ||
"imageTemplateName": "myImageTemplate", | ||
"parameters": { | ||
"location": "westus", | ||
"tags": { | ||
"imagetemplate_tag1": "IT_T1", | ||
"imagetemplate_tag2": "IT_T2" | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": {} | ||
} | ||
}, | ||
"properties": { | ||
"source": { | ||
"type": "ManagedImage", | ||
"imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "Shell", | ||
"name": "Shell Customizer Example", | ||
"scriptUri": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "ManagedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity_1": { | ||
"clientId": "00000000-0000-0000-0000-000000000000", | ||
"principalId": "00000000-0000-0000-0000-000000000000" | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"source": { | ||
"type": "ManagedImage", | ||
"imageId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/images/source_image" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "Shell", | ||
"name": "Shell Customizer Example", | ||
"scriptUri": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "ManagedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...crosoft.VirtualMachineImages/preview/2019-05-01-preview/examples/DeleteImageTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"imageTemplateName":"myImageTemplate", | ||
"api-version": "2019-05-01-preview" | ||
}, | ||
"responses":{ | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/{subscription-id}/providers/Microsoft.VirtualMachineImages/locations/westus/operations/85506efc-36f7-11e9-a0c2-000d3afd16e3?api-version=2018-02-01-preview" | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../Microsoft.VirtualMachineImages/preview/2019-05-01-preview/examples/GetImageTemplate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-05-01-preview", | ||
"imageTemplateName": "myImageTemplate" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "ISO", | ||
"sourceUri": "http://redhat.com/path/to/installation.iso", | ||
"sha256Checksum": "120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "Shell", | ||
"name": "Shell Customizer Example", | ||
"scriptUri": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "ManagedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ager/Microsoft.VirtualMachineImages/preview/2019-05-01-preview/examples/GetRunOutput.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"imageTemplateName":"myImageTemplate", | ||
"runOutputName": "myManagedImageOutput", | ||
"api-version": "2019-05-01-preview" | ||
}, | ||
"responses":{ | ||
"200": { | ||
"body":{ | ||
"id": "/subscriptions/{subscription-id}/resourcegroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate/runOutputs/myManagedImageOutput", | ||
"name": "myManagedImageOutput", | ||
"properties": { | ||
"artifactId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/output_managed_image", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"type": "Microsoft.VirtualMachineImages/imageTemplates/runOutputs" | ||
} | ||
} | ||
} | ||
} |
79 changes: 79 additions & 0 deletions
79
...icrosoft.VirtualMachineImages/preview/2019-05-01-preview/examples/ListImageTemplates.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"api-version": "2019-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/myImageTemplate", | ||
"name": "myImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "ISO", | ||
"sourceUri": "http://redhat.com/path/to/installation.iso", | ||
"sha256Checksum": "120acbca7b3d55465eb9f8ef53ad7365f2997d42d4f83d7cc285bf5c71e1131f" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "Shell", | ||
"name": "Shell customization example", | ||
"scriptUri": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "ManagedImage", | ||
"location": "1_location", | ||
"runOutputName": "image_it_pir_1", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/image_it_1", | ||
"tags": { | ||
"tagName": "value" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myOtherResourceGroup/providers/Microsoft.VirtualMachineImages/imageTemplates/mySecondImageTemplate", | ||
"name": "mySecondImageTemplate", | ||
"location": "westus", | ||
"type": "Microsoft.VirtualMachineImages/imageTemplate", | ||
"properties": { | ||
"source": { | ||
"type": "PlatformImage", | ||
"publisher": "Canonical", | ||
"offer": "UbuntuServer", | ||
"sku": "18.04-LTS", | ||
"version": "18.04.201902121" | ||
}, | ||
"customize": [ | ||
{ | ||
"type": "Shell", | ||
"name": "Shell customization example", | ||
"scriptUri": "https://example.com/path/to/script.sh" | ||
} | ||
], | ||
"distribute": [ | ||
{ | ||
"type": "ManagedImage", | ||
"location": "eastus", | ||
"runOutputName": "eus", | ||
"imageId": "/subscriptions/{subscription-id}/resourceGroups/rg1/providers/Microsoft.Compute/images/mySecondImage-eus", | ||
"tags": { | ||
"stage": "development" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"nextLink": "/subscriptions/{subscription-id}/providers/Microsoft.VirtualMachineImages/imageTemplates?api-version=2018-02-01-preview&skip-token=2" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.