Search code examples
azure-blob-storageazure-storage-account

Generate a Shared Access Signature (SAS) for a blob written using a SAS


My C# application (using Azure Storage SDK) is writing a blob a partners Azure Storage Account, authentication is via a SAS link they provided.

I'd like to give them an easy download link for the blob by creating a SAS link for it. This doesn't seem possible as I don't have a sharedKey (only the SAS link)

I've also tried using the querystring from the SAS Link provided by the partner, but that fails auth.

Questions:

  1. Is it possible to create a SAS Link after writing the blob using a SAS Link
  2. Are there other avenues I should be looking at

Solution

  • Further investigation lead me to the fact that if I write a blob to a Storage Account that I authenticated to with a SAS link, then the downloadUri of that blob contains the SAS link, and is accessible via that.