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 |
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?
-
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.
[!INCLUDE Create connection general intro]
-
Sign in to the Azure portal, and open your logic app in Logic App Designer, if not open already.
-
In the search box, enter "dropbox" as your filter. From the triggers list, select this trigger: When a file is created
-
Sign in with your Dropbox account credentials, and authorize access to your Dropbox data for Azure Logic Apps.
-
Provide the required information for your trigger.
-
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
-
If you don't already have a connection to your file system, you're prompted to create a 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 -
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.
-
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.
-
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.
-
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.
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.
-
For questions, visit the Azure Logic Apps forum.
-
To help improve Azure Logic Apps and connectors, vote on or submit ideas at the Azure Logic Apps User Voice site.
- Learn how to connect to on-premises data
- Learn about other Logic Apps connectors