MockableComputeSubscriptionResource.GetVirtualMachineScaleSetsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.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
Azure SDK for .NET