Call another Function in Functio App

Bombbe 1,441 Reputation points
2021-12-30T11:35:39.247+00:00

Hi,
I would want to create Function app that has several Functions in it, one main Function and then several side Functions that can be called from main function. This way I can keep my code separated and clean and if needed I can even call side Functions without executing main function

As example

  1. Main function that collects every server from Subscription
  2. Side function turn off the servers
  3. Side Function that start servers
  4. write all data to Azure storage

I have not found docs or blogs (Microsoft or 3rd party blogs) how I can call side Functions in same Funktion app using PowerShell. Would somebody have reference to this subject?

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

Accepted answer
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2021-12-31T08:45:37.647+00:00

    @Bombbe ,

    Thanks for reaching out to Q&A.

    Powershell durable functions would suit your requirement. Please go through the Orchestrator, sub-orchestrator and activity functions explained below. Also choose the appropriate function pattern.

    Powershell durable function : https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-powershell-vscode

    Durable function types : https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-types-features-overview

    Durable function patterns : https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#application-patterns

    I hope this helps!

    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

0 additional answers

Sort by: Most helpful

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.