Skip to content

Commit ea28e6b

Browse files
committed
clean up
1 parent 4b2b9a0 commit ea28e6b

File tree

2 files changed

+7
-65
lines changed

2 files changed

+7
-65
lines changed

docs/azure/sdk/authentication/user-assigned-managed-identity.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ A user-assigned can be associated with one or more Azure resources. All of the r
6666
1. From the resource's **Overview** page, expand **Settings** and select **Identity** from the navigation.
6767
1. On the **Identity** page, switch to the **User assigned** tab.
6868
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.
7070
1. Select the identity and choose **Add** at the bottom of the panel to continue.
7171

7272
:::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
7575

7676
The Azure CLI provides different commands to assign a user-assigned identity to different types of hosting services.
7777

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:
7979

8080
```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
8285
```
8386

8487
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
144147

145148
### [Azure CLI](#tab/azure-cli)
146149

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:
148151

149152
```azurecli
150153
az identity show \

docs/azure/sdk/includes/assign-roles-identity.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)