Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idazure.cognitive_services.deployments

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.
callRateLimitobjectThe call rate limit Cognitive Services account.
capabilitiesobjectThe capabilities.
capacitySettingsobjectInternal use only.
currentCapacityintegerThe current capacity.
deploymentStatestringThe state of the deployment. Controls whether the deployment is accepting inference requests. Use 'Running' for active deployments that process requests, or 'Paused' to temporarily stop inference while preserving the deployment configuration. Known values are: "Running" and "Paused". (Running, Paused)
dynamicThrottlingEnabledbooleanIf the dynamic throttling is enabled.
etagstringResource Etag.
modelobjectProperties of Cognitive Services account deployment model.
parentDeploymentNamestringThe name of parent deployment.
provisioningStatestringGets the status of the resource at the time the operation was called. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Disabled", and "Canceled". (Accepted, Creating, Deleting, Moving, Failed, Succeeded, Disabled, Canceled)
raiPolicyNamestringThe name of RAI policy.
rateLimitsarray:vartype rate_limits: list[~azure.mgmt.cognitiveservices.models.ThrottlingRule]
routingobjectRouting configuration for the model-router deployment. This property is only applicable when the deployed model is 'model-router' version 2025-11-18 or later. Allows you to select the models subset for routing and the routing mode (balanced, quality, cost) for routing across all supported models or the model subset.
scaleSettingsobjectProperties of Cognitive Services account deployment model. (Deprecated, please use Deployment.sku instead.).
serviceTierstringThe service tier for the deployment. Determines the pricing and performance level for request processing. Use 'Default' for standard pricing or 'Priority' for higher-priority processing with premium pricing. Note: Pause operations are only supported on Standard, DataZoneStandard, and GlobalStandard SKUs. Known values are: "Default" and "Priority". (Default, Priority)
skuobjectThe resource model definition representing SKU.
speculativeDecodingobjectSpeculative decoding settings for the deployment. This configuration applies to Fireworks model formats.
spilloverDeploymentNamestringSpecifies the deployment name that should serve requests when the request would have otherwise been throttled due to reaching current deployment throughput limit.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionUpgradeOptionstringDeployment model version upgrade option. Known values are: "OnceNewDefaultVersionAvailable", "OnceCurrentVersionExpired", and "NoAutoUpgrade". (OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, NoAutoUpgrade)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, deployment_name, subscription_idGets the specified deployments associated with the Cognitive Services account.
listselectresource_group_name, account_name, subscription_idGets the deployments associated with the Cognitive Services account.
create_or_updateinsertresource_group_name, account_name, deployment_name, subscription_idUpdate the state of specified deployments associated with the Cognitive Services account.
updateupdateresource_group_name, account_name, deployment_name, subscription_idUpdate specified deployments associated with the Cognitive Services account.
create_or_updatereplaceresource_group_name, account_name, deployment_name, subscription_idUpdate the state of specified deployments associated with the Cognitive Services account.
deletedeleteresource_group_name, account_name, deployment_name, subscription_idDeletes the specified deployment associated with the Cognitive Services account.
list_skusexecresource_group_name, account_name, deployment_name, subscription_idLists the specified deployments skus associated with the Cognitive Services account.
pauseexecresource_group_name, account_name, deployment_name, subscription_idPause a deployment. Pauses inferencing on a deployment by setting the deploymentState to 'Paused' (see #/definitions/DeploymentProperties/properties/deploymentState). Only Standard, DataZoneStandard, and GlobalStandard SKUs support this operation. Inference requests to the paused deployment endpoint will receive HTTP 423 (Locked). This operation is idempotent.
resumeexecresource_group_name, account_name, deployment_name, subscription_idResume a deployment. Resumes inferencing on a previously paused deployment by setting the deploymentState to 'Running' (see #/definitions/DeploymentProperties/properties/deploymentState). This operation is idempotent and can be safely called on already running deployments.

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
account_namestringThe name of Cognitive Services account. Required.
deployment_namestringThe name of the deployment associated with the Cognitive Services Account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the specified deployments associated with the Cognitive Services account.

SELECT
id,
name,
callRateLimit,
capabilities,
capacitySettings,
currentCapacity,
deploymentState,
dynamicThrottlingEnabled,
etag,
model,
parentDeploymentName,
provisioningState,
raiPolicyName,
rateLimits,
routing,
scaleSettings,
serviceTier,
sku,
speculativeDecoding,
spilloverDeploymentName,
systemData,
tags,
type,
versionUpgradeOption
FROM azure.cognitive_services.deployments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Update the state of specified deployments associated with the Cognitive Services account.

INSERT INTO azure.cognitive_services.deployments (
properties,
sku,
tags,
resource_group_name,
account_name,
deployment_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ sku }}',
'{{ tags }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ deployment_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update specified deployments associated with the Cognitive Services account.

UPDATE azure.cognitive_services.deployments
SET
tags = '{{ tags }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

Update the state of specified deployments associated with the Cognitive Services account.

REPLACE azure.cognitive_services.deployments
SET
properties = '{{ properties }}',
sku = '{{ sku }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the specified deployment associated with the Cognitive Services account.

DELETE FROM azure.cognitive_services.deployments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists the specified deployments skus associated with the Cognitive Services account.

EXEC azure.cognitive_services.deployments.list_skus 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@deployment_name='{{ deployment_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;