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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
autoRenewbooleanAutoRenew commitment plan.
commitmentPlanGuidstringCommitment plan guid.
currentobjectCognitive Services account commitment period.
etagstringResource Etag.
hostingModelstringAccount hosting model. Known values are: "Web", "ConnectedContainer", "DisconnectedContainer", and "ProvisionedWeb". (Web, ConnectedContainer, DisconnectedContainer, ProvisionedWeb)
kindstringThe kind (type) of cognitive service account.
lastobjectCognitive Services account commitment period.
locationstringThe geo-location where the resource lives.
nextobjectCognitive Services account commitment period.
planTypestringCommitment plan type.
provisioningIssuesarrayThe list of ProvisioningIssue.
provisioningStatestringGets the status of the resource at the time the operation was called. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", "Succeeded", and "Canceled". (Accepted, Creating, Deleting, Moving, Failed, Succeeded, Canceled)
skuobjectThe resource model definition representing SKU.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, commitment_plan_name, subscription_idGets the specified commitmentPlans associated with the Cognitive Services account.
get_associationselectresource_group_name, commitment_plan_name, commitment_plan_association_name, subscription_idGets the association of the Cognitive Services commitment plan.
listselectresource_group_name, account_name, subscription_idGets the commitmentPlans associated with the Cognitive Services account.
list_associationsselectresource_group_name, commitment_plan_name, subscription_idGets the associations of the Cognitive Services commitment plan.
list_plans_by_resource_groupselectresource_group_name, subscription_idReturns all the resources of a particular type belonging to a resource group.
list_plans_by_subscriptionselectsubscription_idReturns all the resources of a particular type belonging to a subscription.
create_or_updateinsertresource_group_name, account_name, commitment_plan_name, subscription_idUpdate the state of specified commitmentPlans associated with the Cognitive Services account.
create_or_updatereplaceresource_group_name, account_name, commitment_plan_name, subscription_idUpdate the state of specified commitmentPlans associated with the Cognitive Services account.
deletedeleteresource_group_name, account_name, commitment_plan_name, subscription_idDeletes the specified commitmentPlan associated with the Cognitive Services account.
get_planexecresource_group_name, commitment_plan_name, subscription_idReturns a Cognitive Services commitment plan specified by the parameters.
create_or_update_planexecresource_group_name, commitment_plan_name, subscription_idCreate Cognitive Services commitment plan.
update_planexecresource_group_name, commitment_plan_name, subscription_idCreate Cognitive Services commitment plan.
delete_planexecresource_group_name, commitment_plan_name, subscription_idDeletes a Cognitive Services commitment plan from the resource group.
create_or_update_associationexecresource_group_name, commitment_plan_name, commitment_plan_association_name, subscription_idCreate or update the association of the Cognitive Services commitment plan.
delete_associationexecresource_group_name, commitment_plan_name, commitment_plan_association_name, subscription_idDeletes 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
account_namestringThe name of Cognitive Services account. Required.
commitment_plan_association_namestringThe name of the commitment plan association with the Cognitive Services Account. Required.
commitment_plan_namestringThe name of the commitmentPlan associated with the Cognitive Services Account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the specified commitmentPlans associated with the Cognitive Services account.

SELECT
id,
name,
autoRenew,
commitmentPlanGuid,
current,
etag,
hostingModel,
kind,
last,
location,
next,
planType,
provisioningIssues,
provisioningState,
sku,
systemData,
tags,
type
FROM azure.cognitive_services.commitment_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND commitment_plan_name = '{{ commitment_plan_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Update the state of specified commitmentPlans associated with the Cognitive Services account.

INSERT INTO azure.cognitive_services.commitment_plans (
properties,
tags,
location,
kind,
sku,
resource_group_name,
account_name,
commitment_plan_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ kind }}',
'{{ sku }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ commitment_plan_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
kind,
location,
properties,
sku,
systemData,
tags,
type
;

REPLACE examples

Update the state of specified commitmentPlans associated with the Cognitive Services account.

REPLACE azure.cognitive_services.commitment_plans
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
location = '{{ location }}',
kind = '{{ kind }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND commitment_plan_name = '{{ commitment_plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the specified commitmentPlan associated with the Cognitive Services account.

DELETE FROM azure.cognitive_services.commitment_plans
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND commitment_plan_name = '{{ commitment_plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Returns a Cognitive Services commitment plan specified by the parameters.

EXEC azure.cognitive_services.commitment_plans.get_plan 
@resource_group_name='{{ resource_group_name }}' --required,
@commitment_plan_name='{{ commitment_plan_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;