Share via


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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to