Skip to content

Commit 649bc79

Browse files
Merge pull request #221136 from mattmcinnes/freshness12-22-4
Update managed-disk-from-image-version.md
2 parents cc19a12 + 37a5a3a commit 649bc79

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/virtual-machines/managed-disk-from-image-version.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ms.service: virtual-machines
66
ms.subservice: gallery
77
ms.topic: how-to
88
ms.workload: infrastructure
9-
ms.date: 10/27/2020
10-
ms.author: cynthn
9+
ms.date: 12/12/2022
10+
ms.author: mattmcinnes
1111
ms.reviewer: olayemio
1212
ms.custom: devx-track-azurepowershell, devx-track-azurecli
1313
ms.devlang: azurecli
@@ -18,12 +18,12 @@ ms.devlang: azurecli
1818

1919
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets :heavy_check_mark: Uniform scale sets
2020

21-
You can export the OS or a single data disk from an image version as a managed disk from an image version stored in an Azure Compute Gallery (formerly known as Shared Image Gallery).
21+
You can export an image version's OS or data disk as a managed disk from an image version, which is stored in an Azure Compute Gallery (formerly known as Shared Image Gallery).
2222

2323

2424
## CLI
2525

26-
List the image versions in a gallery using [az sig image-version list](/cli/azure/sig/image-version#az-sig-image-version-list). In this example, we are looking for all of the image versions that are part of the *myImageDefinition* image definition in the *myGallery* gallery.
26+
List the image versions in a gallery using [az sig image-version list](/cli/azure/sig/image-version#az-sig-image-version-list). In this example, we're looking for all of the image versions that are part of the *myImageDefinition* image definition in the *myGallery* gallery.
2727

2828
```azurecli-interactive
2929
az sig image-version list \
@@ -45,7 +45,7 @@ az disk create --resource-group myResourceGroup --location EastUS --name myManag
4545

4646

4747

48-
If you want to export a data disk from the image version, add `--gallery-image-reference-lun` to specify the LUN location of the data disk to export.
48+
If you want to export a data disk from the image version, add `--gallery-image-reference-lun` to specify the LUN location of the data disk to be exported.
4949

5050
In this example, we export the data disk located at LUN 0 of the image version to create a managed disk named *myManagedDataDisk*, in the *EastUS* region, in a resource group named *myResourceGroup*.
5151

@@ -65,7 +65,7 @@ Get-AzResource `
6565
Format-Table -Property Name,ResourceId,ResourceGroupName
6666
```
6767

68-
Once you have all of the information you need, you can use [Get-AzGalleryImageVersion](/powershell/module/az.compute/get-azgalleryimageversion) to get the source image version you want to use and assign it to a variable. In this example, we are getting the `1.0.0` image version, of the `myImageDefinition` definition, in the `myGallery` source gallery, in the `myResourceGroup` resource group.
68+
Once you have all of the information you need, you can use [Get-AzGalleryImageVersion](/powershell/module/az.compute/get-azgalleryimageversion) to get the source image version you want to use and assign it to a variable. In this example, we're getting the `1.0.0` image version, of the `myImageDefinition` definition, in the `myGallery` source gallery, in the `myResourceGroup` resource group.
6969

7070
```azurepowershell-interactive
7171
$sourceImgVer = Get-AzGalleryImageVersion `
@@ -75,7 +75,7 @@ $sourceImgVer = Get-AzGalleryImageVersion `
7575
-Name 1.0.0
7676
```
7777

78-
After setting the `source` variable to the ID of the image version, use [New-AzDiskConfig](/powershell/module/az.compute/new-azdiskconfig) to create a disk configuration and [New-AzDisk](/powershell/module/az.compute/new-azdisk) to create the disk.
78+
After setting the `source` variable to the ID of the image version, use [New-AzDiskConfig](/powershell/module/az.compute/new-azdiskconfig) to create a disk configuration, then [New-AzDisk](/powershell/module/az.compute/new-azdisk) to create the disk.
7979

8080
In this example, we export the OS disk of the image version to create a managed disk named *myManagedOSDisk*, in the *EastUS* region, in a resource group named *myResourceGroup*.
8181

0 commit comments

Comments
 (0)