To enable Azure SQL Server audit:
- in Azure Portal Enable Audit for the SQL Server (and select the destination, e.g. Storage Account)
- Start the shell from within the Portal
- run this command (replace the names in yellow with your names):
- in Azure Portal Enable Audit for the SQL Server (and select the destination, e.g. Storage Account)
- Start the shell from within the Portal
- run this command (replace the names in yellow with your names):
Set-AzureRmSqlServerAuditing
-State Enabled -ResourceGroupName "rg-bdocloudops" -ServerName "bdocloudops"
-AuditActionGroup APPLICATION_ROLE_CHANGE_PASSWORD_GROUP,
DATABASE_OBJECT_CHANGE_GROUP, DATABASE_OBJECT_OWNERSHIP_CHANGE_GROUP,
DATABASE_OBJECT_PERMISSION_CHANGE_GROUP, DATABASE_PERMISSION_CHANGE_GROUP,
DATABASE_PRINCIPAL_CHANGE_GROUP, DATABASE_PRINCIPAL_IMPERSONATION_GROUP,
DATABASE_ROLE_MEMBER_CHANGE_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP,
SCHEMA_OBJECT_CHANGE_GROUP, SCHEMA_OBJECT_OWNERSHIP_CHANGE_GROUP,
SCHEMA_OBJECT_PERMISSION_CHANGE_GROUP, USER_CHANGE_PASSWORD_GROUP, DATABASE_OPERATION_GROUP
|
Check
if the last group (DATABASE_OPERATION_GROUP) causes too many events and then re-run the command without that group
This event is raised when operations in a database, such as
checkpoint or subscribe query notification, occur. This event is raised on any
database operation on any database. Equivalent to the Audit
Database Operation Event Class.
Comments
Post a Comment