az csvmware vm disk
Note
This reference is part of the csvmware extension for the Azure CLI (version 2.0.67 or higher). The extension will automatically install the first time you run an az csvmware vm disk command. Learn more about extensions.
Command group 'csvmware' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage VMware virtual machine's disks.
Commands
Name | Description | Type | Status |
---|---|---|---|
az csvmware vm disk add |
Add disk to a VMware virtual machine. |
Extension | Preview |
az csvmware vm disk delete |
Delete disks from a VM. |
Extension | Preview |
az csvmware vm disk list |
List details of disks available on a VMware virtual machine. |
Extension | Preview |
az csvmware vm disk show |
Get the details of a VMware virtual machine's disk. |
Extension | Preview |
az csvmware vm disk add
Command group 'csvmware' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
Optional Parameters
Id of the controller. Input 1000 for SCSI controller 0, and 15000 for SATA controller 0.
The disk independence mode.
The amount of disk size in KB.
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 csvmware vm disk delete
Command group 'csvmware' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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
Names of disks.
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 csvmware vm disk list
Command group 'csvmware' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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
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 csvmware vm disk show
Command group 'csvmware' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
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 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.