VirtualMachinesOperationsExtensions.ListAllAsync 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.
Overloads
ListAllAsync(IVirtualMachinesOperations, String, String, String, CancellationToken) |
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. |
ListAllAsync(IVirtualMachinesOperations, String, CancellationToken) |
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. |
ListAllAsync(IVirtualMachinesOperations, String, String, String, CancellationToken)
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 System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>> ListAllAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string statusOnly = default, string filter = default, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAllAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>>
<Extension()>
Public Function ListAllAsync (operations As IVirtualMachinesOperations, Optional statusOnly As String = Nothing, Optional filter As String = Nothing, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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'
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
ListAllAsync(IVirtualMachinesOperations, String, CancellationToken)
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 System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>> ListAllAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string statusOnly, System.Threading.CancellationToken cancellationToken);
static member ListAllAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Compute.Models.VirtualMachine>>
<Extension()>
Public Function ListAllAsync (operations As IVirtualMachinesOperations, statusOnly As String, cancellationToken As CancellationToken) As Task(Of 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.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET