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.
best way to automate workflow in azure
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 Automation
2 answers
Sort by: Most helpful
-
Andrew Blumhardt 10,051 Reputation points Microsoft Employee
2022-08-22T04:59:40.9+00:00 -
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 :
- Azure LogicApps checks the new file, and if it exists - run a first script in Azure Functions or Azure Automation Account
- If the script1 is completed successfully, trigger a second script in Azure Automation or Azure Functions via a webhook with required inputes
- Scale the flow as needed