Connect-AzAccount : unable to acquire token for tenant ‘Organizations’ with error


Bonjour

Connect-AZccount voilà une commande let qui ne sait pas gérer les proxy. Et s’il vous faut une preuve la voici. Depuis le même poste de travail connecté sur internet à travers un proxy. La commande Connect-AZaccount ne fonctionne pas, la commande Connect-ExchangeOnline elle fonctionne. Et en powershell 7 en mode admin ou pas c’est la même chose. Même problème

Connect-AZccount is a let command that doesn’t know how to handle proxies. And if you need a proof here it is. From the same workstation connected to the internet through a proxy. The Connect-AZaccount command does not work, the Connect-ExchangeOnline command does. And in powershell 7 in admin mode or not it’s the same thing. Same problem

With Windows PowerISE same result

Proxy configuration on the workstation

netsh winhttp show proxy

Paramètres de proxy WinHTTP actuels :

Serveur(s) proxy  : proxy-1.company.com:8098

Liste d’exception : 190.1.*; 127.0.0.1; *.local;*.company.com; 192.168.*; 9.0.0.*; 192.1.2.*;*.intra;172.26.*;172.32.*;172.34.;sts.cool.de;;<local>

Related Links

https://github.com/Azure/azure-powershell/issues/14925

  1. removing AzureRmContext.json & AzureRmContextSettings.json

    I have removed AzureRmContext.json AzureRmContextSettings.json and retried in Admin mode


    With Powerhell 7.1 User standard


    With Powershell 7 with admin level. It works !!!! / Avec Powershell 7 avec le niveau administrateur. Cela fonctionne ! !!!

    Pour conclure, je ne pense pas que cela la suppression des deux fichiers json qui soit la solution mais plutôt l’utilisation en mode Administrateur du Powershell 7. Attention si pour le compte administrateur le navigateur par défaut est Chrome, l’authentification ne peux pas ce faire. J’ai dû modifier le choix du navigateur pour Microsoft EDGE.
    To conclude, I don’t think that deleting the two json files is the solution but rather using powershell 7 in administrator mode. Be careful if for the administrator account the default browser is Chrome, the authentication can not be done. I had to change the choice of browser for Microsoft EDGE

Votre commentaire

Choisissez une méthode de connexion pour poster votre commentaire:

Logo WordPress.com

Vous commentez à l’aide de votre compte WordPress.com. Déconnexion /  Changer )

Image Twitter

Vous commentez à l’aide de votre compte Twitter. Déconnexion /  Changer )

Photo Facebook

Vous commentez à l’aide de votre compte Facebook. Déconnexion /  Changer )

Connexion à %s