Skip to content

Commit 857ccfc

Browse files
committed
RBAC test
1 parent 91bcd79 commit 857ccfc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

articles/search/search-get-started-rest.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ You're pasting this endpoint into the `.rest` or `.http` file in a later step.
4949

5050
Requests to the search endpoint must be authenticated and authorized. You can use API keys or roles for this task. Keys are easier to start with, but roles are more secure.
5151

52+
For a role-based connection, the following instructions have you connecting to Azure AI Search under your identity, not the identity of a client app.
53+
5254
### Option 1: Use keys
5355

5456
Select **Settings** > **Keys** and then copy an admin key. Admin keys are used to add, modify, and delete objects. There are two interchangeable admin keys. Copy either one. For more information, see [Connect to Azure AI Search using key authentication](search-security-api-keys.md).
@@ -71,11 +73,10 @@ In this section, obtain your personal identity token using either the Azure CLI,
7173
az login
7274
```
7375
74-
1. Get your personal identity.
76+
1. Get your personal identity token.
7577
7678
```azurecli
77-
az ad signed-in-user show \
78-
--query id -o tsv
79+
az account get-access-token --scope https://search.azure.com/.default
7980
```
8081
8182
#### [Azure PowerShell](#tab/azure-powershell)
@@ -86,10 +87,10 @@ In this section, obtain your personal identity token using either the Azure CLI,
8687
Connect-AzAccount
8788
```
8889
89-
1. Get your personal identity.
90+
1. Get your personal identity token.
9091
9192
```azurepowershell
92-
(Get-AzContext).Account.ExtendedProperties.HomeAccountId.Split('.')[0]
93+
Get-AzAccessToken -ResourceUrl https://search.azure.com
9394
```
9495
9596
#### [Azure portal](#tab/portal)

0 commit comments

Comments
 (0)