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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | azure | Name of the session opened by Connect. |
| Resource group | String | Yes | Resource group of the virtual machine or disk. | |
| VM name | String | No | Virtual machine whose OS disk to copy. | |
| Disk name | String | No | Name of the managed disk to copy, e.g. a data disk. | |
| Snapshot name | String | Yes | Name for the new snapshot. | |
| Incremental | Boolean | No | false | Store only the changes since the disk's last incremental snapshot (cheaper); otherwise a full copy. |
| Snapshot resource group | String | No | Resource group for the snapshot. Leave empty for the disk's group. | |
| Tags | Dictionary | No | Tags for the snapshot, e.g. {"Reason": "Before patching"}. | |
| Wait | Boolean | No | true | Wait until Azure has finished; otherwise the step ends as soon as Azure has accepted the request. |
| Timeout (seconds) | Number | No | 1800 | Stop waiting after this many seconds and fail. |
Outputs
| Output | Type | What it is |
|---|---|---|
| snapshot_id | String | Resource id of the new snapshot. |
| disk_id | String | Resource id of the disk that was copied. |
| status | String | Succeeded when waited for, otherwise Accepted. |