CognitiveServicesExtensions.GetAllAsync Method

Definition

Overloads

Name Description
GetAllAsync(SubscriptionResource, String, String, String, CancellationToken)

Gets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information. <item> Mocking. To mock this method, please mock GetAllAsync(String, String, String, CancellationToken) instead. </item>

GetAllAsync(SubscriptionResource, AzureLocation, CancellationToken)

List managed compute quota usages for a subscription and location. <item> Mocking. To mock this method, please mock GetAllAsync(AzureLocation, CancellationToken) instead. </item>

GetAllAsync(SubscriptionResource, String, String, String, CancellationToken)

Source:
CognitiveServicesExtensions.cs

Gets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information. <item> Mocking. To mock this method, please mock GetAllAsync(String, String, String, CancellationToken) instead. </item>

public static Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeCapacity> GetAllAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string offer, string acceleratorType = default, string deploymentId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAllAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeCapacity>
<Extension()>
Public Function GetAllAsync (subscriptionResource As SubscriptionResource, offer As String, Optional acceleratorType As String = Nothing, Optional deploymentId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagedComputeCapacity)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

offer
String

The offer name to query capacity for (required).

acceleratorType
String

Optional accelerator type filter to narrow results to a specific accelerator type.

deploymentId
String

Optional deployment resource ID. When provided, returns capacity for the specific region where the deployment is hosted rather than the best available region.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

GetAllAsync(SubscriptionResource, AzureLocation, CancellationToken)

Source:
CognitiveServicesExtensions.cs

List managed compute quota usages for a subscription and location. <item> Mocking. To mock this method, please mock GetAllAsync(AzureLocation, CancellationToken) instead. </item>

public static Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeUsage> GetAllAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetAllAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.ManagedComputeUsage>
<Extension()>
Public Function GetAllAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ManagedComputeUsage)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource the method will execute against.

location
AzureLocation

The location name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to