In case of a proxy while uploading your VHD to Windows Azure using Powershell

Sometimes when you are trying to do certain process on Windows Azure via Powershell you receive an ambiguous error with no specific error message, make sure that you don’t have a proxy in the environment blocking your communication to Windows Azure, If you do have one, then run the below command and then retry what you were doing before, it should work.

this is basically a .net code that is taking your credentials and passing it on to the proxy while executing your commands.

[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s