Skip to content

Commit 0c536e5

Browse files
Merge pull request #268140 from sandeepraichura/patch-78
Update shared-image-galleries.md
2 parents aef9302 + b11e089 commit 0c536e5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/virtual-machines/shared-image-galleries.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ You can create Azure Compute Gallery resource using templates. There are several
183183
* [What API version should I use when creating images?](#what-api-version-should-i-use-when-creating-images)
184184
* [What API version should I use to create a VM or Virtual Machine Scale Set out of the image version?](#what-api-version-should-i-use-to-create-a-vm-or-virtual-machine-scale-set-out-of-the-image-version)
185185
* [Can I update my Virtual Machine Scale Set created using managed image to use Azure Compute Gallery images?](#can-i-update-my-virtual-machine-scale-set-created-using-managed-image-to-use-azure-compute-gallery-images)
186-
* [How can update my code to use the new property and improve security and ensure permissions are granted accurately during VM image creation?](#how-can-update-my-code-to-use-the-new-property-and-improve-security-and-ensure-permissions-are-granted-accurately-during-vm-image-creation)
186+
* [How can I update my code to use the new property and ensure permissions are granted accurately during VM image creation?](#how-can-i-update-my-code-to-use-the-new-property-and-ensure-permissions-are-granted-accurately-during-vm-image-creation)
187187

188188
### How can I list all the Azure Compute Gallery resources across subscriptions?
189189

@@ -313,10 +313,9 @@ For VM and Virtual Machine Scale Set deployments using an image version, we reco
313313

314314
Yes, you can update the scale set image reference from a managed image to an Azure Compute Gallery image, as long as the OS type, Hyper-V generation, and the data disk layout matches between the images.
315315

316-
### How can update my code to use the new property and improve security and ensure permissions are granted accurately during VM image creation?
317-
```
316+
### How can I update my code to use the new property and ensure permissions are granted accurately during VM image creation?
318317
For Virtual Machine ID field, use VirtualMachineId field under GallerySource(GalleryImageVersionStorageProfile.GallerySource.VirtualMachineID). The new property requires api-version 2023-07-03 or version 1.4.0 (or higher) of .NET SDK
319-
318+
```
320319
StorageProfile = new GalleryImageVersionStorageProfile()
321320
{
322321
GallerySource = new GalleryArtifactVersionFullSource()
@@ -325,9 +324,9 @@ StorageProfile = new GalleryImageVersionStorageProfile()
325324
}
326325
},
327326
```
328-
```
329-
For VHD as a source, use StorageAccountID field under GallerySource under OS disk or Data disk Image(GalleryImageVersionStorageProfile.OSDiskImage.GallerySource.StorageAccountId). The new property requires api-version 2023-07-03 or version 1.4.0 (or higher) of .NET SDK
330327

328+
For VHD as a source, use StorageAccountID field under GallerySource under OS disk or Data disk Image(GalleryImageVersionStorageProfile.OSDiskImage.GallerySource.StorageAccountId). The new property requires api-version 2022-03-03
329+
```
331330
StorageProfile = new GalleryImageVersionStorageProfile()
332331
{
333332
OSDiskImage = new GalleryOSDiskImage()

0 commit comments

Comments
 (0)