Skip to main content

operations

Creates, updates, deletes, gets or lists an operations resource.

Overview

Nameoperations
TypeResource
Idazure.cognitive_services.operations

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
namestringThe name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
actionTypestringEnum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
displayobjectLocalized display information for this particular operation.
isDataActionbooleanWhether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
originstringThe intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectLists all the available Cognitive Services account operations.
check_sku_availabilityexecsubscriptionId, location, skus, kind, typeCheck available SKUs.
check_domain_availabilityexecsubscriptionId, subdomainName, typeCheck whether a domain is available.

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
locationstringResource location.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Lists all the available Cognitive Services account operations.

SELECT
name,
actionType,
display,
isDataAction,
origin
FROM azure.cognitive_services.operations
;

Lifecycle Methods

Check available SKUs.

EXEC azure.cognitive_services.operations.check_sku_availability 
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
@@json=
'{
"skus": "{{ skus }}",
"kind": "{{ kind }}",
"type": "{{ type }}"
}'
;