az appconfig identity

Managed identities for App Configurations.

Commands

az appconfig identity assign

Update managed identities for an App Configuration.

az appconfig identity remove

Remove managed identities for an App Configuration.

az appconfig identity show

Display managed identities for an App Configuration.

az appconfig identity assign

Update managed identities for an App Configuration.

az appconfig identity assign --name
                             [--identities]
                             [--resource-group]
                             [--subscription]

Examples

Enable the system-assigned identity for an existing App Configuration

az appconfig identity assign -g MyResourceGroup -n MyAppConfiguration

Assign a user-assigned managed identity for an existing App Configuration

az appconfig identity assign -g MyResourceGroup -n MyAppConfiguration --identities "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCEGROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentity"

Assign both system-assigned and user assigned identities for an existing App Configuration

az appconfig identity assign -g MyResourceGroup -n MyAppConfiguration --identities [system] "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCEGROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentity"

Required Parameters

--name -n

Name of the App Configuration. You can configure the default name using az configure --defaults app_configuration_store=<name>.

Optional Parameters

--identities

Accept system or user assigned identities separated by spaces. Use '[system]' to refer system assigned identity or a resource id to refer user assigned identity. Use system assigned identity if not specified.

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

az appconfig identity remove

Remove managed identities for an App Configuration.

az appconfig identity remove --name
                             [--identities]
                             [--resource-group]
                             [--subscription]

Examples

Remove the system-assigned identity from a App Configuration.

az appconfig identity remove -g MyResourceGroup -n MyAppConfiguration

Remove a user assigned identity from a App Configuration.

az appconfig identity remove -g MyResourceGroup -n MyAppConfiguration --identities "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCEGROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentity"

Remove all identities from an App Configuration.

az appconfig identity remove -g MyResourceGroup -n MyAppConfiguration --identities [all]

Required Parameters

--name -n

Name of the App Configuration. You can configure the default name using az configure --defaults app_configuration_store=<name>.

Optional Parameters

--identities

Accept system or user assigned identities separated by spaces. Use '[system]' to refer system assigned identity, '[all]' for all identities or a resource id to refer user assigned identity. Remove system assigned identity if not specified.

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

az appconfig identity show

Display managed identities for an App Configuration.

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

Examples

Display managed identities for a task.

az appconfig identity show -g MyResourceGroup -n MyAppConfiguration

Required Parameters

--name -n

Name of the App Configuration. You can configure the default name using az configure --defaults app_configuration_store=<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.

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