After migrating my Azure Function app project from .NET 6 .NET 8, I’m facing this problem
No job functions found. Try making your job classes and methods public. If you’re using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you’ve called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
Here is a screenshot of the problem
I tried everything as per the documentations. But I’m still facing that issue
2
Answers
This error or message occurs when the function definition is not right. You can use below code which runs correctly for .Net 8.
For Http trigger:
For, Service bus you can use
public async Task Run
.Make sure that you have set the function to public. Also in Program.cs is correctly configured like below:
Functions get detected as below:
In your local.settings.json
you need