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
You can use the Azure CLI to create an incremental snapshot. You'll need the latest version of the Azure CLI. See the following articles to learn how to either [install](/cli/azure/install-azure-cli) or [update](/cli/azure/update-azure-cli) the Azure CLI.
25
+
You can use the Azure CLI to create an incremental snapshot. You need the latest version of the Azure CLI. See the following articles to learn how to either [install](/cli/azure/install-azure-cli) or [update](/cli/azure/update-azure-cli) the Azure CLI.
26
26
27
-
The following script will create an incremental snapshot of a particular disk:
27
+
The following script creates an incremental snapshot of a particular disk:
28
28
29
29
```azurecli
30
30
# Declare variables
@@ -39,9 +39,6 @@ yourDiskID=$(az disk show -n $diskName -g $resourceGroupName --query "id" --outp
> After taking a snapshot of an Ultra Disk, you must wait for the snapshot to complete before you can use it. See the [Check status of snapshots or disks](#check-status-of-snapshots-or-disks) section for details.
44
-
45
42
You can identify incremental snapshots from the same disk with the `SourceResourceId` property of snapshots. `SourceResourceId` is the Azure Resource Manager resource ID of the parent disk.
46
43
47
44
You can use `SourceResourceId` to create a list of all snapshots associated with a particular disk. Replace `yourResourceGroupNameHere` with your value and then you can use the following example to list your existing incremental snapshots:
@@ -62,7 +59,7 @@ az snapshot list --query "[?creationData.sourceResourceId=='$diskId' && incremen
62
59
63
60
# [Azure PowerShell](#tab/azure-powershell)
64
61
65
-
You can use the Azure PowerShell module to create an incremental snapshot. You'll need the latest version of the Azure PowerShell module. The following command will either install it or update your existing installation to latest:
62
+
You can use the Azure PowerShell module to create an incremental snapshot. You need the latest version of the Azure PowerShell module. The following command will either install it or update your existing installation to latest:
66
63
67
64
```PowerShell
68
65
Install-Module -Name Az -AllowClobber -Scope CurrentUser
> After taking a snapshot of a Premium SSD v2 or an Ultra Disk, you must wait for the snapshot to complete before you can use it. See the [Check status of snapshots or disks](#check-status-of-snapshots-or-disks) section for details.
90
-
91
85
You can identify incremental snapshots from the same disk with the `SourceResourceId` and the `SourceUniqueId` properties of snapshots. `SourceResourceId` is the Azure Resource Manager resource ID of the parent disk. `SourceUniqueId` is the value inherited from the `UniqueId` property of the disk. If you delete a disk and then create a new disk with the same name, the value of the `UniqueId` property changes.
92
86
93
87
You can use `SourceResourceId` and `SourceUniqueId` to create a list of all snapshots associated with a particular disk. Replace `yourResourceGroupNameHere` with your value and then you can use the following example to list your existing incremental snapshots:
> After taking a snapshot of a Premium SSD v2 or an Ultra Disk, you must wait for the snapshot to complete before you can use it. See the [Check status of snapshots or disks](#check-status-of-snapshots-or-disks) section for details.
You can also use Azure Resource Manager templates to create an incremental snapshot. You'll need to make sure the apiVersion is set to **2022-03-22** and that the incremental property is also set to true. The following snippet is an example of how to create an incremental snapshot with Resource Manager templates:
@@ -150,109 +141,9 @@ You can also use Azure Resource Manager templates to create an incremental snaps
150
141
]
151
142
}
152
143
```
153
-
> [!IMPORTANT]
154
-
> After taking a snapshot of a Premium SSD v2 or an Ultra Disk, you must wait for the snapshot to complete before you can use it. See the [Check status of snapshots or disks](#check-status-of-snapshots-or-disks) section for details.
155
144
156
145
---
157
146
158
-
## Check status of snapshots or disks
159
-
160
-
Incremental snapshots of Premium SSD v2 or Ultra Disks can't be used to create new disks until the background process copying the data into the snapshot has completed. Similarly, Premium SSD v2 or Ultra Disks created from incremental snapshots can't be attached to a VM until the background process copying the data into the disk has completed.
161
-
162
-
You can use either the [CLI](#cli) or [PowerShell](#powershell) sections to check the status of the background copy from a disk to a snapshot and you can use the [Check disk creation status](#check-disk-creation-status) section to check the status of a background copy from a snapshot to a disk.
163
-
164
-
### CLI
165
-
166
-
You have two options for getting the status of snapshots. You can either get a [list of all incremental snapshots associated with a specific disk](#cli---list-incremental-snapshots), and their respective status, or you can get the [status of an individual snapshot](#cli---individual-snapshot).
167
-
168
-
#### CLI - List incremental snapshots
169
-
170
-
The following script returns a list of all snapshots associated with a particular disk. The value of the `CompletionPercent` property of any snapshot must be 100 before it can be used. Replace `yourResourceGroupNameHere`, `yourSubscriptionId`, and `yourDiskNameHere` with your values then run the script:
171
-
172
-
```azurecli
173
-
# Declare variables and create snapshot list
174
-
subscriptionId="yourSubscriptionId"
175
-
resourceGroupName="yourResourceGroupNameHere"
176
-
diskName="yourDiskNameHere"
177
-
178
-
az account set --subscription $subscriptionId
179
-
180
-
diskId=$(az disk show -n $diskName -g $resourceGroupName --query [id] -o tsv)
181
-
182
-
az snapshot list --query "[?creationData.sourceResourceId=='$diskId' && incremental]" -g $resourceGroupName --output table
183
-
```
184
-
185
-
#### CLI - Individual snapshot
186
-
187
-
You can also check the status of an individual snapshot by checking the `CompletionPercent` property. Replace `$sourceSnapshotName` with the name of your snapshot then run the following command. The value of the property must be 100 before you can use the snapshot for restoring disk or generate a SAS URI for downloading the underlying data.
188
-
189
-
```azurecli
190
-
az snapshot show -n $sourceSnapshotName -g $resourceGroupName --query [completionPercent] -o tsv
191
-
```
192
-
193
-
### PowerShell
194
-
195
-
You have two options for getting the status of snapshots. You can either get a [list of all incremental snapshots associated with a particular disk](#powershell---list-incremental-snapshots) and their respective status, or you can get the [status of an individual snapshot](#powershell---individual-snapshots).
196
-
197
-
#### PowerShell - List incremental snapshots
198
-
199
-
The following script returns a list of all incremental snapshots associated with a particular disk that haven't completed their background copy. Replace `yourResourceGroupNameHere` and `yourDiskNameHere`, then run the script.
You can check the `CompletionPercent` property of an individual snapshot to get its status. Replace `yourResourceGroupNameHere` and `yourSnapshotName` then run the script. The value of the property must be 100 before you can use the snapshot for restoring disk or generate a SAS URI for downloading the underlying data.
When creating a disk from either a Premium SSD v2 or an Ultra Disk snapshot, you must wait for the background copy process to complete before you can attach it. Currently, you must use the Azure CLI to check the progress of the copy process.
243
-
244
-
The following script gives you the status of an individual disk's copy process. The value of `completionPercent` must be 100 before the disk can be attached.
245
-
246
-
```azurecli
247
-
subscriptionId=yourSubscriptionID
248
-
resourceGroupName=yourResourceGroupName
249
-
diskName=yourDiskName
250
-
251
-
az account set --subscription $subscriptionId
252
-
253
-
az disk show -n $diskName -g $resourceGroupName --query [completionPercent] -o tsv
254
-
```
255
-
256
147
## Check sector size
257
148
258
149
Snapshots with a 4096 logical sector size can only be used to create Premium SSD v2 or Ultra Disks. They can't be used to create other disk types. Snapshots of disks with 4096 logical sector size are stored as VHDX, whereas snapshots of disks with 512 logical sector size are stored as VHD. Snapshots inherit the logical sector size from the parent disk.
@@ -269,6 +160,6 @@ az snapshot show -g resourcegroupname -n snapshotname --query [creationData.logi
269
160
270
161
See [Copy an incremental snapshot to a new region](disks-copy-incremental-snapshot-across-regions.md) to learn how to copy an incremental snapshot across regions.
271
162
272
-
If you have additional questions on snapshots, see the [snapshots](faq-for-disks.yml#snapshots) section of the FAQ.
163
+
If you have more questions on snapshots, see the [snapshots](faq-for-disks.yml#snapshots) section of the FAQ.
273
164
274
165
If you'd like to see sample code demonstrating the differential capability of incremental snapshots, using .NET, see [Copy Azure Managed Disks backups to another region with differential capability of incremental snapshots](https://github.com/Azure-Samples/managed-disks-dotnet-backup-with-incremental-snapshots).
Copy file name to clipboardExpand all lines: includes/virtual-machines-disks-incremental-snapshots-restrictions.md
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@
5
5
author: roygara
6
6
ms.service: virtual-machines
7
7
ms.topic: include
8
-
ms.date: 08/11/2023
8
+
ms.date: 08/17/2023
9
9
ms.author: rogarana
10
-
ms.custom: include file, references_regions
10
+
ms.custom: include file
11
11
---
12
12
13
13
- Incremental snapshots currently can't be moved between subscriptions.
@@ -25,16 +25,10 @@ Incremental snapshots of Premium SSD v2 and Ultra Disks have the following extra
25
25
- Currently, incremental snapshots of Premium SSD v2 and Ultra Disks can't be taken in the Azure portal.
26
26
- Snapshots with a 512 logical sector size are stored as VHD, and can be used to create any disk type. Snapshots with a 4096 logical sector size are stored as VHDX and can only be used to create Ultra Disks and Premium SSD v2 disks, they can't be used to create other disk types. To determine which sector size your snapshot is, see [check sector size](#check-sector-size).
27
27
- Up to five disks may be simultaneously created from a snapshot of a Premium SSD v2 or an Ultra Disk.
28
-
- When an incremental snapshot of either a Premium SSD v2 or an Ultra Disk is created, a background copy process for that disk is started. While a background copy is ongoing, you can have up to three total snapshots pending. The process must complete before any more snapshots of that disk can be created.
29
-
- Incremental snapshots of a Premium SSD v2 or an Ultra disk can't be used immediately after they're created. The background copy must complete before you can create a disk from the snapshot. See [Check status of snapshots or disks](#check-status-of-snapshots-or-disks) for details.
30
-
- Disks created from an incremental snapshot of a Premium SSD v2 or an Ultra Disk can't be immediately attached to a VM once it's created. The background copy must complete before it can be attached. See [Check disk creation status](#check-disk-creation-status) for details.
31
28
32
29
> [!NOTE]
33
30
> Normally, when you take an incremental snapshot, and there aren't any changes, the size of that snapshot is 0 MiB. Currently, empty snapshots of disks with a 4096 logical sector size instead have a size of 6 MiB, when they'd normally be 0 MiB.
34
31
35
32
#### Regional availability
36
33
37
-
Incremental snapshots of Premium SSD v2 and Ultra Disks are currently available in the following regions:
38
-
39
-
- Incremental snapshots of Ultra Disks are currently only available in North Europe, West Europe, Sweden Central, East US, East US 2, North Central US, South Central US, and West US 2.
40
-
- Incremental snapshots of Premium SSD v2 disks are currently only available in North Europe, West Europe, Central US, East US, East US 2, West US 2.
34
+
Incremental snapshots of Premium SSD v2 and Ultra Disks are currently available in every region that Premium SSD v2 and Ultra Disks are available.
0 commit comments