Share via


MockableComputeSubscriptionResource.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-03-01
  • Resource: VirtualMachineScaleSetResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetResource> GetVirtualMachineScaleSetsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineScaleSetsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetResource>
override this.GetVirtualMachineScaleSetsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetResource>
Public Overridable Function GetVirtualMachineScaleSetsAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualMachineScaleSetResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to