Connecting to Azure storage account thru proxy server

amolbk picture amolbk · Oct 22, 2010 · Viewed 18.7k times · Source

My 'LocalClient' app is in a corporate LAN behind an HTTP proxy server (ISA). The first Azure API call i make - CloudQueue.CreateIfNotExist() - causes an exception: (407) Proxy Authentication Required. I tried following things:

As per MSDN, an HTTP proxy server can be specified in the connection string only in case of Development Storage (see http://msdn.microsoft.com/en-us/library/ee758697.aspx):
UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://myProxyUri

Is there any way to connect to the Azure Storage thru a proxy server?

Answer

Nick Evans picture Nick Evans · Sep 4, 2012

I actually found that the custom proxy solution was not required.

Adding the following to app.config (just before the </configuration>) did the trick for me:

<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy usesystemdefault="true" />
</defaultProxy>
</system.net>