简体   繁体   中英

Azure Data Studio - way to change default connection type for Azure SQL Databases?

I just recently started to use Azure Data Studio to replace SSMS and VS Code. So far it is working great. I do have one "issue" I was wondering if anyone else encounters. I run the application with my Azure AD Admin. Under Connections I see all of my subscriptions and the underlying databases:

Azure SQL 连接

When I try to expand a server, I get an error that it is trying to connect with a SQL account:

连接错误

It then brings up the connection details where it is set to use SQL Authentication:

默认连接设置

更改了身份验证类型

If I change the Authentication type to Azure Active Directory - Universal with MFA support, and click connect it does without issue.

My question is, is there a way to change what the server connection uses as a default so I don't have to try to expand, fail, change auth type, and then connect? It is nice not having to manually create all of the connections to all of our subscriptions and sql servers and just have them load there and open them.

I searched all the settings of Azure data studio, but did not find the option to change the default authentication type of login Azure SQL.

User and workspace setttings of Azure data studio, you can refrence this document .

You can click the power plug icon in the right and then choose Authentication type to login to the server.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM