Skip to content

Commit fa99c46

Browse files
committed
Update concepts-audit.md
1 parent 3e1f2f0 commit fa99c46

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

articles/postgresql/flexible-server/concepts-audit.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,25 @@ By default, pgAudit log statements are emitted along with your regular log state
2424
To learn how to set up logging to Azure Storage, Event Hubs, or Azure Monitor logs, visit the resource logs section of the [server logs article](concepts-logging.md).
2525

2626
## Installing pgAudit
27+
Before you can install pgAudit extension in Azure Database for PostgreSQL - Flexible Server, you will need to allow-list pgAudit extension for use.
2728

29+
Using the [Azure portal](https://portal.azure.com):
30+
31+
1. Select your Azure Database for PostgreSQL - Flexible Server.
32+
2. On the sidebar, select **Server Parameters**.
33+
3. Search for the `azure.extensions` parameter.
34+
4. Select pgAudit as extension you wish to allow-list.
35+
:::image type="content" source="./media/concepts-extensions/allow-list.png" alt-text=" Screenshot showing Azure Database for PostgreSQL - allow-listing extensions for installation ":::
36+
37+
Using [Azure CLI](/cli/azure/):
38+
39+
You can allow-list extensions via CLI parameter set [command](/cli/azure/postgres/flexible-server/parameter?view=azure-cli-latest&preserve-view=true).
40+
41+
```bash
42+
az postgres flexible-server parameter set --resource-group <your resource group> --server-name <your server name> --subscription <your subscription id> --name azure.extensions --value pgAudit
43+
```
44+
45+
2846
To install pgAudit, you need to include it in the server's shared preload libraries. A change to Postgres's `shared_preload_libraries` parameter requires a server restart to take effect. You can change parameters using the [Azure portal](howto-configure-server-parameters-using-portal.md), [Azure CLI](howto-configure-server-parameters-using-cli.md), or [REST API](/rest/api/postgresql/singleserver/configurations/createorupdate).
2947

3048
Using the [Azure portal](https://portal.azure.com):

0 commit comments

Comments
 (0)