I used to manage Azure resources an old preview version. The authentication worked something like this:
// Authorize
this.AuthenticationResult = this.Authorize();
this.Credentials = new TokenCloudCredentials(config.SubscriptionId, this.AuthenticationResult.AccessToken);
this.ResourceManagement = new ResourceManagementClient(this.Credentials, new Uri(config.ManagementBaseUrl));
That would pop up and interactive user login window. I'd like to do the same with the new fluent nuget package (Microsoft.Azure.Management.Fluent version="1.0.0"
)
Azure.Authenticate(???)
This seems to be the best documentation of the authentication method: https://github.com/Azure/azure-sdk-for-net/blob/Fluent/AUTH.md
But it only covers options that will store credentials on the HDD which I'd like to avoid. So that whatever user is using my program is needed to login.
So in summary: How do I authenticate using an interactive user login with the latest Azure management API?
According to SDK source code, there is no interactive user login currently.
To avoid storing credentials on the HDD , if no interactive user login is accepted we could use Login Slient model with username and password.