Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idazure.cognitive_services.deployments

Fields

NameDatatypeDescription
accountNametextfield from the properties object
call_rate_limittextfield from the properties object
capabilitiestextfield from the properties object
capacity_settingstextfield from the properties object
current_capacitytextfield from the properties object
deploymentNametextfield from the properties object
dynamic_throttling_enabledtextfield from the properties object
etagtextResource Etag.
modeltextfield from the properties object
provisioning_statetextfield from the properties object
rai_policy_nametextfield from the properties object
rate_limitstextfield from the properties object
resourceGroupNametextfield from the properties object
scale_settingstextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
version_upgrade_optiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, deploymentName, resourceGroupName, subscriptionIdGets the specified deployments associated with the Cognitive Services account.
listSELECTaccountName, resourceGroupName, subscriptionIdGets the deployments associated with the Cognitive Services account.
create_or_updateINSERTaccountName, deploymentName, resourceGroupName, subscriptionIdUpdate the state of specified deployments associated with the Cognitive Services account.
deleteDELETEaccountName, deploymentName, resourceGroupName, subscriptionIdDeletes the specified deployment associated with the Cognitive Services account.
updateUPDATEaccountName, deploymentName, resourceGroupName, subscriptionIdUpdate specified deployments associated with the Cognitive Services account.

SELECT examples

Gets the deployments associated with the Cognitive Services account.

SELECT
accountName,
call_rate_limit,
capabilities,
capacity_settings,
current_capacity,
deploymentName,
dynamic_throttling_enabled,
etag,
model,
provisioning_state,
rai_policy_name,
rate_limits,
resourceGroupName,
scale_settings,
sku,
subscriptionId,
system_data,
tags,
version_upgrade_option
FROM azure.cognitive_services.vw_deployments
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new deployments resource.

/*+ create */
INSERT INTO azure.cognitive_services.deployments (
accountName,
deploymentName,
resourceGroupName,
subscriptionId,
sku,
tags,
properties
)
SELECT
'{{ accountName }}',
'{{ deploymentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ sku }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a deployments resource.

/*+ update */
UPDATE azure.cognitive_services.deployments
SET
sku = '{{ sku }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND deploymentName = '{{ deploymentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified deployments resource.

/*+ delete */
DELETE FROM azure.cognitive_services.deployments
WHERE accountName = '{{ accountName }}'
AND deploymentName = '{{ deploymentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';