Arun Selva Kumar
Arun Selva Kumar

Reputation: 2732

How to get a file after uploading it to Azure Storage

I had uploaded files mostly media files to Azure's File Storage, which I am able to see in Azure's Explorer as well. But when I view the file as anonymous user, I am not able to view the file. Tried to check with Permissions setting as well, but to no avail.

Any help would be welcomed :)

Upvotes: 0

Views: 430

Answers (1)

benjguin
benjguin

Reputation: 1516

Azure files have Shared Access Signatures (SAS). This is a key that you compute with the storage account key, that gives access to a particular URL. Here is an example (storage account name is obfuscated here):

https://mystorageaccount.file.core.windows.net/sampleshare/2.png?sv=2015-04-05&sr=f&si=sampleread&sig=Zq%2BfflhhbAU4CkCuz9q%2BnUFEM%2Fsg2PbXe3L4MeCC9Bo%3D&sip=0.0.0.0-255.255.255.255

You have sample code on how to create a SAS with Azure files at https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-files/, §"Generate a shared access signature for a file or file share".

You can also do it interactively with a number of tools. For instance, CloudXPlorer has this feature.

Upvotes: 2

Related Questions