Azure Function deployed successfully but triggers not found

Santhosh 0 Reputation points
2024-04-25T10:55:02.8633333+00:00

Hi,

I'm building a function app which has 2 triggers, a blob trigger and a HTTP trigger. This runs fine while we debug this locally. However, when we try to deploy this to the function app, it says no triggers found

User's image

Below is my code for the triggers

User's image

This is my localsettings.json file

User's image

Initially there was a warning which mentioned that the function app had python 3.11 whereas the local vs was using 3.10. I updated the function app setting to 3.10 but that didnt help. Any help would be greatly appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,386 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,241 Reputation points Microsoft Employee
    2024-05-15T12:51:25.26+00:00

    Hi @Santhosh,

    When using the V2 programming model, functions_app.py is the entry point for the function app, see https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-python?tabs=asgi%2Capplication-level&pivots=python-mode-decorators#alternative-entry-point. It's used by the host to bind the triggers. You need to you have those trigger methods either defined or referenced in this file.

    0 comments No comments