# create_extensions

> **Function** in `langchain_azure_postgresql`

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

Create required extensions in the Azure Database for PostgreSQL connection.

:param conn: Connection to the Azure Database for PostgreSQL.
:type conn: Connection
: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
create_extensions(
    conn: Connection,
    /,
    required_extensions: list[Extension] = [],
)
```

---

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