Created
June 3, 2018 14:39
-
-
Save DataSic/a0d547fae28b4acfacb7d387c92fbf49 to your computer and use it in GitHub Desktop.
Modify Set-AzureRmSqlDatabaseAuditing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AuditActionGroup = @("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP", | |
"FAILED_DATABASE_AUTHENTICATION_GROUP", | |
"BATCH_COMPLETED_GROUP", | |
"BACKUP_RESTORE_GROUP", | |
"DATABASE_OPERATION_GROUP", | |
"USER_CHANGE_PASSWORD_GROUP") | |
$setAzureRmSqlDatabaseAuditingSplat = @{ | |
ResourceGroupName = "ResourceGroupName" | |
ServerName = "ServerName" | |
DatabaseName = "DatabaseName" | |
StorageAccountName = "StorageAccountName" | |
State = "Enabled" | |
AuditActionGroup = $AuditActionGroup | |
} | |
Set-AzureRmSqlDatabaseAuditing @setAzureRmSqlDatabaseAuditingSplat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment