I am getting this below error when I am running my timer function app in Azure Cloud. It is just a basic code and I wanted the log to be shown in Insight.
public static class Function1
{
[FunctionName("Function1")]
public static void Run([TimerTrigger("0 * * * * *")]TimerInfo myTimer, ILogger log)
{
log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
}
}
Here is the workaround I did to identify this issue cause:
"0 * * * * *"
and the connection string given from the storage account created in Azure portal, which is running successfully (in local): 2. Deleted the Storage account from the Azure Portal and tried to run the function locally which gave me the error: The listener for function Function1 was unable to start.
Recovered the Storage Account and then deployed to the Azure Portal Function App and running successfully in cloud also:
In the Azure Cloud, Yes, as @Skin Said that it would be a Storage Account configuration issue.
Few of the steps to resolve this issue were:
AzureWebJobsStorage
value contains correct the correct storage account connection string.It was a firewall issue. Added the appropriate Virtual Network and Su.net under Storage Account > Networking > Firewalls and Virtual Network
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.