Skip to main content

managed_compute_capacities

Creates, updates, deletes, gets or lists a managed_compute_capacities resource.

Overview

Namemanaged_compute_capacities
TypeResource
Idazure.cognitive_services.managed_compute_capacities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
acceleratorTypestringThe type of accelerator (e.g., Azure.A100, Azure.H100).
availableAcceleratorsintegerThe number of available accelerators in the region.
deploymentSizeCapacitiesarrayCapacity information broken down by deployment size.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscription_id, offeracceleratorType, deploymentIdGets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
offerstringThe offer name to query capacity for (required). Required.
subscription_idstring
acceleratorTypestringOptional accelerator type filter to narrow results to a specific accelerator type. Default value is None.
deploymentIdstringOptional deployment resource ID. When provided, returns capacity for the specific region where the deployment is hosted rather than the best available region. Default value is None.

SELECT examples

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

SELECT
id,
name,
acceleratorType,
availableAccelerators,
deploymentSizeCapacities,
systemData,
type
FROM azure.cognitive_services.managed_compute_capacities
WHERE subscription_id = '{{ subscription_id }}' -- required
AND offer = '{{ offer }}' -- required
AND acceleratorType = '{{ acceleratorType }}'
AND deploymentId = '{{ deploymentId }}'
;