ストレージ アカウントのアクセス キーから接続文字列を使用し、それを関数アプリケーションの設定に入れることで、関数アプリを実行できます
ただし、ストレージ アカウントの Shared Access Signature メニューから SAS と接続文字列を生成し、関数アプリの設定でその接続文字列を使用すると、関数を実行できません。
私の SAS 接続文字列は次のとおりです。 .core.windows.net/;TableEndpoint=https://StorageAccountName.table.core.windows.net/;SharedAccessSignature=sv=2019-10-10&ss=bfqt&srt=sco&sp=rwdlacupx&se=2020-06-10T11:28:43Z&st =2020-06-10T03:28:43Z&spr=https,http&sig= {署名}
関数 Json
{
"generatedBy": "Microsoft.NET.Sdk.Functions-3.0.1",
"configurationSource": "attributes",
"bindings": [
{
"type": "blobTrigger",
"connection": "StorageAccountName",
"path": "containerName/{name}",
"name": "myBlob"
}
],
"disabled": false,
"scriptFile": "../bin/FunctionDemoBlobTrigger.dll",
"entryPoint": "BlobTriggerFunctionName.BlobTrigger.Run"
}
関数 URL にアクセスすると、「関数ホストが実行されていません」というエラーが発生します。
関数アプリをテスト モードで実行すると、'Status: 500 Internal Server Error' エラーが発生します。