Configuring auditing for Azure SQL Database
SQL Auditing is a process in which key activities or changes in the database are recorded not only for monitoring but also for compliance to global security standards. In the following recipe, we will configure an audit for Azure SQL Database to record the database activities, store the details in Azure Log Analytics, and verify the recorded data.
Getting ready
Create an Azure SQL database and a Log Analytics workspace, as mentioned in the Monitoring an Azure SQL database using the Azure portal recipe of this chapter.
How to do it…
- In the Azure portal, navigate to All resources | azadesqlserver | adeawlt. Find Auditing:
Figure 6.46 – Azure SQL Database Auditing
- Turn on Azure SQL Auditing. Enable Log Analytics. Pick the packtadesqllgw Log Analytics workspace, which was created in the Monitoring an Azure SQL Database using the Azure portal recipe of this chapter. Hit the Save...