# AzureNpgsqlSettings Properties

- Package: [Aspire.Azure.Npgsql](/reference/api/csharp/aspire.azure.npgsql.md)
- Type: [AzureNpgsqlSettings](/reference/api/csharp/aspire.azure.npgsql/azurenpgsqlsettings.md)
- Kind: `Properties`
- Members: `1`

Provides the client configuration settings for connecting to an Azure Database for PostgreSQL using Npgsql.

## Credential

- Name: `Credential`
- Modifiers: `nullable` `get; set`
- Returns: `TokenCredential?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Azure.Npgsql/AzureNpgsqlSettings.cs)

Gets or sets the credential used to authenticate to the Azure Database for PostgreSQL.

```csharp
public TokenCredential? Credential { get; set; }
```
