az connectedvmware vm disk
Note
This reference is part of the connectedvmware extension for the Azure CLI (version 2.0.67 or higher). The extension will automatically install the first time you run an az connectedvmware vm disk command. Learn more about extensions.
Vm disk.
Commands
Name | Description | Type | Status |
---|---|---|---|
az connectedvmware vm disk add |
Add virtual disk to a virtual machine. |
Extension | GA |
az connectedvmware vm disk delete |
Delete virtual disks to a virtual machine. |
Extension | GA |
az connectedvmware vm disk list |
Retrieve a list of vm disk from given resource group name and vm name. |
Extension | GA |
az connectedvmware vm disk show |
Get details of a vm disk by it's name, resource-group and vm name. |
Extension | GA |
az connectedvmware vm disk update |
Update virtual disk to a virtual machine. |
Extension | GA |
az connectedvmware vm disk add
Add virtual disk to a virtual machine.
az connectedvmware vm disk add --controller-key
--disk-size
--name
--resource-group
--vm-name
[--disk-mode]
[--no-wait]
[--unit-number]
Examples
Add virtual disk to a virtual machine
az connectedvmware vm disk add --controller-key "The controller key of the disk" --disk-size "The disk size in GBs" --name "Name of the Disk" --resource-group "resource group name" --vm-name "Name of the virtual machine"
Required Parameters
The controller key of the disk.
The disk size in GBs.
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 mode of the disk.
Do not wait for the long-running operation to finish.
The unit number 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 connectedvmware vm disk delete
Delete virtual disks to a virtual machine.
az connectedvmware vm disk delete --disks
--resource-group
--vm-name
[--no-wait]
[--yes]
Examples
Delete virtual disks to a virtual machine
az connectedvmware vm disk delete --disk "Names of the Disks" --resource-group "resource group name" --vm-name "Name of the virtual machine"
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 connectedvmware vm disk list
Retrieve a list of vm disk from given resource group name and vm name.
az connectedvmware vm disk list --resource-group
--vm-name
Examples
Retrieve a list of vm disk
az connectedvmware vm disk list --resource-group "resource group name" --vm-name "Name of the virtual machine"
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 connectedvmware vm disk show
Get details of a vm disk by it's name, resource-group and vm name.
az connectedvmware vm disk show --name
--resource-group
--vm-name
Examples
Get details of vm disk
az connectedvmware vm disk show --name "Name of the Disk" --resource-group "resource group name" --vm-name "Name of the virtual machine"
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 connectedvmware vm disk update
Update virtual disk to a virtual machine.
az connectedvmware vm disk update --resource-group
--vm-name
[--controller-key]
[--device-key]
[--disk-mode]
[--disk-size]
[--name]
[--no-wait]
[--unit-number]
Examples
Update virtual disk to a virtual machine
az connectedvmware vm disk update --controller-key "The controller key of the disk" --disk-size "The disk size in GBs" --name "Name of the Disk" --resource-group "resource group name" --vm-name "Name of the virtual machine"
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 controller key of the disk.
The device key for the disk.
The mode of the disk.
The disk size in GBs.
Name of the Disk.
Do not wait for the long-running operation to finish.
The unit number 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.
Azure CLI