Skip to content

Commit 02d0211

Browse files
committed
Updated RBAC quickstart
1 parent ef1aecb commit 02d0211

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

articles/search/includes/quickstarts/search-get-started-rbac-python.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: include
77
ms.date: 07/09/2025
88
---
99

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.
1111

1212
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).
1313

@@ -27,24 +27,22 @@ Keyless connections provide enhanced security through granular permissions and i
2727

2828
## Sign in to Azure
2929

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.
3131

3232
To sign in:
3333

3434
1. On your local system, open a command-line tool.
3535

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).
3737

3838
```azurecli
3939
az login
4040
```
4141

42-
1. (Conditional) If you have multiple subscriptions, select the one whose ID you obtained in [Get service information](#get-service-information).
43-
4442
## Connect to Azure AI Search
4543

4644
> [!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).
4846
4947
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.
5048

@@ -82,7 +80,7 @@ To connect using Python:
8280

8381
1. Select **Run All** to run both code cells.
8482

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.
8684

8785
### Troubleshoot 401 errors
8886

articles/search/includes/quickstarts/search-get-started-rbac-rest.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: include
77
ms.date: 07/09/2025
88
---
99

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.
1111

1212
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).
1313

@@ -27,20 +27,18 @@ Keyless connections provide enhanced security through granular permissions and i
2727

2828
## Get token
2929

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.
3131

3232
To get your token:
3333

3434
1. On your local system, open a command-line tool.
3535

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).
3737

3838
```azurecli
3939
az login
4040
```
4141

42-
1. (Conditional) If you have multiple subscriptions, select the one whose ID you obtained in [Get service information](#get-service-information).
43-
4442
1. Generate an access token.
4543

4644
```azurecli
@@ -52,7 +50,7 @@ To get your token:
5250
## Connect to Azure AI Search
5351

5452
> [!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).
5654
5755
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.
5856

@@ -69,7 +67,7 @@ To connect using REST:
6967
@token = PUT-YOUR-PERSONAL-IDENTITY-TOKEN-HERE
7068
7169
### 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
7371
Content-Type: application/json
7472
Authorization: Bearer {{token}}
7573
```

articles/search/includes/quickstarts/search-get-started-rbac-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To configure access:
3333

3434
## Get service information
3535

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.
3737

3838
To get your service information:
3939

-21.5 KB
Loading

0 commit comments

Comments
 (0)