Skip to content

[SQL] Adding AAD-only Support for SQL Managed Instances and Servers - #15292

Merged
Zunli Hu (Juliehzl) merged 14 commits into
Azure:devfrom
jard285:dev
Oct 22, 2020
Merged

[SQL] Adding AAD-only Support for SQL Managed Instances and Servers#15292
Zunli Hu (Juliehzl) merged 14 commits into
Azure:devfrom
jard285:dev

Conversation

@jard285

@jard285 jard285 (jard285) commented Sep 24, 2020

Copy link
Copy Markdown
Contributor

Adding support for a new feature to az cli. Azure Active Directory only allows for only AD users to be admins not traditional username/password combinations. This feature has been added to Azure Python SDK and is now being supported in az cli

Using either a managed instance or server with a ad admin run:

az sql server ad-only-auth enable
az sql server ad-only-auth disable
az sql server ad-only-auth get

az sql mi ad-only-auth enable
az sql mi ad-only-auth disable
az sql mi ad-only-auth get

to enable, disable and show AAD only authentication.

@strehan1993

Copy link
Copy Markdown
Contributor

Looks good.

@yonzhan

Copy link
Copy Markdown
Collaborator

SQL

Comment thread src/azure-cli/azure/cli/command_modules/sql/_help.py
Comment thread src/azure-cli/azure/cli/command_modules/sql/_help.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/commands.py
Comment thread src/azure-cli/azure/cli/command_modules/sql/commands.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/commands.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/sql/custom.py
Comment thread src/azure-cli/azure/cli/command_modules/sql/custom.py

@Juliehzl Zunli Hu (Juliehzl) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add test scenarios for all new commands and parameters.

@Juliehzl Zunli Hu (Juliehzl) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add test scenarios for your new commands?

@jard285

Copy link
Copy Markdown
Contributor Author

Sure. I'll write them up.

@jard285

Copy link
Copy Markdown
Contributor Author

Tests were added

@jard285

Copy link
Copy Markdown
Contributor Author

Style updates

@jard285

jard285 (jard285) commented Oct 20, 2020

Copy link
Copy Markdown
Contributor Author

Zunli Hu (@Juliehzl) I don't think that error is caused by me. according to the logs the error comes from loading ai-examples extension which I haven't touched. Please give guidance on how to proceed.

Comment thread src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py Outdated
@Juliehzl

Copy link
Copy Markdown
Contributor

Zunli Hu (@Juliehzl) I don't think that error is caused by me. according to the logs the error comes from loading ai-examples extension which I haven't touched. Please give guidance on how to proceed.

Yes. We could fix the CI error.

@jard285

jard285 (jard285) commented Oct 21, 2020

Copy link
Copy Markdown
Contributor Author

Changes were made! Zunli Hu (@Juliehzl)

@Juliehzl
Zunli Hu (Juliehzl) merged commit 1ec66e1 into Azure:dev Oct 22, 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.

4 participants