ResourceGroupsOperationsExtensions.ListAsync(IResourceGroupsOperations, ODataQuery<ResourceGroupFilter>, CancellationToken) ResourceGroupsOperationsExtensions.ListAsync(IResourceGroupsOperations, ODataQuery<ResourceGroupFilter>, CancellationToken) Method

Definition

Gets all the resource groups for a subscription.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup>> ListAsync (this Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations operations, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupFilter> odataQuery = null, System.Threading.CancellationToken cancellationToken = null);
static member ListAsync : Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupFilter> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup>>

Parameters

operations
IResourceGroupsOperations IResourceGroupsOperations

The operations group for this extension method.

odataQuery
Microsoft.Rest.Azure.OData.ODataQuery<ResourceGroupFilter>

OData parameters to apply to the operation.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.IPage<ResourceGroup>>

Applies to