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

The following fields are returned by SELECT queries:

OK -- Get the Commitment Plan Association successfully.

NameDatatypeDescription
etagstringResource Etag.
propertiesobjectProperties of Cognitive Services account commitment plan association.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, subscriptionId, commitmentPlanName, commitmentPlanAssociationNameGets the association of the Cognitive Services commitment plan.
listselectresourceGroupName, subscriptionId, commitmentPlanNameGets the associations of the Cognitive Services commitment plan.
create_or_updateinsertresourceGroupName, subscriptionId, commitmentPlanName, commitmentPlanAssociationNameCreate or update the association of the Cognitive Services commitment plan.
deletedeleteresourceGroupName, subscriptionId, commitmentPlanName, commitmentPlanAssociationNameDeletes the association of the Cognitive Services commitment plan.

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
commitmentPlanAssociationNamestringThe name of the commitment plan association with the Cognitive Services Account
commitmentPlanNamestringThe name of the commitmentPlan associated with the Cognitive Services Account
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the association of the Cognitive Services commitment plan.

SELECT
etag,
properties,
systemData,
tags
FROM azure.cognitive_services.commitment_plans_associations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND commitmentPlanName = '{{ commitmentPlanName }}' -- required
AND commitmentPlanAssociationName = '{{ commitmentPlanAssociationName }}' -- required
;

INSERT examples

Create or update the association of the Cognitive Services commitment plan.

INSERT INTO azure.cognitive_services.commitment_plans_associations (
data__tags,
data__properties,
resourceGroupName,
subscriptionId,
commitmentPlanName,
commitmentPlanAssociationName
)
SELECT
'{{ tags }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ commitmentPlanName }}',
'{{ commitmentPlanAssociationName }}'
RETURNING
etag,
properties,
systemData,
tags
;

DELETE examples

Deletes the association of the Cognitive Services commitment plan.

DELETE FROM azure.cognitive_services.commitment_plans_associations
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND commitmentPlanName = '{{ commitmentPlanName }}' --required
AND commitmentPlanAssociationName = '{{ commitmentPlanAssociationName }}' --required
;