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/includes/quickstarts/search-get-started-rbac-python.md
+5-7Lines changed: 5 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.topic: include
7
7
ms.date: 07/09/2025
8
8
---
9
9
10
-
In this quickstart, you use role-based access control (RBAC) and Microsoft Entra ID to establish a keyless connection to your Azure AI Search service. You then use Python in Visual Studio Code to interact with the service.
10
+
In this quickstart, you use role-based access control (RBAC) and Microsoft Entra ID to establish a keyless connection to your Azure AI Search service. You then use Python in Visual Studio Code to interact with your service.
11
11
12
12
Keyless connections provide enhanced security through granular permissions and identity-based authentication. We don't recommend hard-coded API keys, but if you prefer them, see [Connect to Azure AI Search using keys](../../search-security-api-keys.md).
13
13
@@ -27,24 +27,22 @@ Keyless connections provide enhanced security through granular permissions and i
27
27
28
28
## Sign in to Azure
29
29
30
-
Before you connect to your Azure AI Search service, use the Azure CLI to sign in to the subscription that contains the service. This step establishes your Microsoft Entra identity, which `DefaultAzureCredential` uses to authenticate requests in the next section.
30
+
Before you connect to your Azure AI Search service, use the Azure CLI to sign in to the subscription that contains your service. This step establishes your Microsoft Entra identity, which `DefaultAzureCredential` uses to authenticate requests in the next section.
31
31
32
32
To sign in:
33
33
34
34
1. On your local system, open a command-line tool.
35
35
36
-
1. Sign in to Azure.
36
+
1. Sign in to Azure. If you have multiple subscriptions, select the one whose ID you obtained in [Get service information](#get-service-information).
37
37
38
38
```azurecli
39
39
az login
40
40
```
41
41
42
-
1. (Conditional) If you have multiple subscriptions, select the one whose ID you obtained in [Get service information](#get-service-information).
43
-
44
42
## Connect to Azure AI Search
45
43
46
44
> [!NOTE]
47
-
> This section illustrates the basic Python pattern for keyless connections. For comprehensive guidance, see a specific quickstart or tutorial, such as [Quickstart: Run agentic retrieval in Azure AI Search](../../search-quickstart-agentic-retrieval.md).
45
+
> This section illustrates the basic Python pattern for keyless connections. For comprehensive guidance, see a specific quickstart or tutorial, such as [Quickstart: Run agentic retrieval in Azure AI Search](../../search-get-started-agentic-retrieval.md).
48
46
49
47
You can use Python notebooks in Visual Studio Code to send requests to your Azure AI Search service. For request authentication, use the `DefaultAzureCredential` class from the Azure Identity library.
50
48
@@ -82,7 +80,7 @@ To connect using Python:
82
80
83
81
1. Select **Run All** to run both code cells.
84
82
85
-
The output should list existing indexes on your search service, indicating a successful connection.
83
+
The output should list the existing indexes (if any) on your search service, indicating a successful connection.
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/search-get-started-rbac-rest.md
+5-7Lines changed: 5 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.topic: include
7
7
ms.date: 07/09/2025
8
8
---
9
9
10
-
In this quickstart, you use role-based access control (RBAC) and Microsoft Entra ID to establish a keyless connection to your Azure AI Search service. You then use REST in Visual Studio Code to interact with the service.
10
+
In this quickstart, you use role-based access control (RBAC) and Microsoft Entra ID to establish a keyless connection to your Azure AI Search service. You then use REST in Visual Studio Code to interact with your service.
11
11
12
12
Keyless connections provide enhanced security through granular permissions and identity-based authentication. We don't recommend hard-coded API keys, but if you prefer them, see [Connect to Azure AI Search using keys](../../search-security-api-keys.md).
13
13
@@ -27,20 +27,18 @@ Keyless connections provide enhanced security through granular permissions and i
27
27
28
28
## Get token
29
29
30
-
Before you connect to your Azure AI Search service, use the Azure CLI to sign in to the subscription that contains the service and generate a Microsoft Entra ID token. You use this token to authenticate requests in the next section.
30
+
Before you connect to your Azure AI Search service, use the Azure CLI to sign in to the subscription that contains your service and generate a Microsoft Entra ID token. You use this token to authenticate requests in the next section.
31
31
32
32
To get your token:
33
33
34
34
1. On your local system, open a command-line tool.
35
35
36
-
1. Sign in to Azure.
36
+
1. Sign in to Azure. If you have multiple subscriptions, select the one whose ID you obtained in [Get service information](#get-service-information).
37
37
38
38
```azurecli
39
39
az login
40
40
```
41
41
42
-
1. (Conditional) If you have multiple subscriptions, select the one whose ID you obtained in [Get service information](#get-service-information).
43
-
44
42
1. Generate an access token.
45
43
46
44
```azurecli
@@ -52,7 +50,7 @@ To get your token:
52
50
## Connect to Azure AI Search
53
51
54
52
> [!NOTE]
55
-
> This section illustrates the basic REST pattern for keyless connections. For comprehensive guidance, see a specific quickstart or tutorial, such as [Quickstart: Run agentic retrieval in Azure AI Search](../../search-quickstart-agentic-retrieval.md).
53
+
> This section illustrates the basic REST pattern for keyless connections. For comprehensive guidance, see a specific quickstart or tutorial, such as [Quickstart: Run agentic retrieval in Azure AI Search](../../search-get-started-agentic-retrieval.md).
56
54
57
55
You can use the REST Client extension in Visual Studio Code to send requests to your Azure AI Search service. For request authentication, include an `Authorization` header with the Microsoft Entra ID token you previously generated.
58
56
@@ -69,7 +67,7 @@ To connect using REST:
69
67
@token = PUT-YOUR-PERSONAL-IDENTITY-TOKEN-HERE
70
68
71
69
### List existing indexes
72
-
GET {{baseUrl}}/indexes?api-version=2024-07-01 HTTP/1.1
70
+
GET {{baseUrl}}/indexes?api-version=2024-07-01 HTTP/1.1
Copy file name to clipboardExpand all lines: articles/search/includes/quickstarts/search-get-started-rbac-setup.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ To configure access:
33
33
34
34
## Get service information
35
35
36
-
In this section, you retrieve the subscription ID and endpoint of your Azure AI Search service. If you have one subscription, skip the subscription ID and only retrieve the endpoint. You use these values in the remaining sections of this quickstart.
36
+
In this section, you retrieve the subscription ID and endpoint of your Azure AI Search service. If you only have one subscription, skip the subscription ID and only retrieve the endpoint. You use these values in the remaining sections of this quickstart.
0 commit comments