title: How to get the command line for AZCopy?
body: <p>I want to send dump files to a storage container and for the copy to work we need to obtain a SAS key for the container we’re copying to.</p>
  <p>When you use Azure Storage Explorer you can copy a file to a container and then copy the command it used to the clipboard which looks something like this:</p>
  <p>$env:AZCOPY_CRED_TYPE = &quot;Anonymous&quot;;
  ./azcopy.exe copy &quot;C:\temp\test.txt&quot; &quot;https://dbbackups.blob.core.windows.net/memorydumps/test.txt?{SAS-TOKEN}&quot; --overwrite=prompt --from-to=LocalBlob --blob-type Detect --follow-symlinks --put-md5 --follow-symlinks --recursive;
  $env:AZCOPY_CRED_TYPE = &quot;&quot;;</p>
  <p>I copied this from AZ Storage Explorer when copying a file called test.txt from c:\temp to the memorydumps container in a Storage Account.</p>
  <p>What I would need help with is creating a PowerShell script that generates the above command line so I can run it on azcopy-less nodes and have the dumps end up in the storage container. Any ideas?</p>