CreateIfnotExists throws a connection error
<p>CreateIfNotExists method throws an error: </p>

<blockquote>
  <p>No connection could be made because the target machine actively refused it 52.140.168.120:443</p>
</blockquote>

<p>when an Application pool identity is used.</p>

<pre><code>// Parse the connection string and return a reference to the storage account.
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connectionString);

            // Create the blob client.
            CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();

            CloudBlobContainer container = blobClient.GetContainerReference("mycontainer");

            if (container.CreateIfNotExists())
            {
                BlobContainerPermissions containerPermissions = new BlobContainerPermissions() { PublicAccess = BlobContainerPublicAccessType.Blob };
                container.SetPermissions(containerPermissions);
                container.CreateIfNotExists();
            }
</code></pre>

<p>But this works on using the custom user account and password. 
Is there a way to get this working using the Application Pool Identity.</p>