I want to build Azure admin app and i need to log in to my Azure account. The problem is that i want to do it in interactive way like in Powershell Login-AzAccount command. I don't want to register AzureAD app like in many tutorials in the web.
Is there any way to achieve it?
I've done it using .net library for Powershell.
using (PowerShellExec commander = new PowerShellExec())
{
response = commander.RunCommand("Login-AzAccount");
}
But is there any way to do it without powershell?
