Search code examples
azure.net-coreasp.net-identityvisual-studio-2022

Unable to configure Microsoft Identity Platform while publishing .Net Core 3.1.4 project + VS 2022 + Azure


I have a .net core 3.1 project. The project has a dependency on Microsoft Identity Platform and SQL Server.

While publishing the project to Azure. I am not able to configure the Microsoft Identity Platform. It gives below Error window.

enter image description here

I am able to configure SQL Server dependency but not sure why it is not able to configure Identity Platform.

I am using

  • .Net core 3.1.4
  • Visual Studio Community Edition 2022
  • Asp.net core Identity Entity Framework 3.1.4

Any idea?


Solution

  • Because you didn't install the dotnet-msidentity tool.

    You can try to open the cmd black window and execute this command following this document.

    dotnet tool install Microsoft.dotnet-msidentity -g --version "1.0.0-preview.1.21212.1"
    

    This command will solve your issue. But then you will meet another issue like screenshot below if your account has multiple tenant.

    enter image description here

    Someone met this issue too and raised a ticket to ms.

    You may search for known issues here if you meet some other weird questions when using vs2022.