az spring-cloud app identity

Manage an app's managed service identity.

Commands

az spring-cloud app identity assign

Enable managed service identity on an app.

az spring-cloud app identity remove

Remove managed service identity from an app.

az spring-cloud app identity show

Display app's managed identity info.

az spring-cloud app identity assign

Enable managed service identity on an app.

az spring-cloud app identity assign --name
                                    --resource-group
                                    --service
                                    [--role]
                                    [--scope]

Examples

Enable the system assigned identity.

az spring-cloud app identity assign -n MyApp -s MyCluster -g MyResourceGroup

Enable the system assigned identity on an app with the 'Reader' role.

az spring-cloud app identity assign -n MyApp -s MyCluster -g MyResourceGroup --role Reader --scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxxxx/providers/Microsoft.KeyVault/vaults/xxxxx

Required Parameters

--name -n

Name of app.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

Optional Parameters

--role

Role name or id the managed identity will be assigned.

--scope

The scope the managed identity has access to.

az spring-cloud app identity remove

Remove managed service identity from an app.

az spring-cloud app identity remove --name
                                    --resource-group
                                    --service

Examples

Remove the system assigned identity from an app.

az spring-cloud app identity remove -n MyApp -s MyCluster -g MyResourceGroup

Required Parameters

--name -n

Name of app.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

az spring-cloud app identity show

Display app's managed identity info.

az spring-cloud app identity show --name
                                  --resource-group
                                  --service

Examples

Display an app's managed identity info.

az spring-cloud app identity show -n MyApp -s MyCluster -g MyResourceGroup

Required Parameters

--name -n

Name of app.

--resource-group -g

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

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.