12
votes

I have Azure Container created and set to Private. The permission must be set to Private because the content is only viewable to logged in user. However, I am intended to use the blob in tag. This is not possible when the Container is set to Private. Is there a way around this? Or have anybody else encounter the same problem?

All the code sample I have downloaded (PhluffyPhotos, MyPictures) from CodePlex / Code Project always set the container to Public (Container / Blob).

Thanks!

2

2 Answers

14
votes

Consider using Shared Access Signatures. With these signatures, you can give your user temporary access to a Blob in a private container.

Eugenio Pace's article explains exactly what you're trying to do: Windows Azure Guidance – Using Shared Key Signatures for images in a-Expense

0
votes

You can also set the container private and use your web app as a proxy to download file from the container then serve it via a handler.