You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/azure/sdk/authentication/user-assigned-managed-identity.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ A user-assigned can be associated with one or more Azure resources. All of the r
66
66
1. From the resource's **Overview** page, expand **Settings** and select **Identity** from the navigation.
67
67
1. On the **Identity** page, switch to the **User assigned** tab.
68
68
1. Select **+ Add** to open the **Add user assigned managed identity** panel.
69
-
1. On the **Add user assigned managed identity** panel, use the **Subscription** dropdown to filter the search results for your identities. Use the **Select** search box to locate the user-assigned managed identity you enabled for the Azure resource hosting your app.
69
+
1. On the **Add user assigned managed identity** panel, use the **Subscription** dropdown to filter the search results for your identities. Use the **User assigned managed identities** search box to locate the user-assigned managed identity you enabled for the Azure resource hosting your app.
70
70
1. Select the identity and choose **Add** at the bottom of the panel to continue.
71
71
72
72
:::image type="content" source="../media/add-user-assigned-identity-to-app.png" alt-text="A screenshot showing how to associate a user-assigned identity with an app.":::
@@ -75,10 +75,13 @@ A user-assigned can be associated with one or more Azure resources. All of the r
75
75
76
76
The Azure CLI provides different commands to assign a user-assigned identity to different types of hosting services.
77
77
78
-
To assign a user-assigned identity to an Azure App Service web app using the Azure CLI, you'll need the resource ID of the identity. Use the [`az identity show`](/cli/azure/identity?view=azure-cli-latest#az-identity-show) command to retrieve the resource ID:
78
+
To assign a user-assigned identity to a resource such as an Azure App Service web app using the Azure CLI, you'll need the resource ID of the identity. Use the [`az identity show`](/cli/azure/identity?view=azure-cli-latest#az-identity-show) command to retrieve the resource ID:
79
79
80
80
```azurecli
81
-
az identity show -n cli-identity -g aitesting -o json --query id
81
+
az identity show \
82
+
--resource-group <your-resource-group> \
83
+
--name <your-managed-identity-name> \
84
+
-o json --query id
82
85
```
83
86
84
87
Once you have the resource ID, use the Azure CLI command `az <resourceType> identity assign` command to associate the user-assigned identity with different resources, such as the following:
@@ -144,7 +147,7 @@ The following example shows how to assign roles at the resource group scope, sin
144
147
145
148
### [Azure CLI](#tab/azure-cli)
146
149
147
-
To assign a user-assigned identity to an Azure App Service web app using the Azure CLI, you'll need the principal ID of the identity. Use the `az identity show` command to retrieve the resource ID:
150
+
To assign a role to a user-assigned identity using the Azure CLI, you'll need the principal ID of the identity. Use the `az identity show` command to retrieve the resource ID:
0 commit comments