Aracılığıyla paylaş


ComputeExtensions.GetAvailabilitySets Method

Definition

Overloads

GetAvailabilitySets(ResourceGroupResource)

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

GetAvailabilitySets(SubscriptionResource, String, CancellationToken)

Lists all availability sets in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets
  • Operation Id: AvailabilitySets_ListBySubscription
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource

GetAvailabilitySets(ResourceGroupResource)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

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

public static Azure.ResourceManager.Compute.AvailabilitySetCollection GetAvailabilitySets (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetAvailabilitySets : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Compute.AvailabilitySetCollection
<Extension()>
Public Function GetAvailabilitySets (resourceGroupResource As ResourceGroupResource) As AvailabilitySetCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of AvailabilitySetResources and their operations over a AvailabilitySetResource.

Exceptions

resourceGroupResource is null.

Applies to

GetAvailabilitySets(SubscriptionResource, String, CancellationToken)

Source:
ComputeExtensions.cs
Source:
ComputeExtensions.cs

Lists all availability sets in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets
  • Operation Id: AvailabilitySets_ListBySubscription
  • Default Api Version: 2024-07-01
  • Resource: AvailabilitySetResource
public static Azure.Pageable<Azure.ResourceManager.Compute.AvailabilitySetResource> GetAvailabilitySets (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAvailabilitySets : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Compute.AvailabilitySetResource>
<Extension()>
Public Function GetAvailabilitySets (subscriptionResource As SubscriptionResource, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AvailabilitySetResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

expand
String

The expand expression to apply to the operation. Allowed values are 'instanceView'.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to