Connect-AzAccount : InteractiveBrowserCredential authentication failed

Mukkram Shaik 1 Reputation point
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.
180 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Pranathi Panyam_MSFT 1,006 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


  2. 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.