az ams account identity

Manage managed identity settings for an Azure Media Services account.

Commands

az ams account identity assign

Assign a managed identity to an Azure Media Services account.

az ams account identity remove

Remove a managed identity to an Azure Media Services account.

az ams account identity show

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

az ams account identity assign

Assign a managed identity to an Azure Media Services account.

az ams account identity assign [--ids]
                               [--name]
                               [--resource-group]
                               [--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>.

--system-assigned

Set the system managed identity on the media services account.

accepted values: false, true
--user-assigned

Set the user managed identities on the media services account.

az ams account identity remove

Remove a managed identity to an Azure Media Services account.

az ams account identity remove [--ids]
                               [--name]
                               [--resource-group]
                               [--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>.

--system-assigned

Set the system managed identity on the media services account.

accepted values: false, true
--user-assigned

Set the user managed identities on the media services account.

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]

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