Skip to content

Instantly share code, notes, and snippets.

@macna
Created June 8, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macna/5cabe2e1fef63325ba19 to your computer and use it in GitHub Desktop.
Save macna/5cabe2e1fef63325ba19 to your computer and use it in GitHub Desktop.
PowerShell script for connecting to Microsoft Azure when behind a forward-proxy. Requires the Microsoft Azure PowerShell commandlets.
$webclient=New-Object System.Net.WebClient
$creds=Get-Credential
$webclient.Proxy.Credentials=$creds
$cred = Get-Credential
Add-AzureAccount -Credential $cred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment