I've a problem since many days.
I'm using the Azure.Fluent package in my program and I must to create a ResourceGroup, but when I create it or list themw, I got the MissingMethodsException
and I don't know why. And I've never founded any solution to this.
This is my code :
AzureCredentials cred = SdkContext
.AzureCredentialsFactory
.FromServicePrincipal(
ClientId,
ServicePrincipalPassword,
AzureTenantId,
AzureEnvironment.AzureGlobalCloud
);
var azure = Azure
.Configure()
.Authenticate(cred)
.WithSubscription(AzureSubscriptionId);
var resourceGroup = azure.ResourceGroups.List();
Thanks in advance !
EDIT
This is the detailed error I have :
System.MissingMethodException: 'Méthode introuvable : 'System.Threading.Tasks.Task`1 Microsoft.Rest.Azure.Authentication.UserTokenProvider.LoginSilentAsync(System.String, System.String, System.String, System.String, Microsoft.Rest.Azure.Authentication.ActiveDirectoryServiceSettings, Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache)'.'