# Aspire.Hosting.Azure.PostgreSQL

- Module: `Aspire.Hosting.Azure.PostgreSQL`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `5`
- Types: `2`

## Types

- [AzurePostgresFlexibleServerDatabaseResource](/reference/api/typescript/aspire.hosting.azure.postgresql/azurepostgresflexibleserverdatabaseresource.md) -- `handle` - 1 members
- [AzurePostgresFlexibleServerResource](/reference/api/typescript/aspire.hosting.azure.postgresql/azurepostgresflexibleserverresource.md) -- `handle` - 3 members

## Functions

- [addAzurePostgresFlexibleServer](/reference/api/typescript/aspire.hosting.azure.postgresql/addazurepostgresflexibleserver.md) -- `method` -- Adds an Azure PostgreSQL Flexible Server resource to the application model.
- [addDatabase](/reference/api/typescript/aspire.hosting.azure.postgresql/adddatabase.md) -- `method` -- Adds an Azure PostgreSQL database to the application model.
- [runAsContainer](/reference/api/typescript/aspire.hosting.azure.postgresql/runascontainer.md) -- `method` -- Configures an Azure PostgreSQL Flexible Server resource to run locally in a container.
- [withPasswordAuthentication](/reference/api/typescript/aspire.hosting.azure.postgresql/withpasswordauthentication.md) -- `method` -- Configures password authentication for Azure PostgreSQL Flexible Server
- [withPostgresMcp](/reference/api/typescript/aspire.hosting.azure.postgresql/withpostgresmcp.md) -- `method` -- Adds a Postgres MCP server container and configures it to connect to the database represented by `builder`.
