SQL Azure Connection

GS 1 Reputation point
2022-12-03T23:57:42.293+00:00

I cannot connect to my DB SQL Azure through SQL Management Server, I use this type of connection (user is my user of Azure Portal), where is the error?

Server type: Database Engine
Server name: as copied by th Azure (xxx.database.windows.net)
Authentication: Azure Active Directory - Password
User name: e-mail used for accessing Azure portal
Password: password accessing Azure portal

Thanks

Azure SQL Database
{count} votes

5 answers

Sort by: Most helpful
  1. GS 1 Reputation point
    2022-12-04T18:16:24.44+00:00

    Yes, the problem is that. I set the administrator (see attached) and then I try to enter from SSMS. It doesn't work for any of these 3 ways, where is the error?

    1. I'm using as "account" the name of the Azure account (cicerone.diamond.xxx) and the password of Azure Portal
    2. I have also used as account the ID of Administrator created
    3. I have also tried to enter wit "universal MFA", but it gives me an error (see attached)

    Thanks for your help

    266934-image.png

    266889-image.png

    266768-image.png
    266942-image.png

    0 comments No comments

  2. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2022-12-04T18:33:06.587+00:00

    I wonder, if its not allowing you to login - because your gmail address is classified as an external address - to Azure AD. Try to create a native Azure AD user, add that to the SQL Admin groups and login using that.

    Note: Make sure you login using hat accounts username and password into 'portal.azure.com' so you can set MFA and change the password, if required - before logging into SQL Management Studio.

    0 comments No comments

  3. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2022-12-04T23:18:03.7+00:00

    @GS Can you confirm if you have a network connection by default for the Public network access setting is disabled. you can choose to connect to a database by using either public endpoints or private endpoints,

    266972-image.png

    if you already have this setup can you try connecting from the Query editor as shown below
    266900-image.png

    Regards
    Geetha

    0 comments No comments

  4. GS 1 Reputation point
    2022-12-05T20:41:39.42+00:00

    In no way it works! I recap (I'm coming from Oracle Cloud and the first impression are not good...I hope it's only my few experience..).

    I have followed this steps (I attach the various printscreen):

    1. I open a SQL Server istance on Azure, then I add an Administrator (specific for SQL Database)
    2. Then I open a SQL Azure Database and I read the name of Cloud Administrator (itinerarium.xxx)
    3. Then I move to SSMS and I insert data for entry, but I get an error, all these cases:
      a. SQL authentication with user of Administrator
      b. Azure Active Directory with user of Administrator reported in Azure Active Directory
      c. Azure Active Directory with user equal to the user I use for login into Azzure

    In all cases, I used the password used to enter into Azure Cloud.

    Where is the error?

    Thanks
    267354-image.png

    267249-image.png

    267392-image.png

    0 comments No comments

  5. GS 1 Reputation point
    2022-12-05T21:32:03.53+00:00

    Solved!!

    Using Cloud Administrator Password works...I reset the password and retry...no it's ok

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.