Skip to content

Commit 5dcfd99

Browse files
committed
Editorial updates and lik fixes
1 parent 37f7fb6 commit 5dcfd99

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

articles/virtual-machines/snapshot-copy-managed-disk.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
title: Create an Azure snapshot of a virtual hard drive
2+
title: Create an Azure snapshot of a virtual hard disk
33
description: Learn how to create a copy of an Azure VM to use as a backup or for troubleshooting issues using the portal, PowerShell, or CLI.
44
author: roygara
55
ms.author: rogarana
66
ms.service: storage
77
ms.subservice: disks
88
ms.workload: infrastructure-services
99
ms.topic: how-to
10-
ms.date: 08/20/2021
10+
ms.date: 09/07/2021
1111
---
1212

13-
# Create a snapshot of a virtual hard drive
13+
# Create a snapshot of a virtual hard disk
1414

1515
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Windows VMs :heavy_check_mark: Flexible scale sets
1616

17-
A snapshot is a full, read-only copy of a virtual hard drive (VHD). You can use a snapshot as a point-in-time backup, or to help troubleshoot virtual machine (VM) issues. You can take a snapshot of both operating system (OS) or data disk VHDs.
17+
A snapshot is a full, read-only copy of a virtual hard disk (VHD). You can use a snapshot as a point-in-time backup, or to help troubleshoot virtual machine (VM) issues. You can take a snapshot of both operating system (OS) or data disk VHDs.
1818

19-
If you want to use a snapshot to create a new VM, ensure that you first cleanly shut down the VM. This action clears any processes that are in progress.
19+
## Create a snapshot of a VHD
2020

21-
## Create a snapshot of a virtual hard drive
21+
If you want to use a snapshot to create a new VM, ensure that you first cleanly shut down the VM. This action clears any processes that are in progress.
2222

2323
# [Portal](#tab/portal)
2424

@@ -27,12 +27,8 @@ To create a snapshot using the Azure portal, complete these steps.
2727
1. In the [Azure portal](https://portal.azure.com), select **Create a resource**.
2828
1. Search for and select **Snapshot**.
2929
1. In the **Snapshot** window, select **Create**. The **Create snapshot** window appears.
30-
1. For **Resource group**, select an existing [resource group](../azure-resource-manager/management/overview.md#resource-groups) or enter the name of a new one.
31-
1. Enter a **Name**, then select a **Region** and **Snapshot type** for the new snapshot.
32-
33-
> [!NOTE]
34-
> If you would like to store your snapshot in zone-resilient storage, you need to select a region that supports [availability zones](../availability-zones/az-overview.md). For a list of supporting regions, see [Azure regions with availability zones](../availability-zones/az-region.md#azure-regions-with-availability-zones).
35-
30+
1. For **Resource group**, select an existing [resource group](../azure-resource-manager/management/overview#resource-groups) or enter the name of a new one.
31+
1. Enter a **Name**, then select a **Region** and **Snapshot type** for the new snapshot. If you would like to store your snapshot in zone-resilient storage, you need to select a region that supports [availability zones](../availability-zones/az-overview). For a list of supporting regions, see [Azure regions with availability zones](../availability-zones/az-region#azure-regions-with-availability-zones).
3632
1. For **Source subscription**, select the subscription that contains the managed disk to be backed up.
3733
1. For **Source disk**, select the managed disk to snapshot.
3834
1. For **Storage type**, select **Standard HDD**, unless you require zone-redundant storage or high-performance storage for your snapshot.
@@ -41,9 +37,11 @@ To create a snapshot using the Azure portal, complete these steps.
4137

4238
# [PowerShell](#tab/powershell)
4339

44-
Follow these steps to copy a VHD using PowerShell. This example assumes that you have a VM called *myVM* in the *myResourceGroup* resource group. The code sample provided will create a snapshot in the same resource group and within the same region as your source VM.
40+
This example requires that you use [Cloud Shell](https://shell.azure.com/bash) or have the [Azure CLI](/cli/azure/) installed.
41+
42+
Follow these steps to take a snapshot with the `New-AzSnapshotConfig` and `New-AzSnapshot` cmdlets. This example assumes that you have a VM called *myVM* in the *myResourceGroup* resource group. The code sample provided creates a snapshot in the same resource group and within the same region as your source VM.
4543

46-
First, you'll use the [New-AzSnapshotConfig](/powershell/module/az.compute/new-azsnapshotconfig.cmd) cmdlet to create a configurable snapshot object. You can then use the [New-AzSnapshot](/powershell/module/az.compute/new-azsnapshot.cmd) cmdlet to take a snapshot of the disk.
44+
First, you'll use the [New-AzSnapshotConfig](/powershell/module/az.compute/new-azsnapshotconfig) cmdlet to create a configurable snapshot object. You can then use the [New-AzSnapshot](/powershell/module/az.compute/new-azsnapshot) cmdlet to take a snapshot of the disk.
4745

4846
1. Set the required parameters. Update the values to reflect your environment.
4947

@@ -54,7 +52,7 @@ First, you'll use the [New-AzSnapshotConfig](/powershell/module/az.compute/new-a
5452
$snapshotName = 'mySnapshot'
5553
```
5654

57-
1. Use the [Get-AzVM](/powershell/module/az.compute/get-azvm.md) cmdlet to get the VM containing the VHD you want to copy.
55+
1. Use the [Get-AzVM](/powershell/module/az.compute/get-azvm) cmdlet to get the VM containing the VHD you want to copy.
5856

5957
```azurepowershell-interactive
6058
$vm = Get-AzVM `
@@ -71,7 +69,7 @@ First, you'll use the [New-AzSnapshotConfig](/powershell/module/az.compute/new-a
7169
-CreateOption copy
7270
```
7371

74-
If you want to store your snapshot in zone-resilient storage, you must create the snapshot in a region that supports [availability zones](../availability-zones/az-overview.md) and include the `-SkuName Standard_ZRS` parameter. For a list of regions that support availability zones, see [Azure regions with availability zones](../availability-zones/az-region.md#azure-regions-with-availability-zones).
72+
If you want to store your snapshot in zone-resilient storage, you must create the snapshot in a region that supports [availability zones](../availability-zones/az-overview) and include the `-SkuName Standard_ZRS` parameter. For a list of regions that support availability zones, see [Azure regions with availability zones](../availability-zones/az-region#azure-regions-with-availability-zones).
7573

7674
1. Take the snapshot.
7775

@@ -82,17 +80,18 @@ First, you'll use the [New-AzSnapshotConfig](/powershell/module/az.compute/new-a
8280
-ResourceGroupName $resourceGroupName
8381
```
8482

85-
1. Use the [Get-AzSnapshot](/powershell/module/az.compute/get-azsnapshot.md) cmdlet to verify that your snapshot exists.
83+
1. Use the [Get-AzSnapshot](/powershell/module/az.compute/get-azsnapshot) cmdlet to verify that your snapshot exists.
8684

8785
```azurepowershell-interactive
88-
Get-AzSnapshot
86+
Get-AzSnapshot `
87+
-ResourceGroupName $resourceGroupName
8988
```
9089
9190
# [Azure CLI](#tab/cli)
9291
9392
This example requires that you use [Cloud Shell](https://shell.azure.com/bash) or have the [Azure CLI](/cli/azure/) installed.
9493
95-
Use these steps to take a snapshot with the **az snapshot create** command and the **--source-disk** parameter. This example assumes that you have a VM called *myVM* in the *myResourceGroup* resource group. The code sample provided will create a snapshot in the same resource group and within the same region as your source VM.
94+
Follow these steps to take a snapshot with the `az snapshot create` command and the `--source-disk` parameter. This example assumes that you have a VM called *myVM* in the *myResourceGroup* resource group. The code sample provided creates a snapshot in the same resource group and within the same region as your source VM.
9695
9796
1. Get the disk ID with [az vm show](/cli/azure/vm#az_vm_show).
9897
@@ -113,8 +112,7 @@ Use these steps to take a snapshot with the **az snapshot create** command and t
113112
--name osDisk-backup
114113
```
115114
116-
> [!NOTE]
117-
> If you would like to store your snapshot in zone-resilient storage, you need to create it in a region that supports [availability zones](../availability-zones/az-overview.md) and include the optional **--sku Standard_ZRS** parameter. A list of [availability zones](../availability-zones/az-region.md#azure-regions-with-availability-zones) can be found here.
115+
If you would like to store your snapshot in zone-resilient storage, you need to create it in a region that supports [availability zones](../availability-zones/az-overview) and include the optional `--sku Standard_ZRS` parameter. A list of [availability zones](../availability-zones/az-region#azure-regions-with-availability-zones) can be found here.
118116
119117
1. Use [az snapshot list](/cli/azure/snapshot#az_snapshot_list) to verify that your snapshot exists.
120118
@@ -132,14 +130,14 @@ Deploy a virtual machine from a snapshot. Create a managed disk from a snapshot
132130
133131
# [Portal](#tab/portal)
134132
135-
For more information, see the example in [Create a VM from a VHD by using the Azure portal](/azure/virtual-machines/windows/create-vm-specialized-portal.md).
133+
For more information, see the example in [Create a VM from a VHD by using the Azure portal](windows/create-vm-specialized-portal).
136134
137135
# [PowerShell](#tab/powershell)
138136
139-
For more information, see the example in [Create a Windows VM from a specialized disk by using PowerShell](/azure/virtual-machines/windows/create-vm-specialized.md).
137+
For more information, see the example in [Create a Windows VM from a specialized disk by using PowerShell](windows/create-vm-specialized).
140138
141139
# [Azure CLI](#tab/cli)
142140
143-
For more information, see the example in [Create a complete Linux virtual machine with the Azure CLI](/azure/virtual-machines/linux/create-cli-complete.md).
141+
For more information, see the example in [Create a complete Linux virtual machine with the Azure CLI](/previous-versions/azure/virtual-machines/scripts/virtual-machines-linux-cli-sample-create-vm-from-snapshot?toc=%2fcli%2fmodule%2ftoc.json).
144142
145143
---

0 commit comments

Comments
 (0)