VirtualMachinesOperationsExtensions.List Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Lists all of the virtual machines in the specified resource group. 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> List (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string filter = default, string expand = default);
static member List : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * string -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>
<Extension()>
Public Function List (operations As IVirtualMachinesOperations, resourceGroupName As String, Optional filter As String = Nothing, Optional expand As String = Nothing) As IPage(Of VirtualMachine)
Parameters
- operations
- IVirtualMachinesOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group.
- 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
Azure SDK for .NET