Megosztás a következőn keresztül:


ComputeExtensions.GetVirtualMachineScaleSets Method

Definition

Overloads

GetVirtualMachineScaleSets(ResourceGroupResource)

Gets a collection of VirtualMachineScaleSetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualMachineScaleSets() instead.

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets
  • Operation Id: VirtualMachineScaleSets_ListAll
  • Default Api Version: 2024-03-01
  • Resource: VirtualMachineScaleSetResource

GetVirtualMachineScaleSets(ResourceGroupResource)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Gets a collection of VirtualMachineScaleSetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualMachineScaleSets() instead.

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 instance the method will execute against.

Returns

An object representing collection of VirtualMachineScaleSetResources and their operations over a VirtualMachineScaleSetResource.

Exceptions

resourceGroupResource is null.

Applies to

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.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets
  • Operation Id: VirtualMachineScaleSets_ListAll
  • Default Api Version: 2024-03-01
  • Resource: VirtualMachineScaleSetResource
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 instance 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