models
Creates, updates, deletes, gets or lists a models resource.
Overview
| Name | models |
| Type | Resource |
| Id | azure.cognitive_services.models |
Fields
The following fields are returned by SELECT queries:
- list
OK.
| Name | Datatype | Description |
|---|---|---|
description | string | The description of the model. |
kind | string | The kind (type) of cognitive service account. |
model | object | Cognitive Services account Model. |
skuName | string | The name of SKU. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | subscriptionId, location | List Models. | |
calculate_capacity | exec | subscriptionId | Model capacity calculator. |
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.
| Name | Datatype | Description |
|---|---|---|
location | string | Resource location. |
subscriptionId | string | The ID of the target subscription. |
SELECT examples
- list
List Models.
SELECT
description,
kind,
model,
skuName
FROM azure.cognitive_services.models
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND location = '{{ location }}' -- required
;
Lifecycle Methods
- calculate_capacity
Model capacity calculator.
EXEC azure.cognitive_services.models.calculate_capacity
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"model": "{{ model }}",
"skuName": "{{ skuName }}",
"workloads": "{{ workloads }}"
}'
;