【问题标题】:Azure storage account is not mounted but says it isAzure 存储帐户未安装,但表示已安装
【发布时间】:2020-02-06 18:15:11
【问题描述】:

我使用本指南将 Azure 存储帐户安装到 Azure 应用服务:https://azure.github.io/AppService/2018/09/24/Announcing-Bring-your-own-Storage-to-App-Service.html

当我使用控制台命令时,它会添加一个配置,一切似乎都正常。它甚至说"state":"ok",但是当我查看我的应用服务时,似乎安装不存在。

我将文件上传到文件共享容器中:

但我在安装位置看不到它:

我尝试使用不同的文件路径进行挂载。像D:\home\test 等。这一切似乎都不起作用。顺便说一句,我正在使用 Windows 类型的应用服务。

我怎样才能让它工作?

【问题讨论】:

标签: windows azure azure-storage azure-app-service-envrmnt mount-point


【解决方案1】:

@Ivan Ignatiev 是正确的。目前 azure 文件挂载仅支持Windows Containers Web AppsApp Service on Linux,您可以按照此article 进行操作。或者您可以通过如下所示的 azure 门户 UI 进行操作:

对于不在 linux 或 windows 容器上的 web 应用程序,您应该分别使用 azure file rest apisdk

【讨论】:

  • 确实你是对的,我没有看到它说的是 windows container。新手很难看出区别。因此,为了补充您的答案,有几种应用服务。首先,您可以在发布方法之间进行选择,然后在 windows 和 linux 之间进行选择。所以有windows、linux、windows container、linux container。这些容器基于 docker,并为您提供使用自己定制的环境。如果您不需要花哨的定制,您可以使用预定义的环境。只有预定义的windows环境不支持文件挂载。
猜你喜欢
  • 1970-01-01
  • 2021-12-06
  • 2021-04-11
  • 1970-01-01
  • 2023-03-24
  • 2021-08-21
  • 2014-10-20
  • 2010-12-29
  • 2021-05-11
相关资源
最近更新 更多