azure - 在 Web 应用程序中安装 Azure 文件共享时,我收到 InvalidCredentials 状态

标签 azure azure-web-app-service

我在存储帐户中设置了文件共享。当我尝试将其安装到我的 Web 应用程序中时,我收到以下响应:

  "nexport-shared": {
    "accessKey": "hidden==",
    "accountName": "hidden",
    "mountPath": "\\\\nexportshared",
    "shareName": "nexportcampusbetashare",
    "state": "InvalidCredentials",
    "type": "AzureFiles"
  }

我正在使用下面的 az CLI 命令:

az webapp config storage-account add --resource-group "GROUPNAME" --name "WEBAPPNAME" --custom-id nexport-shared --storage-typeAzureFiles --share-name nexportcampusbetashare --account-name STORAGEACCOUNT --access-key "hidden==" --mount-path "\\nexportshared" --verbose --debug

当我运行“az webapp config list”时,它显示在列表中,但仍然带有 InvalidCredentials

最佳答案

可能的原因是您输入了无效的 key 或存储帐户来装载 Azure 文件。更正这些参数可以解决我的这个问题。

enter image description here

修正如下

enter image description here

关于azure - 在 Web 应用程序中安装 Azure 文件共享时,我收到 InvalidCredentials 状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59294747/

相关文章:

asp.net-mvc - Azure 应用服务授权/简易身份验证与 ASP.NET 表单例份验证冲突

azure - 通过 terraform 为 azure 存储设置 cors 规则

再次使用 Azure Function 和 CRON

c# - 即使为 Assembly 设置 MaxMessageSize 后,Fabric Message 仍然太大

azure - 如何从 Webjob 写入 Azure 网站?

Azure 应用服务 SSL 证书绑定(bind)未自动更新

azure - 单例 httpClient 到 AppService 的单个实例

jquery - Microsoft Azure 认知项目 Oxford Speech API 文本转语音 jQuery REST 示例

c# - 将日期提供给 Azure SQL DB

azure - 如何在 Windows azure 中修改网站的位置?