Skip to content

Latest commit

 

History

History
139 lines (100 loc) · 6.04 KB

logic-apps-using-file-connector.md

File metadata and controls

139 lines (100 loc) · 6.04 KB
title description services ms.service ms.suite author ms.author ms.reviewer ms.topic ms.date
Connect to file systems on premises - Azure Logic Apps | Microsoft Docs
Automate tasks and workflows that connect to on-premises file systems with the File System connector through the on-premises data gateway in Azure Logic Apps
logic-apps
logic-apps
integration
derek1ee
deli
klam, estfan, LADocs
article
08/25/2018

Connect to on-premises file systems with Azure Logic Apps

With the File System connector and Azure Logic Apps, you can create automated tasks and workflows that create and manage files on an on-premises file share, for example:

  • Create, get, append, update, and delete files
  • List files in folders or root folders.
  • Get file content and metadata.

This article shows how you can connect to an on-premises file system as described by this example scenario: copy a file that's uploaded to Dropbox to a file share, and then send an email. To securely connect and access on-premises systems, logic apps use the on-premises data gateway. If you're new to logic apps, review What is Azure Logic Apps?

Prerequisites

  • An Azure subscription. If you don't have an Azure subscription, sign up for a free Azure account.

  • Before you can connect logic apps to on-premises systems such as your file system server, you need to install and set up an on-premises data gateway. That way, you can specify to use your gateway installation when you create the file system connection from your logic app.

  • A Drobox account and your user credentials

    Your credentials authorize your logic app to create a connection and access your Drobox account.

  • Basic knowledge about how to create logic apps. For this example, you need a blank logic app.

Add trigger

[!INCLUDE Create connection general intro]

  1. Sign in to the Azure portal, and open your logic app in Logic App Designer, if not open already.

  2. In the search box, enter "dropbox" as your filter. From the triggers list, select this trigger: When a file is created

    Select Dropbox trigger

  3. Sign in with your Dropbox account credentials, and authorize access to your Dropbox data for Azure Logic Apps.

  4. Provide the required information for your trigger.

    Dropbox trigger

Add actions

  1. Under the trigger, choose Next step. In the search box, enter "file system" as your filter. From the actions list, select this action: Create file - File System

    Find File System connector

  2. If you don't already have a connection to your file system, you're prompted to create a connection.

    Create connection

    Property Required Value Description
    Connection Name Yes <connection-name> The name you want for your connection
    Root folder Yes <root-folder-name> The root folder for your file system, such as a local folder on the computer where the on-premises data gateway is installed, or the folder for a network share that the computer can access.

    For example: \\PublicShare\\DropboxFiles

    The root folder is the main parent folder, which is used for relative paths for all file-related actions.

    Authentication Type No <auth-type> The type of authentication that your file system uses, for example, Windows
    Username Yes <domain>\<username> The username for your previously installed data gateway
    Password Yes <your-password> The password for your previously installed data gateway
    gateway Yes <installed-gateway-name> The name for your previously installed gateway
  3. When you're done, choose Create.

    Logic Apps configures and tests your connection, making sure that the connection works properly. If the connection is set up correctly, options appear for the action that you previously selected.

  4. In the Create file action, provide the details for copying files from Dropbox to the root folder in your on-premises file share. To add outputs from previous steps, click inside the boxes, and select from available fields when the dynamic content list appears.

    Create file action

  5. Now, add an Outlook action that sends an email so the appropriate users know about the new file. Enter the recipients, title, and body of the email. For testing, you can use your own email address.

    Send email action

  6. Save your logic app. Test your app by uploading a file to Dropbox.

    Your logic app should copy the file to your on-premises file share, and send the recipients an email about the copied file.

Connector reference

For technical details about triggers, actions, and limits, which are described by the connector's OpenAPI (formerly Swagger) description, review the connector's reference page.

Get support

Next steps