不能访问Windows Azure的文件存储文件 [英] Cannot access Windows azure file storage document

查看:315
本文介绍了不能访问Windows Azure的文件存储文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了Windows Azure中的文件存储和上传一些文件。

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

这是我到我的文件的路径看起来像 https://开头MYSITE。 file.core.windows.net/notes/txt.pdf

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:

推荐答案

这是预期的行为。请注意,这允许存储在文件存储的文件没有匿名访问。访问需要授权。既然你试图未经授权访问资源,你得到这个错误。

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.

授权访问的一种方法是与共享访问签名(SAS) $ C>许可,然后再使用SAS URL访问该文件。

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.

这篇关于不能访问Windows Azure的文件存储文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆