Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. I tried assigning value in the host.json file but still got this error.

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. For Blob Storage, please provide at least one of these. If you intend to use files for secrets, add an App Setting key 'AzureWebJobsSecretStorageType' with the value 'Files'.

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?

like image 219
xmfr3452 Avatar asked Nov 16 '25 17:11

xmfr3452


1 Answers

I had this issue moving from 3.1 to 6.0. I must have lost the AzureWebJobsStorage entry in my json file along the way and MS must have made the connection mandatory. I opened a new Function App and used the default values in my old codes settings an it worked. I have not got far enough to know if I will need some connection in the cloud yet, but I will find out soon

"Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "FUNCTIONS_WORKER_RUNTIME": "dotnet" }

like image 61
Eric Wild Avatar answered Nov 19 '25 06:11

Eric Wild



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!