az connectedvmware vm disk
หมายเหตุ
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.
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 |
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]
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"
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.
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.
Delete virtual disks to a virtual machine.
az connectedvmware vm disk delete --disks
--resource-group
--vm-name
[--no-wait]
[--yes]
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"
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.
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.
Retrieve a list of vm disk from given resource group name and vm name.
az connectedvmware vm disk list --resource-group
--vm-name
Retrieve a list of vm disk
az connectedvmware vm disk list --resource-group "resource group name" --vm-name "Name of the virtual machine"
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.
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
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"
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.
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]
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"
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the virtual machine.
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
Azure CLI เป็นโครงการโอเพนซอร์ส เลือกลิงก์เพื่อให้คำติชม: