# addAzurePostgresFlexibleServer

- Module: [Aspire.Hosting.Azure.PostgreSQL](/reference/api/typescript/aspire.hosting.azure.postgresql.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Adds an Azure PostgreSQL Flexible Server resource to the application model.

## Definition

```typescript
interface IDistributedApplicationBuilder {
  // ... omitted for brevity
  addAzurePostgresFlexibleServer(name: string): AzurePostgresFlexibleServerResource
}
```

## Parameters

- `name` (`string`)

## Returns

[AzurePostgresFlexibleServerResource](/reference/api/typescript/aspire.hosting.azure.postgresql/azurepostgresflexibleserverresource.md) `builder`

## Applies to

- [IDistributedApplicationBuilder](/reference/api/typescript/aspire.hosting.azure.postgresql/idistributedapplicationbuilder.md)
