title: Creating empty folder in Azure ADSL Gen 2 Storage account using rest api
body: <p>I wanted to create an empty folder and delete empty folder in azure adsl gen 2 storage account, first I tried with cli and I was able to create it using the following commands</p>
  <ol>
  <li>az login --service-principal --username <em>removed</em> --password <em>removed</em> --tenant <strong>removed</strong></li>
  </ol>
  <p>2.[CREATE] az storage fs directory create -n my-directory -f <em>removed</em> --account-name <em>removed</em></p>
  <p>3.[DELETE] az storage fs directory delete -n my-directory -f <em>removed</em>  --account-name <em>removed</em></p>
  <p>and same thing I am trying it from rest api , then file is getting created but not the folder:</p>
  <pre><code>curl --location --request PUT 'https://__removed__.blob.core.windows.net/__container_name__/__path__/__directory_taht_i_want_to_be_created__?resource=directory&amp;x-ms-version=2018-11-09' \
  --header 'x-ms-version: 2018-11-09' \
  --header 'x-ms-blob-type: BlockBlob' \
  --header 'Authorization: Bearer __removed__'
  </code></pre>
  <p>I am following this link: <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/create</a></p>
  <p>Please help me know what is missing in my rest call</p>