Skip to main content

commitment_plans_associations

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

Overview

Namecommitment_plans_associations
TypeResource
Idazure.cognitive_services.commitment_plans_associations

Fields

NameDatatypeDescription
account_idtextfield from the properties object
commitmentPlanAssociationNametextfield from the properties object
commitmentPlanNametextfield from the properties object
etagtextResource Etag.
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcommitmentPlanAssociationName, commitmentPlanName, resourceGroupName, subscriptionIdGets the association of the Cognitive Services commitment plan.
listSELECTcommitmentPlanName, resourceGroupName, subscriptionIdGets the associations of the Cognitive Services commitment plan.
create_or_updateINSERTcommitmentPlanAssociationName, commitmentPlanName, resourceGroupName, subscriptionIdCreate or update the association of the Cognitive Services commitment plan.
deleteDELETEcommitmentPlanAssociationName, commitmentPlanName, resourceGroupName, subscriptionIdDeletes the association of the Cognitive Services commitment plan.

SELECT examples

Gets the associations of the Cognitive Services commitment plan.

SELECT
account_id,
commitmentPlanAssociationName,
commitmentPlanName,
etag,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.cognitive_services.vw_commitment_plans_associations
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_associations resource.

/*+ create */
INSERT INTO azure.cognitive_services.commitment_plans_associations (
commitmentPlanAssociationName,
commitmentPlanName,
resourceGroupName,
subscriptionId,
tags,
properties
)
SELECT
'{{ commitmentPlanAssociationName }}',
'{{ commitmentPlanName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ properties }}'
;

DELETE example

Deletes the specified commitment_plans_associations resource.

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