Skip to content
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-AzureRmSqlDatabaseAuditingPolicy "not working"/"no documentation" for multiple event types #3047

Closed
rajaprad opened this issue Oct 6, 2016 · 2 comments
Assignees
Labels
Service Attention This issue is responsible by Azure service team. SQL

Comments

@rajaprad
Copy link

rajaprad commented Oct 6, 2016

Cmdlet(s)

Set-AzureRmSqlDatabaseAuditingPolicy

PowerShell Version

4.0

Module Version

2.0.1 (Azure)
3.0.1 (AzureRM.Resources)

OS Version

6.3.9600.17400

Description

Set-AzureRmSqlDatabaseAuditingPolicy not working with multiple event types to audit the events

The below command, shows no error- however the table in the storage accounts logs only "Login_Success".
Event "Login_Failure" is not getting logged.

Official documentation:

https://msdn.microsoft.com/en-us/library/mt603531.aspx

-EventType<String[]>
Specifies the event types to audit. The acceptable values for this parameter are:

-- PlainSQL_Success
-- PlainSQL_Failure
-- ParameterizedSQL_Success
-- ParameterizedSQL_Failure
-- StoredProcedure_Success
-- StoredProcedure_Failure
-- Login_Success
-- Login_Failure
-- TransactionManagement_Success
-- TransactionManagement_Failure
-- All
-- None

You can specify several event types. You can specify All to audit all of the event types or None to specify that no events will be audited. If you specify All or None at the same time, the cmdlet does not run.

Script/Steps for Reproduction

  1. Run the command targetting the server and database
    Set-AzureRmSqlDatabaseAuditingPolicy -AuditType Table -EventType Login_Failure,Login_Success -StorageAccountName pradebban -StorageKeyType Primary -RetentionInDays 90 -ServerName hiddenserver -ResourceGroupName hiddenresourcegrp -Verbose -TableIdentifier pradebban -DatabaseName hiddendatabase
  2. Connect to the Table Storage and simulate login events ( both failure and success ) - only success would get logged.

Thanks,
Pradebban Raja

@cormacpayne
Copy link
Member

@akromm Hey Adam, would you mind taking a look at this issue?

@cormacpayne cormacpayne added the SQL label Oct 6, 2016
@akromm-zz
Copy link
Contributor

akromm-zz commented Oct 7, 2016

@yoavrubin Can you please look into this.

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Service Attention This issue is responsible by Azure service team. SQL
Projects
None yet
Development

No branches or pull requests

5 participants