首页 > 解决方案 > 在 Web 应用程序中安装 azure 文件共享时,出现 InvalidCredentials 状态

问题描述

我在存储帐户中有文件共享设置。当我尝试在我的 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

标签: azureazure-web-app-service

解决方案


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

在此处输入图像描述

固定如下

在此处输入图像描述


推荐阅读