az scvmm vm disk
Note
This reference is part of the scvmm extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az scvmm vm disk command. Learn more about extensions.
Managing the Disks of Arc for SCVMM Virtual Machine.
Commands
Name | Description | Type | Status |
---|---|---|---|
az scvmm vm disk add |
Add a virtual disk to a virtual machine. |
Extension | GA |
az scvmm vm disk delete |
Delete disks of a virtual machine. |
Extension | GA |
az scvmm vm disk list |
Retrieve the list of disks present in a VM. |
Extension | GA |
az scvmm vm disk show |
Get the details of a disk present in a VM. |
Extension | GA |
az scvmm vm disk update |
Update a disk of a VM. |
Extension | GA |
az scvmm vm disk wait |
Place the CLI in a waiting state until a condition of the vm disk is met. |
Extension | GA |
az scvmm vm disk add
Add a virtual disk to a virtual machine.
az scvmm vm disk add --bus
--disk-size
--name
--resource-group
--vm-name
[--bus-type {IDE, SCSI}]
[--lun]
[--no-wait]
[--qos-id]
[--qos-name]
[--vhd-type {Dynamic, Fixed}]
Examples
Create a virtual disk with size 100 GB to a virtual machine and attach it to Bus 1 Lun 10 SCSI controller.
az scvmm vm disk add --subscription contoso-sub --resource-group contoso-rg --vm-name contoso-vm --name disk_2 --bus 1 --lun 10 --bus-type SCSI --disk-size 100
Required Parameters
Bus Number for the disk.
Size of the disk in GB.
Name of the Disk.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Optional Parameters
Bus Type of the Disk.
Lun Number for the disk.
Do not wait for the long-running operation to finish.
UUID of the Storage QoS Policy to be applied on the disk.
Name of the Storage QoS Policy to be applied on the disk.
VHD Type of the Disk.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az scvmm vm disk delete
Delete disks of a virtual machine.
az scvmm vm disk delete --disks
--resource-group
--vm-name
[--no-wait]
[--yes]
Examples
Delete disks of a virtual machine
az scvmm vm disk delete --subscription contoso-sub --resource-group contoso-rg --vm-name contoso-vm --disks disk_1 disk_2
Required Parameters
Names of the Disks.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Optional Parameters
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az scvmm vm disk list
Retrieve the list of disks present in a VM.
az scvmm vm disk list --resource-group
--vm-name
Examples
Retrieve the list of disks present in a VM
az scvmm vm disk list --subscription contoso-sub --resource-group contoso-rg --vm-name contoso-vm
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az scvmm vm disk show
Get the details of a disk present in a VM.
az scvmm vm disk show --name
--resource-group
--vm-name
Examples
Get details of vm disk
az scvmm vm disk show --subscription contoso-sub --resource-group contoso-rg --vm-name contoso-vm --name disk_1
Required Parameters
Name of the Disk.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az scvmm vm disk update
Update a disk of a VM.
az scvmm vm disk update --resource-group
--vm-name
[--bus]
[--bus-type {IDE, SCSI}]
[--disk-id]
[--disk-size]
[--lun]
[--name]
[--no-wait]
[--qos-id]
[--qos-name]
[--vhd-type {Dynamic, Fixed}]
Examples
Update a disk of a VM
az scvmm vm disk update --subscription contoso-sub --resource-group contoso-rg --vm-name contoso-vm --name disk_1 --bus-type IDE --bus 0 --disk-size 40 --vhd-type Dynamic
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Optional Parameters
Bus Number for the disk.
Bus Type of the Disk.
UUID of the Disk.
Size of the disk in GB.
Lun Number for the disk.
Name of the Disk.
Do not wait for the long-running operation to finish.
UUID of the Storage QoS Policy to be applied on the disk.
Name of the Storage QoS Policy to be applied on the disk.
VHD Type of the Disk.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az scvmm vm disk wait
Place the CLI in a waiting state until a condition of the vm disk is met.
az scvmm vm disk wait --resource-group
--virtual-machine-name
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the VirtualMachine.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.