简体   繁体   English

由于缺少 Azure 存储连接字符串和 SAS 连接 uri,从 Blob 存储的秘密初始化失败

[英]Secret initialization from Blob storage failed due to missing both an Azure Storage connection string and a SAS connection uri

I am getting this error while configuring blob output binding for Azure function HTTP trigger in Visual Studio.我在为 Azure function Z293C9EA2466FF9985DC6F 触发器配置 Blob output 绑定时遇到此错误。 I tried assigning value in the host.json file but still got this error.我尝试在host.json文件中分配值,但仍然出现此错误。

Microsoft.Azure.WebJobs.Script.WebHost: Secret initialization from Blob storage failed due to missing both an Azure Storage connection string and a SAS connection URI. Microsoft.Azure.WebJobs.Script.WebHost:由于缺少 Azure 存储连接字符串和 SAS 连接,从 Blob 存储的秘密初始化失败For Blob Storage, please provide at least one of these.对于 Blob 存储,请至少提供其中一项。 If you intend to use files for secrets, add an App Setting key 'AzureWebJobsSecretStorageType' with the value 'Files'.如果您打算将文件用于机密,请添加值为“Files”的应用设置键“AzureWebJobsSecretStorageType”。

local.settings.json local.settings.json

{
  "IsEncrypted": false,

  "Values": {
    "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=.......",
    "APPINSIGHTS_INSTRUMENTATIONKEY": "f...........",
    "FUNCTIONS_EXTENSION_VERSION": "~2",
    "WEBSITE_NODE_DEFAULT_VERSION": "8.11.1",
    "WEBSITE_LOAD_CERTIFICATES": "*",
    "WEBSITE_RUN_FROM_PACKAGE": "1"
  },
  "version": "2.0"
}

Can anyone please help me with configuring blob output bindings for azure functions in visual studio?谁能帮我在Visual Studio中为azure函数配置blob output绑定?

Downgrade Microsoft.Azure.WebJobs.Extensions.Storage NuGet Package from 5.0.0.从 5.0.0 降级Microsoft.Azure.WebJobs.Extensions.Storage NuGet Package。 to 4.0.5到 4.0.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM