-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set-AzureRmSqlDatabaseAuditing does not work with AuditAction, Set-AzureRmSqlDatabaseAuditingPolicy works #5046
Comments
Hi Cormac, The results are too big to paste here, I have upload them to my OneDrive, you can access them via https://1drv.ms/f/s!Al_DGOKCXcMSj2fqf6fakP3IbYtx. I removed account info in them due to privacy reason. Thanks |
@zhiweiv Thank you for reporting this. |
Thanks ranisha2. |
@cormacpayne Many thanks |
@zhiweiv Hey Zhiwei, when you start a new PowerShell session and run When you set Worst case scenario, you can modify your $profile script to set |
@cormacpayne Sorry again. |
Closing as fixed. Please reopen this if the issue still exists. |
Azure PowerShell Version
5.0
I want to audit update events only on database, I tried the below code
$AuditAction = "UPDATE ON database::[xxx] BY [public]";
Set-AzureRmSqlDatabaseAuditing -ResourceGroupName "xxx" -ServerName "xxx" -DatabaseName "xxx" -StorageAccountName "xxx" -AuditAction $AuditAction -PassThru -AuditActionGroup "FAILED_DATABASE_AUTHENTICATION_GROUP" -State Enabled
After I executed the script, it did not audit anything. However, the legacy cmdlet Set-AzureRmSqlDatabaseAuditingPolicy works perfectly,
$AuditAction = "UPDATE ON database::[xxx] BY [public]";
Set-AzureRmSqlDatabaseAuditingPolicy -ResourceGroupName "xxx" -ServerName "xxx" -DatabaseName "xxx" -StorageAccountName "xxx" -AuditAction $AuditAction -PassThru -AuditActionGroup "FAILED_DATABASE_AUTHENTICATION_GROUP" -AuditType Blob
Since Set-AzureRmSqlDatabaseAuditingPolicy is obsolete and will be removed in the future, please help to verify and fix it in Set-AzureRmSqlDatabaseAuditing.
Thanks
The text was updated successfully, but these errors were encountered: