az vmware vm
Note
This reference is part of the vmware extension for the Azure CLI (version 2.11.0 or higher). The extension will automatically install the first time you run an az vmware vm command. Learn more about extensions.
Commands to manage Virtual Machines.
Commands
| az vmware vm list |
List of virtual machines in a private cloud cluster. |
| az vmware vm restrict-movement |
Enable or disable DRS-driven VM movement restriction. |
| az vmware vm show |
Get a virtual machine by ID in a private cloud cluster. |
az vmware vm list
List of virtual machines in a private cloud cluster.
az vmware vm list --cluster-name
--private-cloud
--resource-group
Examples
List of virtual machines.
az vmware vm list --resource-group group1 --private-cloud cloud1 --cluster-name cluster1
Required Parameters
Name of the cluster in the private cloud.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 vmware vm restrict-movement
Enable or disable DRS-driven VM movement restriction.
az vmware vm restrict-movement --cluster-name
--private-cloud
--resource-group
--restrict-movement
--virtual-machine
Examples
Enable or disable DRS-driven VM movement restriction.
az vmware vm restrict-movement --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --virtual-machine vm-209 --restrict-movement Enabled
Required Parameters
Name of the cluster in the private cloud.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Whether VM DRS-driven movement is restricted (enabled) or not (disabled).
Virtual Machine identifier.
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 vmware vm show
Get a virtual machine by ID in a private cloud cluster.
az vmware vm show --cluster-name
--private-cloud
--resource-group
--virtual-machine
Examples
Get a virtual machine by ID.
az vmware vm show --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --virtual-machine vm-209
Required Parameters
Name of the cluster in the private cloud.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Virtual Machine identifier.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ