# async_create_extensions

> **Function** in `langchain_azure_postgresql`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-postgresql/common/aio/_connection/async_create_extensions)

Create required extensions in the Azure Database for PostgreSQL connection.

:param conn: Async connection to the Azure Database for PostgreSQL.
:type conn: AsyncConnection
:param required_extensions: List of required extensions to create.
:type required_extensions: list[Extension]
:raises Exception: If the connection is not valid or if an error occurs during extension creation.

## Signature

```python
async_create_extensions(
    conn: AsyncConnection,
    /,
    required_extensions: list[Extension] = [],
)
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/e62c2a55aaa0942fdac739b4066011953b80018e/libs/azure-postgresql/src/langchain_azure_postgresql/common/aio/_connection.py#L85)