az csvmware vm disk

Manage VMware virtual machine's disks.

Commands

az csvmware vm disk add

Add disk to a VMware virtual machine.

az csvmware vm disk delete

Delete disks from a VM.

az csvmware vm disk list

List details of disks available on a VMware virtual machine.

az csvmware vm disk show

Get the details of a VMware virtual machine's disk.

az csvmware vm disk add

Add disk to a VMware virtual machine.

az csvmware vm disk add --resource-group
                        --vm-name
                        [--controller]
                        [--mode {independent_nonpersistent, independent_persistent, persistent}]
                        [--size]

Examples

Add a disk with default parameters in a VM.

az csvmware vm disk add --vm-name MyVm -g MyResourceGroup

Add a disk with SATA controller 0 and 64 GB memory in a VM.

az csvmware vm disk add --vm-name MyVm -g MyResourceGroup --controller 15000 --size 67108864

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

--controller

Id of the controller. Input 1000 for SCSI controller 0, and 15000 for SATA controller 0.

default value: 1000
--mode

The disk independence mode.

accepted values: independent_nonpersistent, independent_persistent, persistent
default value: persistent
--size

The amount of disk size in KB.

default value: 16777216

az csvmware vm disk delete

Delete disks from a VM.

az csvmware vm disk delete --disks
                           --resource-group
                           --vm-name

Examples

Delete two disks from a VM.

az csvmware vm disk delete --vm-name MyVm -g MyResourceGroup --disks "My Disk Name 1" "My Disk Name 2"

Required Parameters

--disks

Names of 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.

az csvmware vm disk list

List details of disks available on a VMware virtual machine.

az csvmware vm disk list --resource-group
                         --vm-name

Examples

List details of disks in a VM.

az csvmware vm disk list --vm-name MyVm -g MyResourceGroup

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.

az csvmware vm disk show

Get the details of a VMware virtual machine's disk.

az csvmware vm disk show --name
                         --resource-group
                         --vm-name

Examples

Get the details of a disk in a VM.

az csvmware vm disk show --vm-name MyVm -g MyResourceGroup -n "My Disk Name"

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.