title: Setting up az cli, however I cannot connect due to max retries failed, target host refused the connection. How can I get past my proxy in Windows?
body: <p>I've followed Microsoft's instructions for &quot;<a href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-powershell" rel="nofollow noreferrer">Proxy Blocks a Connection</a>&quot;, which reads:</p>
  <blockquote>
  <p>(New-Object System.Net.WebClient).Proxy.Credentials =
  [System.Net.CredentialCache]::DefaultNetworkCredentials</p>
  </blockquote>
  <p>...however I'm still receiving the following error when attempting to do <code>az login</code> or <code>az extension add --name azure-devops</code>:</p>
  <blockquote>
  <p>Please ensure you have network connection. Error detail:
  HTTPSConnectionPool(host='aka.ms', port=443): Max retries exceeded
  with url: /azure-cli-extension-index-v1 (Caused by ProxyError('Cannot
  connect to proxy.',
  NewConnectionError('&lt;urllib3.connection.HTTPSConnection object at
  0x0448E9F0&gt;: Failed to establish a new connection: [WinError 10061] No
  connection could be made because the target machine actively refused
  it',)))</p>
  </blockquote>
  <p>I'm trying to connect to our company's Org on dev.azure.com.   I've searched and have not come across anything that helps.</p>
  <p>Thanks - please let me know if there is more info that's needed.   I know the address &amp; port of my proxy, (http/s://proxy.{env}.{org}.com:{PORT}), however I don't see a way to explicitly state this, or if it would even work.</p>
  <p>TIA</p>