az cognitiveservices account identity

Manage identity of Cognitive Services accounts.

Commands

az cognitiveservices account identity assign

Assign an identity of a Cognitive Services account.

az cognitiveservices account identity remove

Remove the identity from a Cognitive Services account.

az cognitiveservices account identity show

Show the identity of a Cognitive Services account.

az cognitiveservices account identity assign

Assign an identity of a Cognitive Services account.

Assign an identity object of a Cognitive Services account. An system assigned identity will be generate and assigned to the account.

az cognitiveservices account identity assign --name
                                             --resource-group
                                             [--subscription]

Examples

Assign an identity of Cognitive Services accounts.

az cognitiveservices account identity assign --name myresource --resource-group cognitive-services-resource-group

Required Parameters

--name -n

Cognitive service account name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az cognitiveservices account identity remove

Remove the identity from a Cognitive Services account.

Remove the identity (if exists) from a Cognitive Services account.

az cognitiveservices account identity remove --name
                                             --resource-group
                                             [--subscription]

Examples

Remove the identity from a Cognitive Services account.

az cognitiveservices account identity remove --name myresource --resource-group cognitive-services-resource-group

Required Parameters

--name -n

Cognitive service account name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az cognitiveservices account identity show

Show the identity of a Cognitive Services account.

Show the identity object of a Cognitive Services account, empty object might be returned if the account has no assigned identity.

az cognitiveservices account identity show --name
                                           --resource-group
                                           [--query-examples]
                                           [--subscription]

Examples

Show the identity of Cognitive Services accounts.

az cognitiveservices account identity show --name myresource --resource-group cognitive-services-resource-group

Required Parameters

--name -n

Cognitive service account name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.