Azure SQL Database Auditing Reading JSON

Cox, Phillip 20 Reputation points
2023-07-19T18:51:15.6866667+00:00

Hi Community,

I am hoping someone can help me with this question regarding reading the JSON file for an Azure SQL Database in terms of auditing. I am trying to understand how I can find out who may have disabled server level auditing, but in reading the JSON file, its not apparent what the operation type for for type of change. I can only see these blocks, which don't provide the type of "write" operation (e.g., auditing enabled OR auditing disabled).

/subscriptions/xxxx/resourcegroups/RG/providers/microsoft.sql/servers/xxxx/auditingsettings/default

Microsoft.Sql/servers/auditingSettings/write

Any help would be very appreciated, thanks!

Phillip Cox

Azure SQL Database
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Oury Ba-MSFT 21,126 Reputation points Microsoft Employee Moderator
    2023-07-20T14:34:38.97+00:00

    @Cox, Phillip Thank you for reaching out.

    The JSON file you are looking at is an Azure Resource Manager (ARM) template that describes the configuration of the Azure SQL Database auditing settings. The operation type you are looking for (auditing enabled or disabled) is not explicitly recorded in the ARM template.

    However, you can use the Azure Activity Log to track changes to the Azure SQL Database auditing settings. The Azure Activity Log records all management operations that are performed on Azure resources, including changes to the auditing settings.

    The activity logs are stored for 90 days only, you will get below details.

    User's image

    Hope that helps.

    Please don't forget to mark as accept answer if the reply was helpful.

    Regards,

    Oury

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.