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
Copy file name to clipboardExpand all lines: includes/virtual-machines-disks-incremental-snapshot.md
+28-2Lines changed: 28 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ There are a few differences between an incremental snapshot and a regular snapsh
18
18
19
19
Incremental snapshots also offer a differential capability, which is uniquely available to managed disks. They enable you to get the changes between two incremental snapshots of the same managed disks, down to the block level. You can use this capability to reduce your data footprint when copying snapshots across regions.
20
20
21
-
If you haven't yet signed up for the preview and you'd like to start using incremental snapshots, please fill out our [survey](https://aka.ms/mdisnapshotpublicpreview) to get access.
21
+
If you haven't yet signed up for the preview and you'd like to start using incremental snapshots, please email us at [email protected] to get access to the public preview.
22
22
23
23
## Restrictions
24
24
@@ -106,6 +106,32 @@ You can also use Azure Resource Manager templates to create an incremental snaps
106
106
}
107
107
```
108
108
109
+
## CLI
110
+
111
+
You can create an incremental snapshot with the Azure CLI using [az snapshot create](https://docs.microsoft.com/cli/azure/snapshot?view=azure-cli-latest#az-snapshot-create). An example command would look like the following:
112
+
113
+
```bash
114
+
az snapshot create -g <exampleResourceGroup> \
115
+
-n <exampleSnapshotName> \
116
+
-l <exampleLocation> \
117
+
--source <exampleVMId> \
118
+
--incremental
119
+
```
120
+
121
+
You can also identify what snapshots are incremental snapshots in the CLI with by using the `--query` parameter on [az snapshot show](https://docs.microsoft.com/cli/azure/snapshot?view=azure-cli-latest#az-snapshot-show). You can use that parameter to directly query the **SourceResourceId** and **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 disk with the same name, the value of the **UniqueId** property will change.
122
+
123
+
Examples of either queries would look like the following:
124
+
125
+
```bash
126
+
az snapshot show -g <exampleResourceGroup> \
127
+
-n <yourSnapShotName> \
128
+
--query [creationData.sourceResourceId] -o tsv
129
+
130
+
az snapshot show -g <exampleResourceGroup> \
131
+
-n <yourSnapShotName> \
132
+
--query [creationData.sourceUniqueId] -o tsv
133
+
```
134
+
109
135
## Next steps
110
136
111
-
If you haven't yet signed up for the preview and you'd like to start using incremental snapshots, please fill out our [survey](https://aka.ms/mdisnapshotpublicpreview).
137
+
If you haven't yet signed up for the preview and you'd like to start using incremental snapshots, please email us at [email protected] to get access to the public preview.
0 commit comments