az monitor account identity

Manage Identity.

Commands

Name Description Type Status
az monitor account identity assign

Assign the user or system managed identities.

Core GA
az monitor account identity remove

Remove the user or system managed identities.

Core GA
az monitor account identity show

Show the details of managed identities.

Core GA

az monitor account identity assign

Assign the user or system managed identities.

az monitor account identity assign --azure-monitor-workspace-name --name
                                   --resource-group
                                   [--acquire-policy-token]
                                   [--change-reference]
                                   [--mi-system-assigned --system-assigned]
                                   [--mi-user-assigned --user-assigned]

Examples

Assign a system-assigned managed identity to an Azure Monitor workspace

az monitor account identity assign -n myWorkspace -g myRG --system-assigned

Assign a user-assigned managed identity to an Azure Monitor workspace

az monitor account identity assign -n myWorkspace -g myRG --user-assigned /subscriptions/sub/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity

Required Parameters

--azure-monitor-workspace-name --name -n

The name of the Azure Monitor workspace. The name is case insensitive.

--resource-group -g

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

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--mi-system-assigned --system-assigned

Set the system managed identity.

Property Value
Parameter group: Resource.identity Arguments
--mi-user-assigned --user-assigned

Set the user managed identities. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Property Value
Parameter group: Resource.identity Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az monitor account identity remove

Remove the user or system managed identities.

az monitor account identity remove --azure-monitor-workspace-name --name
                                   --resource-group
                                   [--acquire-policy-token]
                                   [--change-reference]
                                   [--mi-system-assigned --system-assigned]
                                   [--mi-user-assigned --user-assigned]

Required Parameters

--azure-monitor-workspace-name --name -n

The name of the Azure Monitor workspace. The name is case insensitive.

--resource-group -g

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

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--mi-system-assigned --system-assigned

Set the system managed identity.

Property Value
Parameter group: Resource.identity Arguments
--mi-user-assigned --user-assigned

Set the user managed identities. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Property Value
Parameter group: Resource.identity Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False

az monitor account identity show

Show the details of managed identities.

az monitor account identity show --azure-monitor-workspace-name --name
                                 --resource-group

Required Parameters

--azure-monitor-workspace-name --name -n

The name of the Azure Monitor workspace. The name is case insensitive.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False