Skip to main content

model_capacities

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

Overview

Namemodel_capacities
TypeResource
Idazure.cognitive_services.model_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.
availableCapacitynumberThe available capacity for deployment with this model and sku.
availableFinetuneCapacitynumberThe available capacity for deployment with a fine-tune version of this model and sku.
locationstringThe location of the Model Sku Capacity.
modelobjectProperties of Cognitive Services account deployment model.
scopeIdstringThe scope identifier for model SKU capacity.
scopeTypestringThe scope type for model SKU capacity. Known values are: "Regional", "Global", "DataZone", and "Classic". (Regional, Global, DataZone, Classic)
skuNamestring:vartype sku_name: str
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, modelFormat, modelName, modelVersionList ModelCapacities.

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
modelFormatstringThe format of the Model. Required.
modelNamestringThe name of the Model. Required.
modelVersionstringThe version of the Model. Required.
subscription_idstring

SELECT examples

List ModelCapacities.

SELECT
id,
name,
availableCapacity,
availableFinetuneCapacity,
location,
model,
scopeId,
scopeType,
skuName,
systemData,
type
FROM azure.cognitive_services.model_capacities
WHERE subscription_id = '{{ subscription_id }}' -- required
AND modelFormat = '{{ modelFormat }}' -- required
AND modelName = '{{ modelName }}' -- required
AND modelVersion = '{{ modelVersion }}' -- required
;