An Azure relational database service.
Hi @Anonymous ,
Welcome to Microsoft Q&A forum and thanks for using Azure services.
As I understand from the GitHub link, you are getting "Login failed for user '<token-identified principal>" when creating database in migration (at runtime) while creation of DB with Managed Identity.
In order to troubleshoot this issue, I would suggest first you need to make your SQL database AAD-enabled. Then you can create a user for your Managed Identity like this:
CREATE USER [<identity-name>] FROM EXTERNAL PROVIDER;
After this, assign permissions to that user as needed.
Hope this helps. Please let us know if this works well and your inputs.
Also, added C# tags so that the team also could share inputs if related to EF side.
Thank you.