title: New-AzStorageBlobSASToken returns "signature did not match" via powershell
body: <pre><code>$StorageContext = New-AzStorageContext -StorageAccountName "https://someblobstorage.blob.core.windows.net/nonpublicfolder" -StorageAccountKey "omghi2u"
  
  New-AzStorageBlobSASToken -Context $StorageContext 
           -Container "nonpublicfolder"
           -Blob 'stuff.zip' 
           -StartTime $(Get-Date) 
           -ExpiryTime $(Get-Date).AddHours(+3) 
           -Permission rl 
           -FullUri 
           -Verbose
  </code></pre>
  
  <p>I use the following powershell command to generate a SAS blob token and link. There are two issues. Firstly it returns a non sensical URL with lots of duplications</p>
  
  <pre><code>https://https//someblobstorage.blob.core.windows.net/nonpublicfolder.blob.core.windows.net/nonpublicfolder/stuff.zip?sv=2019-02-02&amp;sr=b&amp;sig=lolsig&amp;st=2019-09-18T06%3A28%3A44Z&amp;se=2019-09-18T09%3A28%3A44Z&amp;sp=rl
  </code></pre>
  
  <p>As you can see it has duplicated the https, and also strangely added blob.core.windows.net multiple times.</p>
  
  <p>If I fix the link by hand to be the following:</p>
  
  <pre><code>https://someblobstorage.blob.core.windows.net/nonpublicfolder/stuff.zip?sv=2019-02-02&amp;sr=b&amp;sig=lolsig&amp;st=2019-09-18T06%3A28%3A44Z&amp;se=2019-09-18T09%3A28%3A44Z&amp;sp=rl
  </code></pre>
  
  <blockquote>
    <p> <Code>AuthenticationFailed</Code>  Server failed to
    authenticate the request. Make sure the value of Authorization header
    is formed correctly including the signature. RequestId:some guid
    Time:2019-09-18T06:30:10.1797787Z 
     Signature did not match. String to sign
    used was rl 2019-09-18T06:29:50Z 2019-09-18T09:29:50Z
    /blob/someblobstorage/somepublicfolder/stuff.zip 2019-02-02 b
     </p>
  </blockquote>
  
  <p>Why am I getting an authentication failure?</p>
  
  <p>edit: If I use azure storage explorer to generate it I get a link that has ordered the variables differently, it also works.</p>
  
  <pre><code>https://someblobstorage.blob.core.windows.net/nonpublicfolder/stuff.zip?st=2019-09-18T06%3A33%3A04Z&amp;se=2019-09-19T08%3A33%3A00Z&amp;sp=r&amp;sv=2018-03-28&amp;sr=b&amp;sig=somesig
  </code></pre>
  
  <p>How can I generate a working link like the one above using powershell? I have no idea what I am doing wrong.</p>