|
| 1 | +--- |
| 2 | +title: Export Standard logic app workflows to Visual Studio Code |
| 3 | +description: Learn how to download your Standard logic app resource and workflows from the Azure portal into Visual Studio Code. |
| 4 | +author: ecfan |
| 5 | +services: logic-apps |
| 6 | +ms.suite: integration |
| 7 | +ms.reviewer: estfan, azla |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 12/19/2024 |
| 10 | +# As an Azure Logic Apps developer, I want to learn how to export my Standard logic app and workflows from the Azure portal into Visual Studio Code. |
| 11 | +--- |
| 12 | + |
| 13 | +# Export Standard logic app workflows from Azure portal to Visual Studio Code |
| 14 | + |
| 15 | +[!INCLUDE [logic-apps-sku-standard](../../../includes/logic-apps-sku-standard.md)] |
| 16 | + |
| 17 | +If you currently work on Standard logic app workflows using the Azure portal, you might find yourself wanting to use Visual Studio Code instead. When you switch to Visual Studio Code, you reap the following benefits: |
| 18 | + |
| 19 | +- More control over your development environment. |
| 20 | +- Expanded debugging and testing capabilities. |
| 21 | +- Effectively use version control with your app projects. |
| 22 | + |
| 23 | +This guide shows how to export your logic app as a zip file package from the portal. This package contains your logic app workflows, connections, host configuration, and app settings. You can then use this package to create a workspace for your logic app project files in Visual Studio Code. |
| 24 | + |
| 25 | +## Prerequisites |
| 26 | + |
| 27 | +* An Azure account and subscription. If you don't have an Azure subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F). |
| 28 | + |
| 29 | +* [Visual Studio Code and its prerequisites](/azure/logic-apps/create-single-tenant-workflows-visual-studio-code#prerequisites) |
| 30 | + |
| 31 | +* The Standard logic app and workflows that you want to export |
| 32 | + |
| 33 | +## Export logic app from portal |
| 34 | + |
| 35 | +1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource. |
| 36 | + |
| 37 | +1. On the logic app menu, select **Overview**. On the **Overview** page toolbar, select **Download app content**. |
| 38 | + |
| 39 | +1. When the confirmation message appears, select **Download**. |
| 40 | + |
| 41 | + The portal creates a zip file package named **<*logic-app-name*>.zip**. |
| 42 | + |
| 43 | +1. In the **Downloads** message box, select **Save as**, browse to the local folder that you want, and select **Save**. |
| 44 | + |
| 45 | +## Create workspace in Visual Studio Code |
| 46 | + |
| 47 | +1. In Visual Studio Code, follow these steps if you're not already set up: |
| 48 | + |
| 49 | + 1. [Set up Visual Studio Code](/azure/logic-apps/create-single-tenant-workflows-visual-studio-code#set-up-visual-studio-code). |
| 50 | + |
| 51 | + 1. [Connect to your Azure account](/azure/logic-apps/create-single-tenant-workflows-visual-studio-code#connect-to-your-azure-account). |
| 52 | + |
| 53 | +1. In the Azure window, on the **Workspace** toolbar, open the **Azure Logic Apps** menu, and select **Create new logic app workspace from package...**. |
| 54 | + |
| 55 | + The **Create New Logic App Workspace from Package** list opens and shows a prompt to select the zip file package that you want to import. |
| 56 | + |
| 57 | +1. From the opened list, select **Browse**. Find and select your downloaded zip file package. |
| 58 | + |
| 59 | + You now get a prompt to select the folder where you want to create your workspace. |
| 60 | + |
| 61 | +1. From the opened list, select **Browse**. Find and select the local repository folder where you want to create your workspace. |
| 62 | + |
| 63 | + You now get a prompt to enter workspace name. |
| 64 | + |
| 65 | +1. Provide a name to use for your workspace. |
| 66 | + |
| 67 | + You now get a prompt to enter a project name. |
| 68 | + |
| 69 | +1. Provide a name to use for your logic app project. |
| 70 | + |
| 71 | + You now get a prompt to open your project in the current Visual Studio Code window or a new window. |
| 72 | + |
| 73 | +1. Select the window where you want to open your project. |
| 74 | + |
| 75 | + If your workflows don't use any managed, Azure-hosted connectors, you get a prompt to choose if you want to include these connectors in the connector gallery when you search for operations to add. |
| 76 | + |
| 77 | +1. To include these Azure-hosted connectors, select **Use connectors from Azure**. |
| 78 | + |
| 79 | +1. At the prompt, select your Azure subscription and the resource group where you want to create any Azure-hosted connections during local development. |
| 80 | + |
| 81 | + When you finish, the Explorer window opens in Visual Studio Code and shows your created workspace with your logic app project, including all workflows, connection references, and relevant local app settings. |
| 82 | + |
| 83 | + > [!IMPORTANT] |
| 84 | + > |
| 85 | + > If you have any connections that use a managed identity for authentication, make sure |
| 86 | + > that you update these connections by following the steps in the created project's |
| 87 | + > **README.md** file, which automatically opens after workspace creation. These steps |
| 88 | + > describe how to update these connections. |
| 89 | +
|
| 90 | +## Related content |
| 91 | + |
| 92 | +- [Create Standard logic app workflow in single-tenant Azure Logic Apps using Visual Studio Code](/azure/logic-apps/create-single-tenant-workflows-visual-studio-code) |
0 commit comments