Cannot access Windows azure file storage document

Fahad Jameel picture Fahad Jameel · Jan 27, 2016 · Viewed 8.4k times · Source

I have created a file storage in Windows azure and uploaded some documents.

This is what my path to my file looks like https://mySite.file.core.windows.net/notes/txt.pdf

When I try to access the a file from my storage i get this error: enter image description here

Answer

Gaurav Mantri picture Gaurav Mantri · Jan 27, 2016

This is intended behavior. Please note that there's no anonymous access allowed for files stored in file storage. The access needs to be authorized. Since you're trying to access the resource without being authorized, you're getting this error.

One way of authorizing the access is to create a Shared Access Signature (SAS) on a file/share level with Read permission and then using that SAS URL to access the file.