{"id":438,"date":"2023-01-05T14:30:22","date_gmt":"2023-01-05T13:30:22","guid":{"rendered":"https:\/\/www.paalolav.no\/?p=438"},"modified":"2023-04-19T14:18:21","modified_gmt":"2023-04-19T12:18:21","slug":"moving-a-logic-app-to-a-new-tenant","status":"publish","type":"post","link":"https:\/\/www.paalolav.no\/?p=438","title":{"rendered":"Moving a Logic App [to a new tenant]"},"content":{"rendered":"\n<p>This happens quite a bit when recycling stuff.<\/p>\n\n\n\n<p>Since there&#8217;s not a nice way to export and import Logic Apps as packages (as far as I&#8217;m concerned, but feel free to enlighten me), but there&#8217;s still a quick workaround for this. Sort of.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><a href=\"https:\/\/www.paalolav.no\/wp-content\/uploads\/2023\/01\/Screenshot-2023-01-05-at-14.24.35.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.paalolav.no\/wp-content\/uploads\/2023\/01\/Screenshot-2023-01-05-at-14.24.35.png\" alt=\"\" class=\"wp-image-439\" width=\"318\" height=\"372\" srcset=\"https:\/\/www.paalolav.no\/wp-content\/uploads\/2023\/01\/Screenshot-2023-01-05-at-14.24.35.png 424w, https:\/\/www.paalolav.no\/wp-content\/uploads\/2023\/01\/Screenshot-2023-01-05-at-14.24.35-256x300.png 256w\" sizes=\"(max-width: 318px) 100vw, 318px\" \/><\/a><figcaption class=\"wp-element-caption\">Appropriate image from a Logic App<\/figcaption><\/figure>\n\n\n\n<p class=\"has-large-font-size\">Steps to success:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new Logic App in the destination environment.<\/li>\n\n\n\n<li>In the designer, add the equivalent connections as you&#8217;ve used in the source app (i.e. add a SharePoint action, an Automation action etc and connect to these &#8211; one of each is enough).<\/li>\n\n\n\n<li>Click Code View on the source app and select all the text from the top until  &#8220;parameters&#8221; at the bottom of the text editor, then copy the selected text. Example of where to stop below, from a project utilizing the SharePoint connector:<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code>\"parameters\": {\n        \"$connections\": {\n            \"value\": {\n                \"sharepointonline\": {\n                    \"connectionId\": \"\/subscriptions\/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\/resourceGroups\/RESOURCEGROUPNAME\/providers\/Microsoft.Web\/connections\/sharepointonline\",\n                    \"connectionName\": \"sharepointonline\",\n                    \"id\": \"\/subscriptions\/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\/providers\/Microsoft.Web\/locations\/norwayeast\/managedApis\/sharepointonline\"\n                }\n            }\n        }\n    }<\/code><\/pre>\n\n\n\n<p>5. Enter Code View on your destination app.<\/p>\n\n\n\n<p>6. Select all the text above <em>&#8220;parameters&#8221;: {<\/em> in the same manner as you did when copying. Paste and save.<\/p>\n\n\n\n<p class=\"has-large-font-size\">Voila!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This happens quite a bit when recycling stuff. Since there&#8217;s not a nice way to export and import Logic Apps as packages (as far as I&#8217;m concerned, but feel free to enlighten me), but there&#8217;s still a quick workaround for this. Sort of. Steps to success: 5. Enter Code View on your destination app. 6. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":439,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78],"tags":[81,79,80,82],"class_list":["post-438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-logic-apps","tag-azure","tag-logic-apps","tag-microsoft","tag-tips-tricks"],"_links":{"self":[{"href":"https:\/\/www.paalolav.no\/index.php?rest_route=\/wp\/v2\/posts\/438"}],"collection":[{"href":"https:\/\/www.paalolav.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paalolav.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paalolav.no\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paalolav.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=438"}],"version-history":[{"count":2,"href":"https:\/\/www.paalolav.no\/index.php?rest_route=\/wp\/v2\/posts\/438\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/www.paalolav.no\/index.php?rest_route=\/wp\/v2\/posts\/438\/revisions\/441"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.paalolav.no\/index.php?rest_route=\/wp\/v2\/media\/439"}],"wp:attachment":[{"href":"https:\/\/www.paalolav.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paalolav.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paalolav.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}