ComputeExtensions.GetVirtualMachineScaleSets 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.
Overloads
| Name | Description |
|---|---|
| GetVirtualMachineScaleSets(SubscriptionResource, CancellationToken) |
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. <item> Mocking. To mock this method, please mock GetVirtualMachineScaleSets(CancellationToken) instead. </item> |
| GetVirtualMachineScaleSets(ResourceGroupResource) |
Gets a collection of VirtualMachineScaleSets in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetVirtualMachineScaleSets() instead. </item> |
GetVirtualMachineScaleSets(SubscriptionResource, CancellationToken)
- Source:
- ComputeExtensions.cs
- Source:
- ComputeExtensions.cs
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. <item> Mocking. To mock this method, please mock GetVirtualMachineScaleSets(CancellationToken) instead. </item>
public static Azure.Pageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetResource> GetVirtualMachineScaleSets(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineScaleSets : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.VirtualMachineScaleSetResource>
<Extension()>
Public Function GetVirtualMachineScaleSets (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualMachineScaleSetResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of VirtualMachineScaleSetResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource is null.
Applies to
GetVirtualMachineScaleSets(ResourceGroupResource)
- Source:
- ComputeExtensions.cs
- Source:
- ComputeExtensions.cs
Gets a collection of VirtualMachineScaleSets in the ResourceGroupResource<item> Mocking. To mock this method, please mock GetVirtualMachineScaleSets() instead. </item>
public static Azure.ResourceManager.Compute.VirtualMachineScaleSetCollection GetVirtualMachineScaleSets(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVirtualMachineScaleSets : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.VirtualMachineScaleSetCollection
<Extension()>
Public Function GetVirtualMachineScaleSets (resourceGroupResource As ResourceGroupResource) As VirtualMachineScaleSetCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
Returns
An object representing collection of VirtualMachineScaleSets and their operations over a VirtualMachineScaleSetResource.
Exceptions
resourceGroupResource is null.