
Hello Everyone and Welcome again to the series of Automation in Azure Cloud this time we will see how we can use switch case in the Logic app.
As previously we have seen the other usage of Azure Logic App.
As we know developers need to deal with the conditions in programming and one of the most widely use of
Switch cases were adopted.
Steps for Switch Case Execution
Let’s, first create a Logic App which shows the cases of switch, for beginners to make the Logic App, please follow the References Links below.
- Here is the workflow of Logic app :

- Here is the continuation of the Logic App workflow, we are adding the
“Parse JSON” action and uploading the schema of our JSON file

- In the last step of the Logic App Workflow, we used the Switch Case for the trigger in parallel
execution.


- After. triggering the Logic app through GitHub like in our previous blogs, the result shows one of the Switch cases
executed :


- In our ADO pipeline, we were able to execute our pipelines based on the cases which we have written in the Logic App Workflow :




Summary of using Switch Case in Logic
So from the above steps, we have showcased the workflow which can trigger the ADO pipelines
through the Switch case. This helps us to execute the services of Azure through the Logic app parallel
which makes the execution faster and less time-consuming.
References
Check out the previous blogs: