# AzurePostgresResource Properties

- Package: [Aspire.Hosting.Azure.PostgreSQL](/reference/api/csharp/aspire.hosting.azure.postgresql.md)
- Type: [AzurePostgresResource](/reference/api/csharp/aspire.hosting.azure.postgresql/azurepostgresresource.md)
- Kind: `Properties`
- Members: `4`

Represents an resource for Azure Postgres Flexible Server.

## Annotations

- Name: `Annotations`
- Modifiers: `override` `get`
- Returns: `ResourceAnnotationCollection`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.PostgreSQL/AzurePostgresResource.cs#L34)

```csharp
public override ResourceAnnotationCollection Annotations { get; }
```

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `get`
- Returns: `BicepSecretOutputReference`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.PostgreSQL/AzurePostgresResource.cs#L22)

Gets the "connectionString" secret output reference from the bicep template for the Azure Postgres Flexible Server.

```csharp
public BicepSecretOutputReference ConnectionString { get; }
```

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.PostgreSQL/AzurePostgresResource.cs#L28)

Gets the connection template for the manifest for the Azure Postgres Flexible Server.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Name

- Name: `Name`
- Modifiers: `override` `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.PostgreSQL/AzurePostgresResource.cs#L31)

```csharp
public override string Name { get; }
```
