az sql server update-auditing
command to enable auditing for the Azure SQL Server.--state Enabled
and --storage-account-resource-id
to configure auditing settings.az sql server update-auditing --resource-group <resource-group-name> --server <server-name> --state Enabled --storage-account-resource-id <storage-account-resource-id>
az postgres server update
command to enable diagnostic settings for the Azure Database for PostgreSQL.--name
, --resource-group
, and --logs
to configure diagnostic settings.az postgres server update --name <server-name> --resource-group <resource-group-name> --logs <log-categories>
az cosmosdb update
command to enable encryption for Azure Cosmos DB.--name
, --resource-group
, and --enable-encryption
to configure encryption settings.az cosmosdb update --name <cosmosdb-account-name> --resource-group <resource-group-name> --enable-encryption true
<resource-group-name>
, <server-name>
, <storage-account-resource-id>
, <log-categories>
, and <cosmosdb-account-name>
with the appropriate values.