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

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>.

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

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>.

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

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>.