Skip to content

Commit ea0e9e1

Browse files
committed
keyless auth
1 parent 2371f6b commit ea0e9e1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

articles/search/includes/quickstarts/full-text-csharp.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ For the recommended keyless authentication with Microsoft Entra ID, you need to:
5959
az login
6060
```
6161

62+
## Create, load, and query a search index
63+
64+
In the prior [set up](#set-up) section, you created a new console application and installed the Azure AI Search client library.
65+
66+
In this section, you add code to create a search index, load it with documents, and run queries. You run the program to see the results in the console. For a detailed explanation of the code, see the [explaining the code](#explaining-the-code) section.
67+
6268
The sample code in this quickstart uses Microsoft Entra ID for authentication. If you prefer to use an API key, you can replace the `DefaultAzureCredential` object with a `AzureKeyCredential` object.
6369

6470
#### [Microsoft Entra ID](#tab/keyless)
@@ -76,13 +82,6 @@ AzureKeyCredential credential = new AzureKeyCredential("<Your search service adm
7682
```
7783
---
7884

79-
80-
## Create, load, and query a search index
81-
82-
In the prior [set up](#set-up) section, you created a new console application and installed the Azure AI Search client library.
83-
84-
In this section, you add code to create a search index, load it with documents, and run queries. You run the program to see the results in the console. For a detailed explanation of the code, see the [explaining the code](#explaining-the-code) section.
85-
8685
1. In *Program.cs*, paste the following code. Edit the `serviceName` and `apiKey` variables with your search service name and admin API key.
8786

8887
```csharp

0 commit comments

Comments
 (0)