An Azure relational database service.
Hello Eric !
Thank you for posting on Microsoft Learn.
Did you create the Azure SQL Server yourself? If so, the login you created during provisioning should be the server admin.
If you're using Azure Active Directory (AAD) for login, ensure your user is properly added to the database with correct roles (db_owner...).
If you are the server admin, connect to the master database and run this to grant yourself access to the new DB:
CREATE USER [your_user] FROM LOGIN [your_user];
ALTER ROLE db_owner ADD MEMBER [your_user];
Or, switch to the target database and run:
CREATE USER [your_user] FROM LOGIN [your_user];
ALTER ROLE db_owner ADD MEMBER [your_user];
If you're using AAD:
CREATE USER [******@domain.com] FROM EXTERNAL PROVIDER;
ALTER ROLE db_datareader ADD MEMBER [******@domain.com];
ALTER ROLE db_datawriter ADD MEMBER [******@domain.com];
If you want to verify with the Azure Portal, go to your Azure SQL server resource > Active Directory admin and check if your account is set as admin.
You can also check SQL users and permissions from the Azure Portal (under the database > Query editor (preview)) if you can log in there.