Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microsoft/azure-search-documents-dotnet
Azure AI Search SDK for .NET (Azure.Search.Documents).
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
2 fixed18 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
We are deploying a C# .NET application using Azure AI Search to production on Azure App Service. Security policies forbid using static API keys. Show how to instantiate the Azure.Search.Documents search client using Microsoft Entra token credentials, ensuring local development and production compatibility.
| Checked | Without skill | With skill |
|---|---|---|
| The solution uses DefaultAzureCredential for authentication. | Passed | Passed |
| The credential configuration references DefaultEnvironmentVariableName or AZURE_TOKEN_CREDENTIALS. | Missed | Passed |
The instructions your model reads when the skill loads.
Build search applications with full-text, vector, semantic, and hybrid search capabilities.
dotnet add package Azure.Search.Documents
dotnet add package Azure.Identity
Current Versions: Stable v11.7.0, Preview v11.8.0-beta.1
SEARCH_ENDPOINT=https://<search-service>.search.windows.net # Required: search service endpoint
SEARCH_INDEX_NAME=<index-name> # Required: search index name
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
SEARCH_API_KEY=<api-key> # Only required for AzureKeyCredential auth
Microsoft Entra Token Credential:
using Azure.Identity;
using Azure.Search.Documents;
// Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential>
var credential = new DefaultAzureCredential(
DefaultAzureCredential.DefaultEnvironmentVariableName
);
// Or use a specific credential directly in production:
// See https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#credential-classes
// var credential = new ManagedIdentityCredential();
var client = new SearchClient(
new Uri(Environment.GetEnvironmentVariable("SEARCH_ENDPOINT")),
Environment.GetEnvironmentVariable("SEARCH_INDEX_NAME"),
credential);
test cases passed, vs 18 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.