ResourceGroupsOperationsExtensions.List(IResourceGroupsOperations, ODataQuery<ResourceGroupFilter>) ResourceGroupsOperationsExtensions.List(IResourceGroupsOperations, ODataQuery<ResourceGroupFilter>) ResourceGroupsOperationsExtensions.List(IResourceGroupsOperations, ODataQuery<ResourceGroupFilter>) Method

Definition

Gets all the resource groups for a subscription.

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup> List (this Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations operations, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupFilter> odataQuery = null);
static member List : Microsoft.Azure.Management.ResourceManager.IResourceGroupsOperations * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroupFilter> -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup>
<Extension()>
Public Function List (operations As IResourceGroupsOperations, Optional odataQuery As ODataQuery(Of ResourceGroupFilter) = null) As IPage(Of ResourceGroup)

Parameters

operations
IResourceGroupsOperations IResourceGroupsOperations IResourceGroupsOperations

The operations group for this extension method.

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

OData parameters to apply to the operation.

Returns

Microsoft.Rest.Azure.IPage<ResourceGroup>

Applies to