VirtualMachinesOperationsExtensions.ListAll Method

Definition

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine> ListAll (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string statusOnly = default, string filter = default, string expand = default);
static member ListAll : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * string -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>
<Extension()>
Public Function ListAll (operations As IVirtualMachinesOperations, Optional statusOnly As String = Nothing, Optional filter As String = Nothing, Optional expand As String = Nothing) As IPage(Of VirtualMachine)

Parameters

operations
IVirtualMachinesOperations

The operations group for this extension method.

statusOnly
String

statusOnly=true enables fetching run time status of all Virtual Machines in the subscription.

filter
String

The system query option to filter VMs returned in the response. Allowed value is 'virtualMachineScaleSet/id' eq /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}'

expand
String

The expand expression to apply on operation. 'instanceView' enables fetching run time status of all Virtual Machines, this can only be specified if a valid $filter option is specified. Possible values include: 'instanceView'

Returns

Applies to