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
For more information, see [List, update, and delete image resources](update-image-resources.md).
249
249
250
+
---
251
+
250
252
### Can I move my existing image to an Azure Compute Gallery?
251
253
252
254
Yes. There are 3 scenarios based on the types of images you may have.
@@ -302,22 +304,24 @@ There are two ways you can specify the number of image version replicas to be cr
302
304
1. The regional replica count which specifies the number of replicas you want to create per region.
303
305
2. The common replica count which is the default per region count in case regional replica count isn't specified.
304
306
305
-
###[Azure CLI]
307
+
# [Azure CLI](#tab/azure-cli)
306
308
307
309
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".
308
310
309
311
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.
310
312
311
313
To specify the common replica count in Azure CLI, use the **--replica-count** argument in the `az sig image-version create` command.
312
314
313
-
###[Azure PowerShell]
315
+
# [Azure PowerShell](#tab/azure-powershell)
314
316
315
317
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.
316
318
317
319
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.
318
320
319
321
To specify the common replica count in Azure PowerShell, use the **-ReplicaCount** parameter in the `New-AzGalleryImageVersion` command.
320
322
323
+
---
324
+
321
325
### Can I create the gallery in a different location than the one for the image definition and image version?
322
326
323
327
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