From b75c9b47377e8ec3962ad2cb187730fc0e16247b Mon Sep 17 00:00:00 2001 From: "Tim Regan (from Dev Box)" Date: Tue, 30 Jan 2024 14:07:33 -0800 Subject: [PATCH 1/2] add virtualmachineid field and make comment more generic --- .../GalleryImageVersion_Create_WithVmAsSource.json | 8 ++++---- .../GalleryRP/stable/2023-07-03/gallery.json | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json index cfd842ceedbd..503a1053858c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json @@ -56,7 +56,7 @@ }, "storageProfile": { "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" + "virtualMachineId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" } }, "safetyProfile": { @@ -121,7 +121,7 @@ }, "storageProfile": { "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" + "virtualMachineId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" }, "osDiskImage": { "sizeInGB": 10, @@ -206,7 +206,7 @@ }, "storageProfile": { "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" + "virtualMachineId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" }, "osDiskImage": { "sizeInGB": 10, @@ -291,7 +291,7 @@ }, "storageProfile": { "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" + "virtualMachineId": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" }, "osDiskImage": { "sizeInGB": 10, diff --git a/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json index a8e7a0a13c3b..0c2539d7cd37 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json @@ -2751,6 +2751,10 @@ "communityGalleryImageId": { "type": "string", "description": "The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source." + }, + "virtualMachineId" : { + "type": "string", + "description": "The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version." } }, "allOf": [ @@ -2764,7 +2768,7 @@ "properties": { "id": { "type": "string", - "description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource." + "description": "The id of the gallery artifact version source." } }, "description": "The gallery artifact version source." From c71098810621411eb9f07462540fe1f8263f8868 Mon Sep 17 00:00:00 2001 From: "Tim Regan (from Dev Box)" Date: Thu, 1 Feb 2024 10:57:49 -0800 Subject: [PATCH 2/2] remove extra whitespace --- .../Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json index 0c2539d7cd37..25a2329bef7a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/gallery.json @@ -2752,7 +2752,7 @@ "type": "string", "description": "The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source." }, - "virtualMachineId" : { + "virtualMachineId": { "type": "string", "description": "The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version." }