Wriju's BLOG

.NET, Cloud and everything

Azure PowerShell : Forbidden Error: The server failed to authenticate the request

You have used Add-AzureAccount command to connect to Azure Account or might have used .publishsettings file. But even after you have successfully connected you get this error every time you want to run any Azure command

Forbidden Error: The server failed to authenticate the request

clip_image002

Your frustration mounts. Many try, many searches in various forums. One simple solution is

Before you run Add-AzureAccount command run

Clear-AzureProfile

This will simply solve your problem.

Namoskar!!!