我有一个连接到 blob 容器的简单 blob 侦听器。侦听器(在 Azure 上)显示它正在运行,但未调用该函数。
这是来自控制台的日志。
Azure Functions Core Tools (3.0.2630 Commit hash: ......)
Function Runtime Version: 3.0.13901.0
[7/6/2020 5:24:04 PM] Building host: startup suppressed: 'False', configuration suppressed:
'False', startup operation id: '.........'
[7/6/2020 5:24:04 PM] Reading host configuration file '.....\host.json'
[7/6/2020 5:24:04 PM] Host configuration file read:
[7/6/2020 5:24:04 PM] {
[7/6/2020 5:24:04 PM] "version": "2.0",
[7/6/2020 5:24:04 PM] "logging": {
[7/6/2020 5:24:04 PM] "applicationInsights": {
[7/6/2020 5:24:04 PM] "samplingExcludedTypes": "Request",
[7/6/2020 5:24:04 PM] "samplingSettings": {
[7/6/2020 5:24:04 PM] "isEnabled": true
[7/6/2020 5:24:04 PM] }
[7/6/2020 5:24:04 PM] }
[7/6/2020 5:24:04 PM] }
[7/6/2020 5:24:04 PM] }
[7/6/2020 5:24:04 PM] Loading functions metadata
[7/6/2020 5:24:04 PM] Reading functions metadata
[7/6/2020 5:24:04 PM] 1 functions found
[7/6/2020 5:24:04 PM] 1 functions loaded
[7/6/2020 5:24:04 PM] Loading extensions from .....\netcoreapp3.1\bin. BundleConfigured: False,
PrecompiledFunctionApp: False, LegacyBundle: False
[7/6/2020 5:24:04 PM] Loading startup extension 'AzureStorage'
[7/6/2020 5:24:04 PM] Loaded extension 'AzureStorage' (3.0.10.0)
[7/6/2020 5:24:05 PM] Initializing Warmup Extension.
[7/6/2020 5:24:05 PM] Initializing Host. OperationId: '......'.
[7/6/2020 5:24:05 PM] Host initialization: ConsecutiveErrors=0, StartupCount=1,
OperationId=..........
[7/6/2020 5:24:05 PM] LoggerFilterOptions
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "MinLevel": "None",
[7/6/2020 5:24:05 PM] "Rules": [
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "ProviderName": null,
[7/6/2020 5:24:05 PM] "CategoryName": null,
[7/6/2020 5:24:05 PM] "LogLevel": null,
[7/6/2020 5:24:05 PM] "Filter": "<AddFilter>b__0"
[7/6/2020 5:24:05 PM] },
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "ProviderName":
"Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider",
[7/6/2020 5:24:05 PM] "CategoryName": null,
[7/6/2020 5:24:05 PM] "LogLevel": "None",
[7/6/2020 5:24:05 PM] "Filter": null
[7/6/2020 5:24:05 PM] },
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "ProviderName":
"Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider",
[7/6/2020 5:24:05 PM] "CategoryName": null,
[7/6/2020 5:24:05 PM] "LogLevel": null,
[7/6/2020 5:24:05 PM] "Filter": "<AddFilter>b__0"
[7/6/2020 5:24:05 PM] }
[7/6/2020 5:24:05 PM] ]
[7/6/2020 5:24:05 PM] }
[7/6/2020 5:24:05 PM] FunctionResultAggregatorOptions
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "BatchSize": 1000,
[7/6/2020 5:24:05 PM] "FlushTimeout": "00:00:30",
[7/6/2020 5:24:05 PM] "IsEnabled": true
[7/6/2020 5:24:05 PM] }
[7/6/2020 5:24:05 PM] SingletonOptions
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "LockPeriod": "00:00:15",
[7/6/2020 5:24:05 PM] "ListenerLockPeriod": "00:00:15",
[7/6/2020 5:24:05 PM] "LockAcquisitionTimeout": "10675199.02:48:05.4775807",
[7/6/2020 5:24:05 PM] "LockAcquisitionPollingInterval": "00:00:05",
[7/6/2020 5:24:05 PM] "ListenerLockRecoveryPollingInterval": "00:01:00"
[7/6/2020 5:24:05 PM] }
[7/6/2020 5:24:05 PM] QueuesOptions
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "BatchSize": 16,
[7/6/2020 5:24:05 PM] "NewBatchThreshold": 8,
[7/6/2020 5:24:05 PM] "MaxPollingInterval": "00:00:02",
[7/6/2020 5:24:05 PM] "MaxDequeueCount": 5,
[7/6/2020 5:24:05 PM] "VisibilityTimeout": "00:00:00"
[7/6/2020 5:24:05 PM] }
[7/6/2020 5:24:05 PM] BlobsOptions
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "CentralizedPoisonQueue": false
[7/6/2020 5:24:05 PM] }
[7/6/2020 5:24:05 PM] HttpOptions
[7/6/2020 5:24:05 PM] {
[7/6/2020 5:24:05 PM] "DynamicThrottlesEnabled": false,
[7/6/2020 5:24:05 PM] "MaxConcurrentRequests": -1,
[7/6/2020 5:24:05 PM] "MaxOutstandingRequests": -1,
[7/6/2020 5:24:05 PM] "RoutePrefix": "api"
[7/6/2020 5:24:05 PM] }
[7/6/2020 5:24:05 PM] Starting JobHost
[7/6/2020 5:24:05 PM] Starting Host (HostId=........., InstanceId=........., Version=3.0.13901.0,
ProcessId=14720, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False,
FunctionsExtensionVersion=(null))
[7/6/2020 5:24:05 PM] Loading functions metadata
[7/6/2020 5:24:05 PM] 1 functions loaded
[7/6/2020 5:24:06 PM] Generating 1 job function(s)
[7/6/2020 5:24:06 PM] Found the following functions:
[7/6/2020 5:24:06 PM] BlobStorageListener.BlobListener.Run
[7/6/2020 5:24:06 PM]
[7/6/2020 5:24:06 PM] Initializing function HTTP routes
[7/6/2020 5:24:06 PM] No HTTP routes mapped
[7/6/2020 5:24:06 PM]
[7/6/2020 5:24:06 PM] Host initialized (602ms)
[7/6/2020 5:24:06 PM] Host started (890ms)
[7/6/2020 5:24:06 PM] Job host started
Hosting environment: Production
Content root path: ........\bin\Debug\netcoreapp3.1
Now listening on: http://0.0.0.0:7071
Application started. Press Ctrl+C to shut down.
[7/6/2020 5:24:11 PM] Host lock lease acquired by instance ID '..........'.
即使我登录到 azure,查看已发布的应用程序并刷新,它告诉我它正在运行,但函数应用程序仍然没有被调用。
请问有人可以指导我有什么问题吗?