Freigeben über


StorageExtensions.GetStorageAccountsAsync Method

Definition

Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. <item> Mocking. To mock this method, please mock GetStorageAccountsAsync(CancellationToken) instead. </item>

public static Azure.AsyncPageable<Azure.ResourceManager.Storage.StorageAccountResource> GetStorageAccountsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStorageAccountsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Storage.StorageAccountResource>
<Extension()>
Public Function GetStorageAccountsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of StorageAccountResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of StorageAccountResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to