Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 4.3 KB

File metadata and controls

74 lines (55 loc) · 4.3 KB
title Manage Auditing Using APIs
titleSuffix Azure SQL Database & Azure Synapse Analytics
description Use Azure SQL Database auditing to track database events into an audit log.
author sravanisaluru
ms.author srsaluru
ms.reviewer mathoma
ms.date 06/10/2025
ms.service azure-sql-database
ms.subservice security
ms.topic concept-article
ms.custom
devx-track-azurepowershell

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.

Related content