Azure Functions App with Multiple Functions

Jianfeng Bao 1 Reputation point
2020-08-25T14:40:14.147+00:00

I have created a Functions App and two functions inside it. I configured blob trigger as input for each of the function. I tested uploading files to the containers which I configured as blob trigger. Then when I open log window under "Code + Test", I can see both functions show the log for both uploaded files.

Does this mean each function will also execute even if the trigger is from other storage connection? Or it's just the log is not separated. I have attached a screenshot for reference.
20209-function-trigger-log.png

From the screenshot, we can see both executions were shown.

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

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,526 Reputation points
    2020-08-25T15:28:03.493+00:00

    Hi @Jianfeng Bao

    When you navigate to "Code + Test" and click on Run then it will connect to the log streaming service and the live data is displayed in the streaming window.
    All functions that you create are connected to the same streaming service that you have configured at the function app. Please refer to the function monitoring. The live logs will be displayed in all the streaming service windows i.e. different functions that you have open in different tabs where you are already connected.

    20267-image.png

    If you look into your screenshot attached then you will see the different function name, execution time with the different container, and blob name.
    The blob triggered function will only be triggered for the configured storage account.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. sadomovalex 3,631 Reputation points
    2020-08-25T15:30:22.617+00:00

    hello, each function monitors own blob storage which is configured in AF binding (connection string + path). Log under Code + Test is given from log stream which is shared within function app.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.