Hi, I am uploading an app that uses sql to azure.
I have already uploaded the app, when accesing its URL I get a "App is running and waiting for content"
In order to provide an sql db to the app, i am following this tutorial:
https://free.blessedness.top/en-us/azure/app-service/tutorial-connect-msi-sql-database
I am at the step linked "Grant permission to the managed identity". The user I provide is the one displayed as "userPrincipalName": "XXXXXX" when using the command "az ad user list". It is the only one on the list. It has a reference to the email of my microsoft live account. I didn't create this entry manually, so I assume the password is the same as my microsoft live account.
When running the command, the password is requested. I provide my microsoft live account pass and I get this output:
Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : Failed to authenticate the user 'XXXXXXXXXXXXXX' in Active Directory (Authentication option is 'ActiveDirectoryPassword').
Error code 0xA190; state 41360
AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: 5fc9bc68-4714-4931-8591-b4bc8ceb0e00 Correlation ID: 537b90c5-361a-4443-9979-c3ab0076ba41 Timestamp: 2025-10-29 14:42:34Z.
Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : Error requesting access token, HTTP status 400, expected 200.
Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : TCP Provider: Error code 0x68.
Sqlcmd: Error: Microsoft ODBC Driver 18 for SQL Server : Communication link failure.
I have tried loging off and in again using this password, it works on this site.
I have also tried to access the user through the azure web menu: Start > Default directory > Users
I can see the user there and thre is a "reset the password" button, but when I try to use it I get "[username] is a Microsoft account managed by the user, only [username] can reset the password of this account". Said "username" matches the userPrincipalName I get from the CLI.
Am I mixing up accounts? How can I get my app to access the azure sql?