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

--cluster-name

Name of the cluster in the private cloud.

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

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

--cluster-name

Name of the cluster in the private cloud.

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--restrict-movement

Whether VM DRS-driven movement is restricted (enabled) or not (disabled).

--virtual-machine

Virtual Machine identifier.

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

--cluster-name

Name of the cluster in the private cloud.

--private-cloud -c

Name of the private cloud.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--virtual-machine

Virtual Machine identifier.