Skip to content

Conversation

@omersavion
Copy link
Contributor

@omersavion omersavion commented Aug 10, 2020

Description
Support sql server auditing in Azure CLI. Azure CLI currently supports sql database auditing (sql db audit-policy). This PR adds the support in server auditing too, using sql server audit-policy, which is similar to sql db audit-policy: https://docs.microsoft.com/en-us/cli/azure/sql/db/audit-policy?view=azure-cli-latest

In addition, updating the test of sql db audit-policy (test_sql_db_security_mgmt).

Testing Guide
Testing can be done manually by using the commands "az sql server audit-policy show" or "az sql server audit-policy update" with the same arguments as sql db audit-policy, when --name is the name of the server, and there is no --server argument.
Testing can also be done by running the sql module test ("%ROOT%\src\azure-cli\azure\cli\command_modules\sql\tests\latest\test_sql_commands.py", specifically the test "test_sql_server_security_mgmt".

Release Note
Added new commands az sql server audit-policy show and az sql server audit-policy update to view and manage audit policy for sql server.

This checklist is used to make sure that common guidelines for a pull request are followed.

@omersavion omersavion changed the title Upstream/update audit policy [Auditing] Add sql server auditing Aug 10, 2020
@yonzhan yonzhan added this to the S174 milestone Aug 10, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 10, 2020

Auditing

@Juliehzl
Copy link
Contributor

Hi @omersavion, could you also get @jaredmoo approval?

added new command group as preview
@Juliehzl Juliehzl changed the title [Auditing] Add sql server auditing [SQL] az sql server audit-policy: Add sql server auditing support Aug 17, 2020
@Juliehzl
Copy link
Contributor

@omersavion any update?

@omersavion
Copy link
Contributor Author

Still waiting for @jaredmoo to approve this PR.

@omersavion omersavion closed this Aug 19, 2020
@omersavion omersavion reopened this Aug 19, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 19, 2020

@jaredmoo there is only one day left for this PR to get merged. Please help review it ASAP.

@Juliehzl
Copy link
Contributor

Because we will stop build today and there is no response from Jaredmoo, I will help merge the PR.

@Juliehzl Juliehzl merged commit 5583bb2 into Azure:dev Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants