copy and deploy Azure logic apps from Subscription A to Subscription B using powershell

Muley, Gaurav 0 Reputation points
2023-08-09T12:28:45.3233333+00:00

I would like to copy and deploy Azure logic apps from Subscription A to Subscription B.

I have followed below steps

  1. Export logic app template from Subscription A and save the template file
  2. edit the template and update resource group and subscription id
  3. Execute az deployment group create --subscription XXXX -resource-group XXXX --parameters para_file -template-file template_address

The above approach is working as expected for basic logic apps. I am facing the problems when a logic app has resources attached to it for example blob storage , subscription plan.

how can I ensure that the logic app template is dynamic and it is able to create the resources in the target subscription ( Subscription B ) dynamically. it looks like I would need to edit template file manually before the deployment.

Is there any easy way to copy and deploy logic apps to a new subscription and a new resource group along with its dependencies without manaully modifying the template ?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,449 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,908 questions
{count} votes

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.