question

MohamedElsayed-9156 avatar image
0 Votes"
MohamedElsayed-9156 asked OmarFahnbulleh-7943 answered

Can't connect to Azure account thru PowerShell

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
capture.jpg (101.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MohamedElsayed-9156 Have you had a chance to check this further?

0 Votes 0 ·
bhargaviannadevara-msft avatar image
0 Votes"
bhargaviannadevara-msft answered bhargaviannadevara-msft edited

@MohamedElsayed-9156 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

OmarFahnbulleh-7943 avatar image
0 Votes"
OmarFahnbulleh-7943 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.