title: Airflow connection for Azure
body: <p>I am learning Airflow for my job and I am stuck in a very simple problem which I can't figure out the solution for.</p>
  <p><strong>I want to add a simple azure blob connection via the airflow GUI, but for some reason, whenever I try to test the connection it gets a <code>BAD REQUEST</code></strong> response back, see example below:</p>
  <p><a href="https://i.stack.imgur.com/rkm0M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rkm0M.png" alt="enter image description here" /></a></p>
  <p>I have tried login with SAS token and with service principal, which did not work too.</p>
  <p>At some point, I thought it could be caused by some lack of the correct permissions, but when I tried to login in via <code>az cli</code> using the service principal, I can see the resources just fine (works fine as well using the <a href="https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-authenticate-service-principals" rel="nofollow noreferrer">authentication via Python</a>).</p>
  <p>I am running airflow on a docker image, so I thought it could be that the azure provider was not installed, so I opened a shell session in the docker image via <code>docker exec -it airflow-webserver /bin/bash</code> and manually installed the providers via pip, which did not resolve the problem either.</p>
  <p>Does anyone have an idea of what I can try next?</p>