Skip to content

Commit b86f325

Browse files
authored
Merge pull request #121728 from mysteq/docs/updatesharedimagegalleriesmd
docs: update shared-image-galleries.md
2 parents 34e5463 + 0142789 commit b86f325

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@ To list all the Azure Compute Gallery resources across subscriptions that you ha
223223
1. Look for resources of the **Azure Compute Gallery** type.
224224

225225

226-
### [Azure CLI](#tab/azure-cli)
226+
# [Azure CLI](#tab/azure-cli)
227227

228228
To list all the Azure Compute Gallery resources, across subscriptions that you have permissions to, use the following command in the Azure CLI:
229229

230230
```azurecli
231231
az account list -otsv --query "[].id" | xargs -n 1 az sig list --subscription
232232
```
233233

234-
### [Azure PowerShell](#tab/azure-powershell)
234+
# [Azure PowerShell](#tab/azure-powershell)
235235

236236
To list all the Azure Compute Gallery resources, across subscriptions that you have permissions to, use the following command in the Azure PowerShell:
237237

@@ -247,6 +247,8 @@ Get-AzSubscription | ForEach-Object @params
247247

248248
For more information, see [List, update, and delete image resources](update-image-resources.md).
249249

250+
---
251+
250252
### Can I move my existing image to an Azure Compute Gallery?
251253

252254
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
302304
1. The regional replica count which specifies the number of replicas you want to create per region.
303305
2. The common replica count which is the default per region count in case regional replica count isn't specified.
304306

305-
### [Azure CLI]
307+
# [Azure CLI](#tab/azure-cli)
306308

307309
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".
308310

309311
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.
310312

311313
To specify the common replica count in Azure CLI, use the **--replica-count** argument in the `az sig image-version create` command.
312314

313-
### [Azure PowerShell]
315+
# [Azure PowerShell](#tab/azure-powershell)
314316

315317
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.
316318

317319
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.
318320

319321
To specify the common replica count in Azure PowerShell, use the **-ReplicaCount** parameter in the `New-AzGalleryImageVersion` command.
320322

323+
---
324+
321325
### Can I create the gallery in a different location than the one for the image definition and image version?
322326

323327
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

Comments
 (0)