Proposed Pull Request Change

title description services ms.suite ms.reviewer ms.topic ms.date ms.custom
Connect to On-premises File Systems Learn how to connect to on-premises file systems from workflows in Azure Logic Apps by using the File System connector. logic-apps integration estfan, azla how-to 06/19/2025 sfi-image-nochange
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Connect to On-premises File Systems description: Learn how to connect to on-premises file systems from workflows in Azure Logic Apps by using the File System connector. services: logic-apps ms.suite: integration ms.reviewer: estfan, azla ms.topic: how-to ms.date: 06/19/2025 ms.custom: sfi-image-nochange --- # Connect to on-premises file systems from workflows in Azure Logic Apps [!INCLUDE [logic-apps-sku-consumption-standard](../../includes/logic-apps-sku-consumption-standard.md)] This guide shows how to access an on-premises file share from a workflow in Azure Logic Apps by using the File System connector. You can then create automated workflows that run when triggered by events in your file share or in other systems, and run actions to manage your files. The connector provides the following capabilities: - Create, get, append, update, and delete files. - List files in folders or root folders. - Get file content and metadata. In this how-to guide, the example scenarios demonstrate the following tasks: - Trigger a workflow when a file is created or added to a file share, and then send an email. - Trigger a workflow when copying a file from a Dropbox account to a file share, and then send an email. ## Limitations and known issues - The File System connector currently supports only Windows file systems on Windows operating systems. - Mapped network drives aren't supported. ## Connector technical reference The File System connector has different versions, based on [logic app type and host environment](../logic-apps/logic-apps-overview.md#resource-environment-differences). | Logic app | Environment | Connector version | |-----------|-------------|-------------------| | **Consumption** | Multitenant Azure Logic Apps | Managed connector, which appears in the connector gallery under **Shared**. For more information, review the following documentation: <br><br>- [File System managed connector reference](/connectors/filesystem/) <br>- [Managed connectors in Azure Logic Apps](../connectors/managed.md) | | **Standard** | Single-tenant Azure Logic Apps and App Service Environment v3 (Windows plans only) | Managed connector, which appears in the connector gallery under **Shared**, and built-in connector, which appears in the connector gallery under **Built-In** and is [service provider-based](../logic-apps/custom-connector-overview.md#service-provider-interface-implementation). The built-in connector differs in the following ways: <br><br>- The built-in connector supports only Standard logic apps that run in an App Service Environment v3 with Windows plans only. <br><br>- The built-in version can connect directly to a file share and access Azure virtual networks by using a connection string without an on-premises data gateway. <br><br>For more information, review the following documentation: <br><br>- [File System managed connector reference](/connectors/filesystem/) <br>- [File System built-in connector reference](/azure/logic-apps/connectors/built-in/reference/filesystem/) <br>- [Built-in connectors in Azure Logic Apps](../connectors/built-in.md) | ## Prerequisites * An Azure account and subscription. If you don't have an Azure subscription, [sign up for a free Azure account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn). * To connect to your file share, different requirements apply, based on your logic app and the hosting environment: - Consumption logic app workflows: - In multitenant Azure Logic Apps, you need to meet the following requirements, if you haven't already: 1. [Install an on-premises data gateway on a local computer](../logic-apps/logic-apps-gateway-install.md). The **File System** managed connector requires that your gateway installation and file system server must exist in the same Windows domain. 1. [Connect to on-premises data sources from Azure Logic Apps](../logic-apps/connect-on-premises-data-sources.md). 1. In the **File System** operation that you added, select the data gateway resource that you previously created. - Standard logic app workflows: You can use the **File System** built-in connector or managed connector. * To use the **File System** managed connector, follow the same requirements as a Consumption logic app workflow in multitenant Azure Logic Apps. * To use the **File System** built-in connector, your Standard logic app workflow must run in App Service Environment v3, but doesn't require the data gateway resource. * Access to the computer that has the file system you want to use. For example, if you install the data gateway on the same computer as your file system, you need the account credentials for that computer. * To follow the example scenario in this guide, you need an email account from a provider that's supported by Azure Logic Apps, such as Office 365 Outlook, Outlook.com, or Gmail. For other providers, [review other supported email connectors](/connectors/connector-reference/connector-reference-logicapps-connectors). This example uses the **Office 365 Outlook** connector with a work or school account. If you use another email account, the overall steps are the same, but your UI might slightly differ. > [!IMPORTANT] > > If you want to use the Gmail connector, only G-Suite business accounts can use this connector without restriction in logic apps. > If you have a Gmail consumer account, you can use this connector only with specific Google-approved services, or you can > [create a Google client app to use for authentication with your Gmail connector](/connectors/gmail/#authentication-and-bring-your-own-application). > For more information, see [Data security and privacy policies for Google connectors in Azure Logic Apps](../connectors/connectors-google-data-security-privacy-policy.md). * For the example **File System** action scenario, you need a [Dropbox account](https://www.dropbox.com/). You can sign up for free. * The logic app resource with the workflow where you want to access your file share. To start your workflow with a **File System** trigger, you need to have a blank workflow. To use a **File System** action, your workflow can start with any trigger that best fits your scenario. If you don't have a logic app resource and workflow, see the following articles: * [Create an example Consumption logic app workflow](../logic-apps/quickstart-create-example-consumption-workflow.md) * [Create an example Standard logic app workflow](../logic-apps/create-single-tenant-workflows-azure-portal.md) <a name="add-file-system-trigger"></a> ## Add a File System trigger ### [Consumption](#tab/consumption) 1. In the [Azure portal](https://portal.azure.com), open your Consumption logic app resource. 1. On the resource sidebar menus, under **Development Tools**, select the designer to open your blank workflow. 1. Add the **File System** trigger that you want for your scenario by following the [general steps to add a trigger](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=consumption#add-trigger). For more information, see [File System triggers](/connectors/filesystem/#triggers). This example continues with the trigger named **When a file is created**. 1. In the connection information box, provide the following information as required: | Property | Required | Value | Description | |----------|----------|-------|-------------| | **Connection name** | Yes | <*connection-name*> | The name to use for your connection | | **Root folder** | Yes | <*root-folder-name*> | The root folder for your file system, which is usually the main parent folder and is the folder used for the relative paths with all triggers that work on files. <br><br>For example, if you installed the on-premises data gateway, use the local folder on the computer with the data gateway installation. Or, use the folder for the network share where the computer can access that folder, for example, `\PublicShare\MyFileSystem`. | | **Authentication Type** | No | <*auth-type*> | The type of authentication that your file system server uses, which is **Windows** | | **Username** | Yes | <*domain-and-username*> | The domain and username for the computer where you have your file system. <br><br>For the managed File System connector, use one of the following values with the backslash (**`\`**): <br><br>- **<*domain*>\\<*username*>** <br>- **<*local-computer*>\\<*username*>** <br><br>For example, if your file system folder is on the same computer as the on-premises data gateway installation, you can use **<*local-computer*>\\<*username*>**. | | **Password** | Yes | <*password*> | The password for the computer where you have your file system | | **Gateway** | No | - <*Azure-subscription*> <br><br>- <*gateway-resource-name*> | This section applies only to the managed File System connector: <br><br>- **Subscription**: The Azure subscription associated with the data gateway resource <br>- **Connection Gateway**: The data gateway resource | The following example shows the connection information for the **File System** managed connector trigger: :::image type="content" source="media/file-system/file-system-connection-consumption.png" alt-text="Screenshot showing Consumption workflow designer and connection information for File System managed connector trigger." lightbox="media/file-system/file-system-connection-consumption.png"::: 1. When you're done, select **Create new**. Azure Logic Apps creates and tests your connection, making sure that the connection works properly. If the connection is set up correctly, the setup options appear for your selected trigger. 1. Continue building your workflow. 1. Provide the required information for your trigger. For this example, select the folder path on your file system server to check for a newly created file. Specify the number of files to return and how often you want to check. :::image type="content" source="media/file-system/trigger-file-system-when-file-created-consumption.png" alt-text="Screenshot showing Consumption workflow designer and the trigger named When a file is created." lightbox="media/file-system/trigger-file-system-when-file-created-consumption.png"::: 1. To test your workflow, add an Outlook connector action that sends you an email when a file is created on the file system in specified folder. Enter the email recipients, subject, and body. For testing, you can use your own email address. :::image type="content" source="media/file-system/trigger-file-system-send-email-consumption.png" alt-text="Screenshot showing Consumption workflow designer, managed connector trigger named When a file is created, and action named Send an email." lightbox="media/file-system/trigger-file-system-send-email-consumption.png"::: > [!TIP] > > To add outputs from previous steps in the workflow, select inside the trigger's edit boxes. > When the dynamic content list appears, select from the available outputs. 1. When you're done, save your workflow. 1. To test your workflow, upload a file, which triggers the workflow. If successful, your workflow sends an email about the new file. ### [Standard](#tab/standard) #### Built-in connector trigger The following steps apply only to Standard logic app workflows in an App Service Environment v3 with Windows plans only. 1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource. 1. On the resource sidebar menu, under **Workflows**, select **Workflows**, and then select your blank workflow. 1. On the workflow sidebar menu, under **Tools**, select the designer to open your blank workflow. 1. Add the **File System** built-in trigger that you want for your scenario by following the [general steps to add a trigger](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-trigger). For more information, see [File System triggers](/azure/logic-apps/connectors/built-in/reference/filesystem/#triggers). This example continues with the trigger named **When a file is added**. 1. In the connection information box, provide the following information as required: | Property | Required | Value | Description | |----------|----------|-------|-------------| | **Connection name** | Yes | <*connection-name*> | The name to use for your connection | | **Root folder** | Yes | <*root-folder-name*> | The root folder for your file system, which is usually the main parent folder and is the folder used for the relative paths with all triggers that work on files. <br><br>For example, if you installed the on-premises data gateway, use the local folder on the computer with the data gateway installation. Or, use the folder for the network share where the computer can access that folder, for example, `\PublicShare\MyFileSystem`. | | **Username** | Yes | <*domain-and-username*> | The domain and username for the computer where you have your file system. <br><br>For the managed File System connector, use one of the following values with the backslash (**`\`**): <br><br>- **<*domain*>\\<*username*>** <br>- **<*local-computer*>\\<*username*>** | | **Password** | Yes | <*password*> | The password for the computer where you have your file system | The following example shows the connection information for the File System built-in connector trigger: :::image type="content" source="media/file-system/trigger-file-system-connection-built-in-standard.png" alt-text="Screenshot showing Standard workflow designer and connection information for File System built-in connector trigger." lightbox="media/file-system/trigger-file-system-connection-built-in-standard.png"::: 1. When you're done, select **Create new**. Azure Logic Apps creates and tests your connection, making sure that the connection works properly. If the connection is set up correctly, the setup options appear for your selected trigger. 1. Continue building your workflow. 1. Provide the required information for your trigger. For this example, select the folder path on your file system server to check for a newly added file. Specify how often you want to check. :::image type="content" source="media/file-system/trigger-when-file-added-built-in-standard.png" alt-text="Screenshot showing Standard workflow designer and information for the trigger named When a file is added."::: 1. To test your workflow, add an Outlook action that sends you an email when a file is added to the file system in specified folder. Enter the email recipients, subject, and body. For testing, you can use your own email address. :::image type="content" source="media/file-system/trigger-send-email-built-in-standard.png" alt-text="Screenshot showing Standard workflow designer, managed connector trigger named When a file is added, and action named Send an email." lightbox="media/file-system/trigger-send-email-built-in-standard.png"::: > [!TIP] > > To add outputs from previous steps in the workflow, select inside the trigger's edit boxes. > After the dynamic content list and expression editor options appear, select the dynamic content > list (lightning icon). When the dynamic content list appears, select from the available outputs. 1. When you're done, save your workflow. 1. To test your workflow, upload a file, which triggers the workflow. If successful, your workflow sends an email about the new file. #### Managed connector trigger 1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource. 1. On the resource sidebar menu, under **Workflows**, select **Workflows**, and select your blank workflow. 1. On the workflow sidebar menu, under **Tools**, select the designer to open your blank workflow. 1. Add the **File System** managed connector trigger by following the [general steps to add a trigger](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-trigger). For more information, see [File System triggers](/connectors/filesystem/#triggers). This example continues with the trigger named **When a file is created**. 1. In the connection information box, provide the following information as required: | Property | Required | Value | Description | |----------|----------|-------|-------------| | **Connection name** | Yes | <*connection-name*> | The name to use for your connection | | **Root folder** | Yes | <*root-folder-name*> | The root folder for your file system, which is usually the main parent folder and is the folder used for the relative paths with all triggers that work on files. <br><br>For example, if you installed the on-premises data gateway, use the local folder on the computer with the data gateway installation. Or, use the folder for the network share where the computer can access that folder, for example, `\PublicShare\MyFileSystem`. | | **Authentication Type** | No | <*auth-type*> | The type of authentication that your file system server uses, which is **Windows** | | **Username** | Yes | <*domain-and-username*> | The domain and username for the computer where you have your file system. <br><br>For the managed File System connector, use one of the following values with the backslash (**`\`**): <br><br>- **<*domain*>\\<*username*>** <br>- **<*local-computer*>\\<*username*>** <br><br>For example, if your file system folder is on the same computer as the on-premises data gateway installation, you can use **<*local-computer*>\\<*username*>**. | | **Password** | Yes | <*password*> | The password for the computer where you have your file system | | **gateway** | No | - <*Azure-subscription*> <br>- <*gateway-resource-name*> | This section applies only to the managed File System connector: <br><br>- **Subscription**: The Azure subscription associated with the data gateway resource <br>- **Connection Gateway**: The data gateway resource | The following example shows the connection information for the File System managed connector trigger: :::image type="content" source="media/file-system/trigger-file-system-connection-managed-standard.png" alt-text="Screenshot showing Standard workflow designer and connection information for File System managed connector trigger." lightbox="media/file-system/trigger-file-system-connection-managed-standard.png"::: 1. When you're done, select **Create**. Azure Logic Apps creates and tests your connection, making sure that the connection works properly. If the connection is set up correctly, the setup options appear for your selected trigger. 1. Continue building your workflow. 1. Provide the required information for your trigger. For this example, select the folder path on your file system server to check for a newly created file. Specify the number of files to return and how often you want to check. :::image type="content" source="media/file-system/trigger-when-file-created-managed-standard.png" alt-text="Screenshot showing Standard workflow designer and managed connector trigger named When a file is created." lightbox="media/file-system/trigger-when-file-created-managed-standard.png"::: 1. To test your workflow, add an Outlook action that sends you an email when a file is created on the file system in specified folder. Enter the email recipients, subject, and body. For testing, you can use your own email address. :::image type="content" source="media/file-system/trigger-send-email-managed-standard.png" alt-text="Screenshot showing Standard workflow designer, managed connector trigger named When a file is created, and action named Send an email." lightbox="media/file-system/trigger-send-email-managed-standard.png"::: > [!TIP] > > To add outputs from previous steps in the workflow, select inside the trigger's edit boxes. > After the dynamic content list and expression editor options appear, select the dynamic content > list (lightning icon). When the dynamic content list appears, select from the available outputs. 1. When you're done, save your workflow. 1. To test your workflow, upload a file, which triggers the workflow. If successful, your workflow sends an email about the new file. --- <a name="add-file-system-action"></a> ## Add a File System action The example logic app workflow starts with the [Dropbox trigger](/connectors/dropbox/#triggers), but you can use any trigger that you want. ### [Consumption](#tab/consumption) 1. In the [Azure portal](https://portal.azure.com), open your Consumption logic app resource. 1. On the resource sidebar menu, under **Development Tools**, select the designer to open your workflow. 1. Add the **File System** action that you want for your scenario by following the [general steps to add an action](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=consumption#add-action). For more information, see [File System triggers](/connectors/filesystem/#actions). This example continues with the action named **Create file**. 1. If prompted, provide your connection information. For more information, see the table in the previous section. 1. Continue building your workflow. 1. Provide the required information for your action. For this example, select the folder path on your file system server to use, which is the root folder here. Enter the file name and content, based on the file uploaded to Dropbox. :::image type="content" source="media/file-system/action-file-system-create-file-consumption.png" alt-text="Screenshot showing Consumption workflow designer and the File System managed connector action named Create file."::: > [!TIP] > > To add outputs from previous steps in the workflow, select inside the action's edit boxes. > When the dynamic content list appears, select from the available outputs. 1. To test your workflow, add an Outlook action that sends you an email when the File System action creates a file. Enter the email recipients, subject, and body. For testing, you can use your own email address. :::image type="content" source="media/file-system/trigger-file-system-send-email-consumption.png" alt-text="Screenshot showing Consumption workflow designer, managed connector Create file action, and Send an email action." lightbox="media/file-system/trigger-file-system-send-email-consumption.png"::: 1. When you're done, save your workflow. 1. To test your workflow, upload a file, which triggers the workflow. If successful, your workflow creates a file on your file system server, based on the uploaded file in DropBox, and sends an email about the created file. ### [Standard](#tab/standard) #### Built-in connector action These steps apply only to Standard logic apps in an App Service Environment v3 with Windows plans only. 1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource. 1. On the resource sidebar menu, under **Workflows**, select **Workflows**, and then select your workflow. 1. On the workflow sidebar menu, under **Tools**, select the designer to open your workflow. 1. Add the **File System** built-in action that you want for your scenario by following the [general steps to add an action](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-action). For more information, see [File System actions](/azure/logic-apps/connectors/built-in/reference/filesystem/#actions). This example continues with the action named **Create file**. 1. If prompted, provide your connection information. For more information, see the table in the [Built-in connector trigger](#built-in-connector-trigger) section. 1. Continue building your workflow. 1. Provide the required information for your action. For this example, follow these steps: 1. Enter path and name for the file that you want to create, including the file name extension. Make sure the path is relative to the root folder. 1. To specify the content from the file created on Dropbox, from the **Add a parameter** list, select **File content**. 1. After the **File content** parameter appears on the action information pane, select inside the parameter's edit box. 1. After the dynamic content list and expression editor options appear, select the dynamic content list (lightning icon). From the list that appears, under the **When a file is created** trigger section, select **File Content**. When you're done, the **File Content** trigger output appears in the **File content** parameter: :::image type="content" source="media/file-system/action-file-system-create-file-built-in-standard.png" alt-text="Screenshot showing Standard workflow designer and the File System built-in connector Create file action." lightbox="media/file-system/action-file-system-create-file-built-in-standard.png"::: 1. To test your workflow, add an Outlook action that sends you an email when the File System action creates a file. Enter the email recipients, subject, and body. For testing, you can use your own email address. :::image type="content" source="media/file-system/action-file-system-send-email-built-in-standard.png" alt-text="Screenshot showing Standard workflow designer, built-in connector Create file action, and Send an email action." lightbox="media/file-system/action-file-system-send-email-built-in-standard.png"::: 1. When you're done, save your workflow. 1. To test your workflow, upload a file, which triggers the workflow. If successful, your workflow creates a file on your file system server, based on the uploaded file in DropBox, and sends an email about the created file. #### Managed connector action 1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource. 1. On the resource sidebar menu, under **Development Tools**, select the designer to open your workflow. 1. Add the **File System** managed connector action that you want for your scenario by following the [general steps to add an action](../logic-apps/create-workflow-with-trigger-or-action.md?tabs=standard#add-action). For more information, see [File System actions](/connectors/filesystem/#actions). This example continues with the action named **Create file**. 1. If prompted, provide your connection information. For more information, see the table in the [Managed connector trigger](#managed-connector-trigger) section. 1. Continue building your workflow. 1. Provide the required information for your action. For this example, follow these steps: 1. Enter path and name for the file that you want to create, including the file name extension. Make sure the path is relative to the root folder. 1. To specify the content from the file created on Dropbox, from the **Add a parameter** list, select **File content**. 1. After the **File content** parameter appears on the action information pane, select inside the parameter's edit box. 1. After the dynamic content list and expression editor options appear, select the dynamic content list (lightning icon). From the list that appears, under the **When a file is created** trigger section, select **File Content**. When you're done, the **File Content** trigger output appears in the **File content** parameter: :::image type="content" source="media/file-system/action-file-system-create-file-managed-standard.png" alt-text="Screenshot showing Standard workflow designer and the File System managed connector Create file action." lightbox="media/file-system/action-file-system-create-file-managed-standard.png"::: 1. To test your workflow, add an Outlook action that sends you an email when the File System action creates a file. Enter the email recipients, subject, and body. For testing, you can use your own email address. :::image type="content" source="media/file-system/action-file-system-send-email-managed-standard.png" alt-text="Screenshot showing Standard workflow designer, managed connector Create file action, and Send an email action." lightbox="media/file-system/action-file-system-send-email-managed-standard.png"::: 1. When you're done, save your workflow. 1. To test your workflow, upload a file, which triggers the workflow. If successful, your workflow creates a file on your file system server, based on the uploaded file in DropBox, and sends an email about the created file. --- ## Related content * [Managed connectors for Azure Logic Apps](/connectors/connector-reference/connector-reference-logicapps-connectors) * [Built-in connectors for Azure Logic Apps](../connectors/built-in.md)
Success! Branch created successfully. Create Pull Request on GitHub
Error: