# AzureOpenAISettings

- Kind: `class`
- Package: [Aspire.Azure.AI.OpenAI](/reference/api/csharp/aspire.azure.ai.openai.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Azure.AI.OpenAI`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.AI.OpenAI/AzureOpenAISettings.cs)
- Implements: `IConnectionStringSettings`

The settings relevant to accessing Azure OpenAI or OpenAI.

## Definition

```csharp
namespace Aspire.Azure.AI.OpenAI;

public sealed class AzureOpenAISettings
    : Aspire.Azure.Common.IConnectionStringSettings
{
    // ...
}
```

## Constructors

- [AzureOpenAISettings](/reference/api/csharp/aspire.azure.ai.openai/azureopenaisettings/constructors.md#constructor)

## Properties

- [Credential](/reference/api/csharp/aspire.azure.ai.openai/azureopenaisettings/properties.md#credential) : `TokenCredential?` `get; set` -- Gets or sets the credential used to authenticate to the Azure OpenAI resource.
- [DisableMetrics](/reference/api/csharp/aspire.azure.ai.openai/azureopenaisettings/properties.md#disablemetrics) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.
- [DisableTracing](/reference/api/csharp/aspire.azure.ai.openai/azureopenaisettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
- [EnableSensitiveTelemetryData](/reference/api/csharp/aspire.azure.ai.openai/azureopenaisettings/properties.md#enablesensitivetelemetrydata) : `bool` `get; set` -- Gets or sets a boolean value indicating whether potentially sensitive information should be included in telemetry.
- [Endpoint](/reference/api/csharp/aspire.azure.ai.openai/azureopenaisettings/properties.md#endpoint) : `Uri?` `get; set` -- Gets or sets a `Uri` referencing the Azure OpenAI endpoint. This is likely to be similar to "https://{account_name}.openai.azure.com".
- [Key](/reference/api/csharp/aspire.azure.ai.openai/azureopenaisettings/properties.md#key) : `string?` `get; set` -- Gets or sets the key to use to authenticate to the Azure OpenAI endpoint.
