az ams account identity

Manage managed identity settings for an Azure Media Services account.

Commands

Name Description Type Status
az ams account identity assign

Assign a managed identity to an Azure Media Services account.

Core GA
az ams account identity remove

Remove a managed identity to an Azure Media Services account.

Core GA
az ams account identity show

Show the details of managed identity settings for an Azure Media Services account.

Core GA

az ams account identity assign

Assign a managed identity to an Azure Media Services account.

az ams account identity assign [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]
                               [--system-assigned {false, true}]
                               [--user-assigned]

Examples

Assign a system managed identity to an Azure Media Services account.

az ams account identity assign -n myAmsAccount -g myRG --system-assigned

Assign a user managed identity to an Azure Media Services account.

az ams account identity assign -n myAmsAccount -g myRG --user-assigned myUserId

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the resource.

--resource-group -g

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

--subscription

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

--system-assigned

Set the system managed identity on the media services account.

Accepted values: false, true
Default value: False
--user-assigned

Set the user managed identities on the media services account.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az ams account identity remove

Remove a managed identity to an Azure Media Services account.

az ams account identity remove [--ids]
                               [--name]
                               [--resource-group]
                               [--subscription]
                               [--system-assigned {false, true}]
                               [--user-assigned]

Examples

Remove a system managed identity to an Azure Media Services account.

az ams account identity remove -n myAmsAccount -g myRG --system-assigned

Remove a user managed identity to an Azure Media Services account.

az ams account identity remove -n myAmsAccount -g myRG --user-assigned myUserId

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the resource.

--resource-group -g

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

--subscription

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

--system-assigned

Set the system managed identity on the media services account.

Accepted values: false, true
Default value: False
--user-assigned

Set the user managed identities on the media services account.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az ams account identity show

Show the details of managed identity settings for an Azure Media Services account.

az ams account identity show [--ids]
                             [--name]
                             [--resource-group]
                             [--subscription]

Examples

Show the media account's managed identity details

az ams account identity show -n myAmsAccount -g myRG

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the resource.

--resource-group -g

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

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.