Skip to content
Docs Try Aspire

AzureSearchSettings Properties

Class Properties 5 members
Provides the client configuration settings for connecting to Azure AI Search.
Credential Section titled Credential nullable TokenCredential?
Gets or sets the credential used to authenticate to the Azure AI Search resource.
public TokenCredential? Credential { get; set; }
DisableHealthChecks Section titled DisableHealthChecks bool
Gets or sets a boolean value that indicates whether the Azure AI Search health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }
Endpoint Section titled Endpoint nullable Uri?
Gets or sets a Uri referencing the Azure AI Search endpoint. This is likely to be similar to "https://{search_service}.search.windows.net".
public Uri? Endpoint { get; set; }
Must not contain shared access signature. Used along with AzureSearchSettings.Credential or AzureSearchSettings.Key to establish the connection.
Key Section titled Key nullable string?
Gets or sets the key to use to authenticate to the Azure AI Search endpoint.
public string? Key { get; set; }
When defined it will use an AzureKeyCredential instance instead of AzureSearchSettings.Credential.