Share via


GraphServicesExtensions.GetGraphServicesAccountResourcesAsync Method

Definition

Returns list of accounts belonging to a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.GraphServices/accounts
  • Operation Id: Accounts_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.GraphServices.GraphServicesAccountResource> GetGraphServicesAccountResourcesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetGraphServicesAccountResourcesAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.GraphServices.GraphServicesAccountResource>
<Extension()>
Public Function GetGraphServicesAccountResourcesAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of GraphServicesAccountResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of GraphServicesAccountResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to