Sugar Bowl
Sugar Bowl

Reputation: 1792

Azure Isolated Timer Trigger Function not working after deployment to Azure

I am new to Azure and Functions, so please bear with me.

I have a timer trigger isolated .Net 5 function. It does some CRUD operations against SQL database. It works fine locally when tested in Visual Studio 2019. However, when it is deployed into Azure, the trigger isn't invoked. It has Serilog for logging and I see no logging added to the files.

Using postman, I make a post request to the function. I can see the request count in the graph but nothing more than that.

Where can I see errors without turning on the application insights?

Thanks.

Upvotes: 0

Views: 1336

Answers (2)

Md. Sabbir Ahamed
Md. Sabbir Ahamed

Reputation: 485

In my case, I just update the project.csproj with following

<PublishReadyToRun>true</PublishReadyToRun>

<RuntimeIdentifier>win-x86</RuntimeIdentifier>

After deploying and restart again I see functions are available

Can checkout the following docs

https://learn.microsoft.com/en-us/answers/questions/1300902/cannot-get-my-net-6-isolated-function-app-on-a-lin

https://learn.microsoft.com/en-us/azure/azure-functions/functions-dotnet-class-library?tabs=v4%2Ccmd#functions-class-library-project

Upvotes: 0

AjayKumarGhose
AjayKumarGhose

Reputation: 4883

Where can I see errors without turning on the application insights?

Finally i concluded ,that You can use Kudu console to see your logs for your application. To get kudu console go to APP service>Advanced Tools >Go

enter image description here

After click on go it will redirect to Kudu homepage like this

enter image description here

From here you can choose debug console (cmd) to download and see your logs

enter image description here

For more information please refer this MS Q&A discussion Azure Function Time Trigger not Firing .

Upvotes: 3

Related Questions