Skip to content

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

Merged
Juliehzl merged 14 commits intoAzure:devfrom
jard285:dev
Oct 22, 2020
Merged

[SQL] Adding AAD-only Support for SQL Managed Instances and Servers#15292
Juliehzl merged 14 commits intoAzure:devfrom
jard285:dev

Conversation

@jard285
Copy link
Contributor

@jard285 jard285 commented Sep 24, 2020

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
Contributor

Looks good.

@yonzhan yonzhan added this to the S177 milestone Sep 25, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Sep 25, 2020

SQL

Copy link
Contributor

@Juliehzl Juliehzl left a comment

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.

@jard285 jard285 requested a review from evelyn-ys as a code owner October 20, 2020 13:32
Copy link
Contributor

@Juliehzl Juliehzl left a comment

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
Contributor Author

jard285 commented Oct 20, 2020

Sure. I'll write them up.

@jard285
Copy link
Contributor Author

jard285 commented Oct 20, 2020

Tests were added

@jard285
Copy link
Contributor Author

jard285 commented Oct 20, 2020

Style updates

@jard285
Copy link
Contributor Author

jard285 commented Oct 20, 2020

@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.

@Juliehzl
Copy link
Contributor

@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
Copy link
Contributor Author

jard285 commented Oct 21, 2020

Changes were made! @Juliehzl

@Juliehzl 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