Share via


StandbyPoolExtensions.GetStandbyVirtualMachinePoolsAsync Method

Definition

List StandbyVirtualMachinePoolResource resources by subscription ID

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools
  • Operation Id: StandbyVirtualMachinePoolResource_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: StandbyVirtualMachinePoolResource
public static Azure.AsyncPageable<Azure.ResourceManager.StandbyPool.StandbyVirtualMachinePoolResource> GetStandbyVirtualMachinePoolsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetStandbyVirtualMachinePoolsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.StandbyPool.StandbyVirtualMachinePoolResource>
<Extension()>
Public Function GetStandbyVirtualMachinePoolsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of StandbyVirtualMachinePoolResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to