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
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,12 +144,12 @@ ACG images can be created by users from various sources, including virtual machi
144
144
145
145
### [VM as source](#tab/vmsource)
146
146
- Users will require write permission on the Virtual Machine to create an ACG Image version.
147
-
- For Azure SDK, use the property [properties.storageProfile.source.virtualMachineId](rest/api/compute/gallery-image-versions/create-or-update), This property requires API version 2023-07-03 or [Version 1.4.0](https://www.nuget.org/packages/Azure.ResourceManager.Compute) (or higher) of .NET SDK
147
+
- For Azure SDK, use the property [properties.storageProfile.source.virtualMachineId](/rest/api/compute/gallery-image-versions/create-or-update), This property requires API version 2023-07-03 or [Version 1.4.0](https://www.nuget.org/packages/Azure.ResourceManager.Compute) (or higher) of .NET SDK
148
148
### [Disk/Snapshot as Source](#tab/disksnapsource)
149
149
- Users will require write permission (contributor) on the source disk/snapshot to create an ACG Image version.
150
150
### [VHD as Source](#tab/vhdsource)
151
151
- Users will require Microsoft.Storage/storageAccounts/listKeys/action, Microsoft.Storage/storageAccounts/write permission (contributor role) on the storage account.
152
-
- For SDK, use the property [properties.storageProfile.osDiskImage.source.storageAccountId](rest/api/compute/gallery-image-versions/create-or-update), This property requires minimum api-version 2022-03-03.
152
+
- For SDK, use the property [properties.storageProfile.osDiskImage.source.storageAccountId](/rest/api/compute/gallery-image-versions/create-or-update), This property requires minimum api-version 2022-03-03.
153
153
### [Managed Image and Gallery Image Version as Source](#tab/managedgallerysource)
154
154
- Users will require read permission on the Managed Image/Gallery Image.
155
155
@@ -301,24 +301,22 @@ There are two ways you can specify the number of image version replicas to be cr
301
301
1. The regional replica count which specifies the number of replicas you want to create per region.
302
302
2. The common replica count which is the default per region count in case regional replica count isn't specified.
303
303
304
-
### [Azure CLI](#tab/azure-cli)
304
+
### [Azure CLI]
305
305
306
306
To specify the regional replica count, pass the location along with the number of replicas you want to create in that region: "South Central US=2".
307
307
308
308
If regional replica count isn't specified with each location, then the default number of replicas will be the common replica count that you specified.
309
309
310
310
To specify the common replica count in Azure CLI, use the **--replica-count** argument in the `az sig image-version create` command.
311
311
312
-
### [Azure PowerShell](#tab/azure-powershell)
312
+
### [Azure PowerShell]
313
313
314
314
To specify the regional replica count, pass the location along with the number of replicas you want to create in that region, `@{Name = 'South Central US';ReplicaCount = 2}`, to the **-TargetRegion** parameter in the `New-AzGalleryImageVersion` command.
315
315
316
316
If regional replica count isn't specified with each location, then the default number of replicas will be the common replica count that you specified.
317
317
318
318
To specify the common replica count in Azure PowerShell, use the **-ReplicaCount** parameter in the `New-AzGalleryImageVersion` command.
319
319
320
-
---
321
-
322
320
### Can I create the gallery in a different location than the one for the image definition and image version?
323
321
324
322
Yes, it's possible. But, as a best practice, we encourage you to keep the resource group, gallery, image definition, and image version in the same location.
0 commit comments