You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/shared-image-galleries.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,7 @@ You can create Azure Compute Gallery resource using templates. There are several
183
183
*[What API version should I use when creating images?](#what-api-version-should-i-use-when-creating-images)
184
184
*[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)
185
185
*[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)
187
187
188
188
### How can I list all the Azure Compute Gallery resources across subscriptions?
189
189
@@ -313,10 +313,9 @@ For VM and Virtual Machine Scale Set deployments using an image version, we reco
313
313
314
314
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.
315
315
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?
318
317
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
+
```
320
319
StorageProfile = new GalleryImageVersionStorageProfile()
321
320
{
322
321
GallerySource = new GalleryArtifactVersionFullSource()
@@ -325,9 +324,9 @@ StorageProfile = new GalleryImageVersionStorageProfile()
325
324
}
326
325
},
327
326
```
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
330
327
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
+
```
331
330
StorageProfile = new GalleryImageVersionStorageProfile()
0 commit comments