Skip to main content

List VMs

List the virtual machines of the subscription, or of one resource group, with their size, location and tags.

Command in the Azure VMs toolkit · id ooa.azure_vm/list_vms · 3 inputs, 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoazureName of the session opened by Connect.
Resource groupStringNoOnly this resource group. Leave empty for the whole subscription.
Maximum resultsNumberNo1000Stop after this many virtual machines.

Outputs​

OutputTypeWhat it is
vmsTableColumns: name, resource_group, location, vm_size, os_type, provisioning_state, vm_id, id, tags.
namesListThe names of the virtual machines found.
countNumberHow many virtual machines were found.