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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Bus Type of the Disk.
Property | Value |
---|---|
Default value: | SCSI |
Accepted values: | IDE, SCSI |
Lun Number for the disk.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
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.
Property | Value |
---|---|
Default value: | Dynamic |
Accepted values: | Dynamic, Fixed |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Bus Number for the disk.
Bus Type of the Disk.
Property | Value |
---|---|
Accepted values: | IDE, SCSI |
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.
Property | Value |
---|---|
Default value: | False |
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.
Property | Value |
---|---|
Accepted values: | Dynamic, Fixed |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Wait until created with 'provisioningState' at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Wait until deleted.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the resource exists.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Polling interval in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 30 |
Maximum wait in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |