Compartilhar via


AvailabilitySetCollection.GetAllAsync(CancellationToken) Method

Definition

Lists all availability sets in a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets
  • Operation Id: AvailabilitySets_List
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.AvailabilitySetResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.AvailabilitySetResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.AvailabilitySetResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AvailabilitySetResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to