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: articles/search/search-get-started-rbac.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.author: heidist
7
7
ms.service: azure-ai-search
8
8
9
9
ms.topic: quickstart
10
-
ms.date: 11/26/2024
10
+
ms.date: 11/28/2024
11
11
---
12
12
13
13
# Quickstart: Connect without keys
@@ -24,13 +24,13 @@ If you stepped through other quickstarts that connect using API keys, this quick
24
24
25
25
- A command line tool, such as the [Azure CLI](/cli/azure/install-azure-cli).
26
26
27
-
## Step 1: Set up your Azure subscription and tenant
27
+
## Step 1: Get your Azure subscription and tenant IDs
28
28
29
29
This step is necessary if you have more than one subscription or tenant.
30
30
31
31
1. Get the Azure subscription and tenant for your search service:
32
32
33
-
1. Sign into the Azure portal and navigate to your search service.
33
+
1. Sign into the [Azure portal](https://portal.azure.com) and navigate to your search service.
34
34
35
35
1. Notice the subscription name and ID in **Overview** > **Essentials**.
36
36
@@ -42,7 +42,7 @@ This step is necessary if you have more than one subscription or tenant.
42
42
43
43
`az account show`
44
44
45
-
1. Set your Azure subscription to the subscription and tenant:
45
+
1. Set your Azure subscription to the subscription and tenant, and sign in to Azure.
46
46
47
47
`az account set --subscription <your-subscription-id>`
48
48
@@ -54,13 +54,15 @@ This step is necessary if you have more than one subscription or tenant.
54
54
55
55
## Step 2: Configure Azure AI Search for Microsoft Entra ID authentication
56
56
57
-
1. Sign in to the Azure portal and navigate to your Azure AI Search service.
57
+
1. Sign in to the [Azure portal](https://portal.azure.com) and navigate to your Azure AI Search service.
58
58
59
59
1. Enable role-based access control (RBAC):
60
60
61
61
1. Go to **Settings** > **Keys**.
62
62
63
-
1. Choose **Role-based control** or **Both** if you need time to transition clients to role-based access control1.
63
+
1. Choose **Role-based control** or **Both** if you need time to transition clients to role-based access control.
64
+
65
+
If you choose **Role-based control**, make sure that you assign yourself all roles named in the next instruction or you won't be able to complete tasks in the portal or through a local client.
64
66
65
67
1. Assign roles in the Azure portal:
66
68
@@ -72,8 +74,13 @@ This step is necessary if you have more than one subscription or tenant.
72
74
73
75
1. Choose a role (Search Service Contributor, Search Index Data Contributor, Search Index Data Reader) and assign it to your Microsoft Entra user or group identity. These three roles provide the full set of permissions for creating, loading, and querying objects on Azure AI Search. For more information, see [Connect using roles](search-security-rbac.md).
74
76
77
+
> [!TIP]
78
+
> Later, if you get authentication failure errors, recheck the settings in this section. There could be policies set at the subcription or resource group level that enforce specific security settings.
79
+
75
80
## Step 3: Connect from your local system
76
81
82
+
If you didn't sign in to Azure with an `az login` command, do so now.
83
+
77
84
### Using Python and Jupyter notebooks
78
85
79
86
1. Install the Azure Identity and Azure Search libraries:
@@ -105,7 +112,7 @@ Several quickstarts and tutorials use a REST client, such as Visual Studio Code
0 commit comments