本文介绍了Web应用无法访问已安装的存储帐户共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的Azure帐户中有一个名为"SmithsIntranet"的网络应用程序。该应用的公共网址为


smithsintranet.azurewebsites.net


 


  我已经安装了一个名为"data"的文件共享在我们的存储帐户中,如此处所述的网络应用程序 -


docs.microsoft.com/en-us/cli/azure/webapp/config/storage-account?view= azure-cli-latest#az-webapp-config-storage-account-add


 


az webapp config storage-account add -g Smiths -n SmithsIntranet -i Data -t AzureFiles -a smithsdata --share-name data -k my_access_key == --mount-path / data


 


据我所知,文件共享应该可以公开访问


smithsintranet.azurewebsites。 net / data /


我说错了吗?我在该共享中有一个文件 - mytest.txt。但是,当我尝试访问它时


smithsintranet.azurewebsites.net/data/mytest.txt


我收到404"未找到"错误。有什么问题?

解决方案



We have a web app in our Azure account called "SmithsIntranet". The public URL of the app is

smithsintranet.azurewebsites.net

 I have mounted a file share called "data" in our storage account to the web app as described here -

docs.microsoft.com/en-us/cli/azure/webapp/config/storage-account?view=azure-cli-latest#az-webapp-config-storage-account-add

az webapp config storage-account add -g Smiths -n SmithsIntranet -i Data -t AzureFiles -a smithsdata --share-name data -k my_access_key== --mount-path /data

As I understand the file share should be accessible publicly as

smithsintranet.azurewebsites.net/data/

Am I correct? I have a file in that share - mytest.txt. However, when I try to access it as

smithsintranet.azurewebsites.net/data/mytest.txt

I get a 404 "not found" error. What is the problem?

解决方案



这篇关于Web应用无法访问已安装的存储帐户共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 10:06
查看更多