-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Azure Compute Gallery image ids to ImageDiskReference for Put…
…Disk Support in 2022-03-02 Api Version (#18868) * new sig ids for put disk 2022-03-02 * fix errors and add example path * extra space * remove required id * prettify common Co-authored-by: Jerry Chan <jerch@microsoft.com>
- Loading branch information
Showing
5 changed files
with
206 additions
and
6 deletions.
There are no files selected for viewing
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
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
62 changes: 62 additions & 0 deletions
62
...-02/DiskRP/examples/diskExamples/Disk_Create_FromAnAzureComputeGalleryCommunityImage.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,62 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-03-02", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"communityGalleryImageId": "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"hyperVGeneration": "V1", | ||
"supportedCapabilities": { | ||
"acceleratedNetwork": true | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"communityGalleryImageId": "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
}, | ||
"provisioningState": "Updating" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"osType": "Windows", | ||
"hyperVGeneration": "V1", | ||
"supportedCapabilities": { | ||
"acceleratedNetwork": true | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"communityGalleryImageId": "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
.../DiskRP/examples/diskExamples/Disk_Create_FromAnAzureComputeGalleryDirectSharedImage.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,62 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-03-02", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"sharedGalleryImageId": "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"hyperVGeneration": "V1", | ||
"supportedCapabilities": { | ||
"acceleratedNetwork": true | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"sharedGalleryImageId": "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
}, | ||
"provisioningState": "Updating" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"osType": "Windows", | ||
"hyperVGeneration": "V1", | ||
"supportedCapabilities": { | ||
"acceleratedNetwork": true | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"sharedGalleryImageId": "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...e/2022-03-02/DiskRP/examples/diskExamples/Disk_Create_FromAnAzureComputeGalleryImage.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,62 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscriptionId}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2022-03-02", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"hyperVGeneration": "V1", | ||
"supportedCapabilities": { | ||
"acceleratedNetwork": true | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
}, | ||
"provisioningState": "Updating" | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"osType": "Windows", | ||
"hyperVGeneration": "V1", | ||
"supportedCapabilities": { | ||
"acceleratedNetwork": true | ||
}, | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"galleryImageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |