Can't connect to Azure account thru PowerShell

Mohamed Elsayed 1 Reputation point
2020-12-06T10:35:33.933+00:00

Hi Dears,
I got bellow error when i trying to connect to my Azure account using Windows PowerShell:
WARNING: Unable to acquire token for tenant....

PowerShell Version: 5.1.19041.610

45491-capture.jpg

Azure Content Moderator
Azure Content Moderator
An Azure cognitive service that provides automated image, text, and video moderation.
35 questions
{count} votes

2 answers

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,341 Reputation points
    2020-12-07T09:08:51.837+00:00

    @Mohamed Elsayed This issue looks similar to #13419 and #13340 reported a few weeks ago, which turned out to be an issue with the Az.Accounts module.

    Please try upgrading the Az.Accounts module to the latest version 2.2.1 and try again.

    Do let us know what you see.

  2. Omar Fahnbulleh 1 Reputation point
    2022-03-12T16:24:42.683+00:00

    I am having this very issue when trying to use Powershell and Azure CLI. This started happening after my upgrade to Windows 11.