Share via


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, Static}]

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

Bus Number for the disk.

--disk-size

Size of the disk in GB.

--name -n

Name of the Disk.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Optional Parameters

--bus-type

Bus Type of the Disk.

Accepted values: IDE, SCSI
Default value: SCSI
--lun

Lun Number for the disk.

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--qos-id

UUID of the Storage QoS Policy to be applied on the disk.

--qos-name

Name of the Storage QoS Policy to be applied on the disk.

--vhd-type

VHD Type of the Disk.

Accepted values: Dynamic, Static
Default value: Dynamic
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--disks

Names of the Disks.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Optional Parameters

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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 -n

Name of the Disk.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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, Static}]

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

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-name

Name of the virtual machine.

Optional Parameters

--bus

Bus Number for the disk.

--bus-type

Bus Type of the Disk.

Accepted values: IDE, SCSI
--disk-id

UUID of the Disk.

--disk-size

Size of the disk in GB.

--lun

Lun Number for the disk.

--name -n

Name of the Disk.

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--qos-id

UUID of the Storage QoS Policy to be applied on the disk.

--qos-name

Name of the Storage QoS Policy to be applied on the disk.

--vhd-type

VHD Type of the Disk.

Accepted values: Dynamic, Static
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--virtual-machine-name

Name of the VirtualMachine.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

Default value: False
--exists

Wait until the resource exists.

Default value: False
--interval

Polling interval in seconds.

Default value: 30
--timeout

Maximum wait in seconds.

Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.