best way to automate workflow in azure

Azure-learning 56 Reputation points
2022-08-22T04:55:11.13+00:00

I have to develop a process in azure which has step by step flow for patching process. first script is taking backup ,next script is scheduling and deploying patchs to azure vm . what is the best way I can keep and run all these script in one place and run step by step.

example - logic app or automation account , what is the suggested way to achieve this.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,543 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andrew Blumhardt 10,051 Reputation points Microsoft Employee
    2022-08-22T04:59:40.9+00:00

    This sounds like a job for Azure Automation Runbooks. These seem to map better to traditional batch and PowerShell automation. A Logic App or Azure Function may also be an option. I find that logic apps and functions work best when the primary goal is system integration. It probably depends on the tool that you and your organization are more likely to use regularly.


  2. Maxim Sergeev 6,586 Reputation points Microsoft Employee
    2022-08-22T23:52:30.427+00:00

    Hi @NGaur-3476,

    Azure Functions (Powershell-based), Azure Automation Account - this is a most right toolset to achieve that.
    Both of them support PowerShell natively, support Webhooks that could include all required input as parameters.

    If your trigger is a new file in a storage account, I would recommend to use a mix of services :

    1. Azure LogicApps checks the new file, and if it exists - run a first script in Azure Functions or Azure Automation Account
    2. If the script1 is completed successfully, trigger a second script in Azure Automation or Azure Functions via a webhook with required inputes
    3. Scale the flow as needed

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.