简体   繁体   中英

Unable to log into Azure SQL database in Azure Portal using AAD Global Admin (member type) account

I am Global Administrator of the Azure subscription I own.

Steps:

  • I logged into Azure Portal using my credentials.
  • I created an Azure SQL database (including initiating a new Azure SQL Server instance).
  • I set the database security to permit both SQL Login and AAD Auth.
  • I set my AAD account to be SQL Admin of the server.

In the poral, when I navigate to the 'Query editor (preview)' page for the created database, the option to login via Azure Directory Authentication, displays the following error for my account:

    *Login failed for user '\<token-identified principal\>'.*

What could the issue be / how can I resolve?

Thank you

在此处输入图像描述

Have you tried to update your credentials on Azure Active Directory? maybe this could help to solve the problem. For example, change your password and try again if doesn't resolve the problem, delete the account and create a new one.

Solved:

I created a Group (called is SQLAdmin) in Azure Active Directory; and added my account to this.

I set the SQL Server Admin in the SQL server's Settings\Active Directory page to the SQLAdmin group.

When navigated back to the Query editor (preview) page for the database, the error no longer appeared; and selecting the 'Continue as....' button provided me access to the SQL Query window

在此处输入图像描述

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