Language

MockableCognitiveServicesSubscriptionResource.GetCognitiveServicesManagedComputeCapacitiesAsync Method

Definition

Gets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/managedComputeCapacities.
  • Operation Id. : ManagedComputeCapacities_List.
  • Default Api Version. : 2026-11-01.
public virtual Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesManagedComputeCapacity> GetCognitiveServicesManagedComputeCapacitiesAsync(string offer, string acceleratorType = default, Azure.Core.ResourceIdentifier deploymentId = default, Azure.Core.AzureLocation? location = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCognitiveServicesManagedComputeCapacitiesAsync : string * string * Azure.Core.ResourceIdentifier * Nullable<Azure.Core.AzureLocation> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesManagedComputeCapacity>
override this.GetCognitiveServicesManagedComputeCapacitiesAsync : string * string * Azure.Core.ResourceIdentifier * Nullable<Azure.Core.AzureLocation> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesManagedComputeCapacity>
Public Overridable Function GetCognitiveServicesManagedComputeCapacitiesAsync (offer As String, Optional acceleratorType As String = Nothing, Optional deploymentId As ResourceIdentifier = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of CognitiveServicesManagedComputeCapacity)

Parameters

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
ResourceIdentifier

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

location
Nullable<AzureLocation>

Optional Azure location used to select a DataZone scope. Without a deployment ID, omitted or blank location returns Global and both US and EU DataZone capacities. A supported location returns Global and the matching DataZone capacities; an unsupported location returns Global capacity only. With a deployment ID, a nonblank location must match the parent account location, ignoring case and surrounding whitespace, or the request returns HTTP 400. Capacity is still returned for the deployment's backend region.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

offer is null.

offer is an empty string, and was expected to be non-empty.

Applies to