Cloning Azure Logic Apps
You may have seen the Clone button found in the Logic App – Overview page for consumption-based logic apps. In this post we will discuss some scenarios that allow you to use this feature.
The Clone feature allows developers to create a copy of their logic app and create a new instance of it within the same subscription/resource group. This feature becomes particularly useful if you want to:
- Rename your logic app. Currently there is no way to rename your consumption logic app. Being able to clone your logic app and provide a new name allows you to maintain existing functionality while being able to provide a new name. We also can choose whether we want to have our logic app enabled or disabled when it is created.
- Maintaining multiple schedules. The logic apps recurrence trigger is pretty flexible, but there may be situations where you want to have the same logic run, but having more control over the scheduling aspects of your logic app. Building out your logic app and then cloning it allows you to re-use some functionality while only changing the trigger attributes.
Consider a situation where you want to run a logic app twice a day, once in the morning and once in the afternoon. You can create your initial logic app and set it to run once per day. You can also specify a start time of 4am. From there, you can clone your logic app and then change the start time to be 1pm.
The purpose of this post was to share some examples of how we can use the Clone feature within Azure Logic Apps (Consumption). We did learn about using it to rename a logic app and the ability to make copies of our configuration to accommodate different schedules.