Connect-AzAccount : InteractiveBrowserCredential authentication failed

Mukkram Shaik 11 Reputation points
2021-05-25T02:00:38.61+00:00

Hi team,

I am trying to connect AZ portal via PowerShell but my request fails with error "Connect-AzAccount : InteractiveBrowserCredential authentication failed: Retry failed after 4 tries" CloseError: (:) [Connect-AzAccount], AuthenticationFailedException though using the correct Proxy in Powershell profile. Can someone Please guide me on this to find the RCA.

I am new to Azure, really appreciate guidance on this.

Thankyou

Azure Stack Hub
Azure Stack Hub
An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.
189 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Rubert J 105 Reputation points
    2024-06-06T11:52:45.4633333+00:00

    I have resolved the issue by executing below command in PowerShell

    Update-AzConfig -EnableLoginByWam $false

    https://learn.microsoft.com/en-us/answers/questions/1342970/warning-unable-to-acquire-token-for-tenant-organiz

    21 people found this answer helpful.

  2. Pranathi Panyam_MSFT 1,046 Reputation points Microsoft Employee
    2021-05-25T12:49:45.59+00:00

    @Mukkram Shaik , Thanks for posting your query here!

    Try to install AZ module on your PowerShell and set your execution policy to remote signed. Once, this is done everything should work as expected.

    Please refer to this document for installing the Azure PowerShell module. Refer to this document for setting your execution policy to RemoteSigned

    Kindly let us know if the above helps or you need further assistance on this issue.

    --------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
    strong text


  3. Martin Tomcik 1 Reputation point
    2021-11-05T07:31:15.53+00:00

    Yesterday I had same issue. After few hours of investigation what I missing I found that I turned on my proxy settings. After turning off problem gone.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.