Can't connect to Azure account thru PowerShell

Mohamed Elsayed 1 Reputation point

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


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

    @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

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