az sql server update-auditing
command to enable auditing for the Azure SQL Server.--state Enabled
and --storage-account resource_id
to configure auditing.az sql server update-auditing --resource-group <resource_group_name> --server <server_name> --state Enabled --storage-account <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_category>
az cosmosdb update
command to enable encryption for Azure Cosmos DB.--name
, --resource-group
, and --enable-encryption
to configure encryption.az cosmosdb update --name <cosmosdb_account_name> --resource-group <resource_group_name> --enable-encryption true