Microsoft Azure: Error while Add-AzureAccount 1

In The previous article we discussed about PowerShell Tips & Tricks-Print full exception/stacktrace in PowerShell?

After the installation of Azure Powershell, if we get an Error occurred while sending the Request – CloseError – HttpRequestException while executing very first command Add-AzureAccount then how to solve it?

11.Microsoft Azure Powershell-Error

This is an issue regarding PowerShell $env:PSModulePath.  It comes while installing it from WebPI.

If computer requires a restart due to system updates or other installations, it may cause the $env:PSModulePath to not include the path where Azure PowerShell is installed.

Solution: Restart the machine and we can then execute Add-AzureAccount or other Azure cmdlets.

In the next Article we will discuss about How to Change Background Color of Microsoft Azure Portal

Leave a comment

Your email address will not be published. Required fields are marked *

One thought on “Microsoft Azure: Error while Add-AzureAccount