Skip to main content

commitment_plans

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

Overview

Namecommitment_plans
TypeResource
Idazure.cognitive_services.commitment_plans

Fields

NameDatatypeDescription
accountNametextfield from the properties object
auto_renewtextfield from the properties object
commitmentPlanNametextfield from the properties object
commitment_plan_guidtextfield from the properties object
currenttextfield from the properties object
etagtextResource Etag.
hosting_modeltextfield from the properties object
kindtextThe kind (type) of cognitive service account.
lasttextfield from the properties object
locationtextThe geo-location where the resource lives
nexttextfield from the properties object
plan_typetextfield from the properties object
provisioning_issuestextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, commitmentPlanName, resourceGroupName, subscriptionIdGets the specified commitmentPlans associated with the Cognitive Services account.
listSELECTaccountName, resourceGroupName, subscriptionIdGets the commitmentPlans associated with the Cognitive Services account.
create_or_updateINSERTaccountName, commitmentPlanName, resourceGroupName, subscriptionIdUpdate the state of specified commitmentPlans associated with the Cognitive Services account.
deleteDELETEaccountName, commitmentPlanName, resourceGroupName, subscriptionIdDeletes the specified commitmentPlan associated with the Cognitive Services account.

SELECT examples

Gets the commitmentPlans associated with the Cognitive Services account.

SELECT
accountName,
auto_renew,
commitmentPlanName,
commitment_plan_guid,
current,
etag,
hosting_model,
kind,
last,
location,
next,
plan_type,
provisioning_issues,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags
FROM azure.cognitive_services.vw_commitment_plans
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.cognitive_services.commitment_plans (
accountName,
commitmentPlanName,
resourceGroupName,
subscriptionId,
kind,
sku,
tags,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ commitmentPlanName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ sku }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified commitment_plans resource.

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