我有一个同时具有Timer Trigger
和功能的 AzureService Bus Trigger
函数。在该 AF 的 Portal Azure 配置中,我有正确的存储帐户连接字符串AzureWebJobsStorage
。两种资源的 ARM 都没有变化,直到几天前一切正常。现在只有Service Bus Trigger
功能在工作,但不是Timer Trigger
。
将字符串连接到存储是 100% 正确的,我什至重新生成了访问密钥。
我找到了启动主机的日志:
2021-05-25T15:23:10.703 [Error] The listener for function 'XXX' was unable to start.
Microsoft.Azure.WebJobs.Host.Listeners.FunctionListenerException : The listener for function 'XXX' was unable to start. ---> System.InvalidOperationException : Could not create BlobServiceClient to obtain the BlobContainerClient using Connection: Storage
at Microsoft.Azure.WebJobs.Script.AzureStorageProvider.GetBlobContainerClient() at D:\a\1\s\src\WebJobs.Script\StorageProvider\AzureStorageProvider.cs : 69
at Microsoft.Azure.WebJobs.Extensions.Timers.AzureStorageScheduleMonitor.GetStatusBlobReference(String timerName) at D:\a\1\s\src\WebJobs.Script\Timer\AzureStorageScheduleMonitor.cs : 146
at async Microsoft.Azure.WebJobs.Extensions.Timers.AzureStorageScheduleMonitor.GetStatusAsync(String timerName)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Extensions.Timers.Listeners.TimerListener.StartAsync(CancellationToken cancellationToken) at C:\azure-webjobs-sdk-extensions\src\WebJobs.Extensions\Extensions\Timers\Listener\TimerListener.cs : 99
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Listeners.SingletonListener.StartAsync(CancellationToken cancellationToken) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Singleton\SingletonListener.cs : 70
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Microsoft.Azure.WebJobs.Host.Listeners.FunctionListener.StartAsync(??) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Listeners\FunctionListener.cs : 68
End of inner exception
我已经检查了诊断程序New Support Request -> Solutions
,一切正常。此外,当尝试使用与 Portal Azure 相同的配置从 Visual Studio 启动 AF 时,会出现相同的错误(但描述性较差)。
有什么问题?我还可以检查什么来找到这个问题的解决方案?