Compartilhar via


ComputeExtensions.GetVirtualMachineScaleSetsAsync Method

Definition

Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to