Skip to main content

commitment_plans_plans

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

Overview

Namecommitment_plans_plans
TypeResource
Idazure.cognitive_services.commitment_plans_plans

Fields

NameDatatypeDescription
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
getSELECTcommitmentPlanName, resourceGroupName, subscriptionIdReturns a Cognitive Services commitment plan specified by the parameters.
create_or_updateINSERTcommitmentPlanName, resourceGroupName, subscriptionIdCreate Cognitive Services commitment plan.
deleteDELETEcommitmentPlanName, resourceGroupName, subscriptionIdDeletes a Cognitive Services commitment plan from the resource group.
updateUPDATEcommitmentPlanName, resourceGroupName, subscriptionIdCreate Cognitive Services commitment plan.

SELECT examples

Returns a Cognitive Services commitment plan specified by the parameters.

SELECT
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_plans
WHERE commitmentPlanName = '{{ commitmentPlanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a commitment_plans_plans resource.

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

DELETE example

Deletes the specified commitment_plans_plans resource.

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