Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 3.9 KB

auditing-manage-using-api.md

File metadata and controls

68 lines (49 loc) · 3.9 KB
title description author ms.author ms.date ms.service ms.subservice ms.custom ms.topic
Manage Azure SQL Database Auditing using APIs
Use Azure SQL Database auditing to track database events into an audit log.
sravanisaluru
srsaluru
04/26/2023
sql-database
security
devx-track-azurepowershell
conceptual

Manage Azure SQL Database Auditing using APIs

[!INCLUDEappliesto-sqldb-asa]

This article provides an overview of the different APIs used for managing Auditing for Azure SQL Database and Azure Synapse Analytics.

Use Azure PowerShell

PowerShell cmdlets (including WHERE clause support for additional filtering):

For a script example, see Configure auditing and threat detection using PowerShell.

Use REST API

REST API:

Extended policy with WHERE clause support for additional filtering:

Use Azure CLI

Use Azure Resource Manager templates

You can manage Azure SQL Database auditing using Azure Resource Manager templates, as shown in these examples:

Note

The linked samples are on an external public repository and are provided 'as is', without warranty, and are not supported under any Microsoft support program/service.

See also