Skip to main content

Create disk snapshot

Snapshot a managed disk: a virtual machine's OS disk, or a disk named directly.

Command in the Azure VMs toolkit · id ooa.azure_vm/create_disk_snapshot · 10 inputs (2 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoazureName of the session opened by Connect.
Resource groupStringYesResource group of the virtual machine or disk.
VM nameStringNoVirtual machine whose OS disk to copy.
Disk nameStringNoName of the managed disk to copy, e.g. a data disk.
Snapshot nameStringYesName for the new snapshot.
IncrementalBooleanNofalseStore only the changes since the disk's last incremental snapshot (cheaper); otherwise a full copy.
Snapshot resource groupStringNoResource group for the snapshot. Leave empty for the disk's group.
TagsDictionaryNoTags for the snapshot, e.g. {"Reason": "Before patching"}.
WaitBooleanNotrueWait until Azure has finished; otherwise the step ends as soon as Azure has accepted the request.
Timeout (seconds)NumberNo1800Stop waiting after this many seconds and fail.

Outputs​

OutputTypeWhat it is
snapshot_idStringResource id of the new snapshot.
disk_idStringResource id of the disk that was copied.
statusStringSucceeded when waited for, otherwise Accepted.