title: Getting error while fetching data from Gen2 datalake - Make sure the value of Authorization header is formed correctly including the signature
body: <p>I have below resources in Azure cloud infrastructure</p>
  <ol>
  <li>Gen2 storage account</li>
  <li>Azure function</li>
  </ol>
  <p>Gen2 storage account has an <code>event</code> defined. Whenever a blob created, it will try to trigger an Azure function and sends the address of the new blob.</p>
  <p>The azure function now tries to fetch the blob data using the address received from Gen2 storage using SAS token which is defined in the storage account.</p>
  <p>I am getting below error</p>
  <blockquote>
  <p>Server failed to authenticate the request. Make sure the value of the Authorization header is formed correctly including the signature</p>
  </blockquote>
  <p>I tried to regenerate the token, but no luck</p>
  <p>My reference: <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/read" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/read</a></p>
  <p>This is how I generated the token</p>
  <p><a href="https://i.stack.imgur.com/dU7vZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dU7vZ.png" alt="enter image description here" /></a></p>
  <p>I also tried both &quot;?&quot; and &quot;&amp;&quot; as the starting character of the token. However, no luck.</p>
  <p>I also tried both <code>HTTP</code> and <code>HTTPS</code> during token generation.</p>
  <p>Updated sample SAS (<strong>obfuscated SIG portion information</strong>)</p>
  <blockquote>
  <p>&amp;sv=2019-10-10&amp;ss=mfat&amp;srt=pco&amp;sp=kwdmacusx&amp;se=2099-05-10T14:36:06Z&amp;st=2020-05-10T06:36:06Z&amp;spr=https,http&amp;sig=<em><strong><strong><strong>%2CCvt7B24SM</strong></strong>Ikde%</strong></em>***************%3A</p>
  </blockquote>
  <p><strong>Observation</strong> - &quot;Get shared access signature&quot; is disabled in storage explorer for this storage account.</p>
  <p><a href="https://i.stack.imgur.com/MBcHr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MBcHr.png" alt="enter image description here" /></a></p>