I have an App hosted in Azure using Azure AD Authentication. I want the the current logged in user to be used to be used to manage Azure resources. I want this to be simple for the user. If the Signed In account is an Azure management account, I want to use his Identity (the Current User) to manage Azure resources. This app will be used to check Azure Resource existence and permissions. The current user should have the required privileges in AD.
I know the following is wrong, but I think it conveys what I want to do. Something like this: (User.Identity is the Asp.Net user)
public class ConfigurationModel : PageModel
{
public void OnGet()
{
var azure = Azure.Configure()
.WithLogLevel(HttpLoggingDelegatingHandler.Level.BodyAndHeaders)
>>> .Authenticate(User.Identity)
.WithSubscription("...");;
var resources = azure.ResourceGroups.List()