When I publish function code (Runtime version: 3.0.14287.0 (~3) to an App Service, everything appears to be running but I cannot see any invocation logs in the Monitor page of any functions in the portal - it's always blank. I have timer-triggered functions, which should show up.
I am using an ARM script to deploy a resource group that contains an App Service. The deployment consists of the following resources:
Microsoft.Insights/components
Microsoft.KeyVault/vaults
Microsoft.Storage/storageAccounts
Microsoft.Web/serverfarms
Microsoft.Web/sites
I can see the function traces in Application Insights using something like this query:
traces
| order by timestamp desc
| where message contains 'telemetry'
I don't know if it is related, but in the App Service Overview page, I do see the following warning:
Storage is not configured properly, Function scaling will be limited. Click to learn more.
I'm using the following App Service appsettings to connect it to App Insights:
APPINSIGHT_INSTRUMENTATIONKEY: <instrumentation key from app insights>
AzureWebJobsDashboard: <storage acct connect string>
AzureWebJobsStorage: <storage acct connect string>
FUNCTIONS_EXTENSION_VERSION ~3
FUNCTIONS_WORKER_RUNTIME dotnet
The storage account has the following objects, that were created automatically.
BLOB <name>-leases
BLOB azure-webjobs-hosts
BLOB azure-webjobs-secrets
QUEUES <name>-control-[00,01,02,03]
QUEUES <name>-workitems
TABLE <name>History
TABLE <name>Instances
TABLE AzureWebJobsHostLogs202008
TABLE AzureWebJobsHostLogscommon
Here's my hosts.json:
{
"version": "2.0",
"logging": {
"fileLoggingMode": "always",
"logLevel": {
"default": "Debug",
"Host.Results": "Error",
"Function": "Trace",
"Host.Aggregator": "Trace"
}
}
}
