Skip to content

Instantly share code, notes, and snippets.

@DataSic
Created June 3, 2018 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DataSic/884c1231fd853648600d907090184b8c to your computer and use it in GitHub Desktop.
Save DataSic/884c1231fd853648600d907090184b8c to your computer and use it in GitHub Desktop.
Set-AzureRmSqlDatabaseAuditing
<#
https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/set-azurermsqldatabaseauditing
#>
$setAzureRmSqlDatabaseAuditingSplat = @{
ResourceGroupName = "ResourceGroupName"
ServerName = "ServerName"
DatabaseName = "DatabaseName"
StorageAccountName = "StorageAccountName"
State = "Enabled"
}
Set-AzureRmSqlDatabaseAuditing @setAzureRmSqlDatabaseAuditingSplat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment