# addPostgreSqlDatabase

- Module: [Aspire.Hosting.Azure.Provisioning.PostgreSql](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql.md)
- Version: `13.6.0-preview.1.26478.8`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)

Adds a PostgreSqlDatabase provisioning model.

## Definition

```typescript
interface AzureResourceInfrastructure {
  // ... omitted for brevity
  addPostgreSqlDatabase(
    bicepIdentifier: string,
    resourceVersion?: string): PostgreSqlDatabaseProxy
}
```

## Parameters

- `bicepIdentifier` (`string`)
- `resourceVersion` (`string`) `optional`

## Returns

[PostgreSqlDatabaseProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/postgresqldatabaseproxy.md)

## Applies to

- [AzureResourceInfrastructure](/reference/api/typescript/aspire.hosting.azure.provisioning.postgresql/azureresourceinfrastructure.md)
