How to setup functions in azure portal after upgrade?

Stefania Grillo 25 Reputation points
2024-03-14T09:20:30.3233333+00:00

Hello, I have upgraded my project to .NET 7 (isolated process), Azure Functions from v3 to v4 and CosmosDB to latest version, I have tested everything locally and, after a long journey, is working well.

So, I deployed everything in our test env, upgrading each function in azure portal to v4 and .NET 7, but something is not going as expected, I can see few logs like this:

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.).

And I noticed a 404 error referred to an endpoint declared with HttpTrigger in an Azure Function, that, of course, locally is working properly.

Am I missing some settings? Do I have to change something in Azure DevOps where I handle the CI/CD?

Below I attached the screenshot of an example of pipeline I am using.
immagine

Could you please tell me if there is something else to check?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,200 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,335 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,476 Reputation points Microsoft Employee
    2024-03-17T22:14:49.4433333+00:00

    Hi @Stefania Grillo

    Based off the yaml in the screenshot above, you're publishing your zip file to the location where your deployment pipeline should pick it up from. I don't see your actual CD pipeline here. Make sure you have the AzureFunctionApp@2 task as illustrated in https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-azure-devops?tabs=csharp%2Cclassic&pivots=v2#deploy-your-app-1.