Connect to FTP servers - Azure Logic Apps (2024)

  • Article

Applies to: Azure Logic Apps (Consumption + Standard)

This article shows how to access your File Transfer Protocol (FTP) server from a workflow in Azure Logic Apps with the FTP connector. You can then create automated workflows that run when triggered by events in your FTP server or in other systems and run actions to manage files on your FTP server.

For example, your workflow can start with an FTP trigger that monitors and responds to events on your FTP server. The trigger makes the outputs available to subsequent actions in your workflow. Your workflow can run FTP actions that create, send, receive, and manage files through your FTP server account using the following specific tasks:

  • Monitor when files are added or changed.
  • Create, copy, delete, list, and update files.
  • Get file metadata and content.
  • Manage folders.

If you're new to Azure Logic Apps, review the following get started documentation:

  • What is Azure Logic Apps
  • Quickstart: Create an example Consumption logic app workflow

Connector technical reference

The FTP connector has different versions, based on logic app type and host environment.

Logic app type (plan)EnvironmentConnector version
ConsumptionMulti-tenant Azure Logic AppsManaged connector (Standard class). For more information, review the following documentation:

- FTP managed connector reference
- Managed connectors in Azure Logic Apps

ConsumptionIntegration service environment (ISE)Managed connector (Standard class) and ISE version, which has different message limits than the Standard class. For more information, review the following documentation:

- FTP managed connector reference
- ISE message limits
- Managed connectors in Azure Logic Apps

StandardSingle-tenant Azure Logic Apps and App Service Environment v3 (Windows plans only)Managed connector (Azure-hosted) and built-in connector, which is service provider based. The built-in connector can directly access Azure virtual networks with a connection string. For more information, review the following documentation:

- FTP managed connector reference
- FTP built-in connector operations section later in this article
- Managed connectors in Azure Logic Apps
- Built-in connectors in Azure Logic Apps

Limitations

  • Capacity and throughput

    • Built-in connector for Standard workflows:

      By default, FTP actions can read or write files that are 200 MB or smaller. Currently, the FTP built-in connector doesn't support chunking.

    • Managed or Azure-hosted connector for Consumption and Standard workflows

      By default, FTP actions can read or write files that are 50 MB or smaller. To handle files larger than 50 MB, FTP actions support message chunking. The Get file content action implicitly uses chunking.

  • Triggers for the FTP managed or Azure-hosted connector might experience missing, incomplete, or delayed results when the "last modified" timestamp is preserved. On the other hand, the FTP built-in connector trigger in Standard logic app workflows doesn't have this limitation. For more information, review the FTP connector's Limitations section.

  • The FTP managed or Azure-hosted connector can create a limited number of connections to the FTP server, based on the connection capacity in the Azure region where your logic app resource exists. If this limit poses a problem in a Consumption logic app workflow, consider creating a Standard logic app workflow and use the FTP built-in connector instead.

Prerequisites

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

  • The logic app workflow where you want to access your FTP account. To start your workflow with an FTP trigger, you have to start with a blank workflow. To use an FTP action, start your workflow with another trigger, such as the Recurrence trigger.

  • For more requirements that apply to both the FTP managed connector and built-in connector, review the FTP managed connector reference - Requirements.

Known issues

By default, triggers that return an array have a Split On setting that's already enabled. With this setting enabled, the trigger automatically debatches the array by internally creating a separate workflow instance to process each array item. All the workflow instances run in parallel so that the array items are processed at the same time.

However, when the Split On setting is enabled, managed connector triggers return the outputs for all the array items as lists. Any subsequent actions that reference these outputs have to first handle these outputs as lists. To handle each array item individually, you can add extra actions. For example, to iterate through these array items, you can use a For each loop. For triggers that return only metadata or properties, use an action that gets the array item's metadata first, and then use an action to get the items contents.

You have to apply this approach only for managed connector triggers, not built-in connector triggers that return outputs for one array item at a time when the Split On setting is enabled.

For example, suppose you have managed connector trigger named When a file is added or modified (properties only) that returns the metadata or properties for the new or updated files as arrays. To get the metadata separately for each file, you might use a For each loop that iterates through the array. In this loop, use the following managed connector actions in the specified order:

  1. Get file metadata to get each file's metadata.

  2. Get file content action to get each file's content.

Add an FTP trigger

A Consumption logic app workflow can use only the FTP managed connector. However, a Standard logic app workflow can use the FTP managed connector and the FTP built-in connector. In a Standard logic app workflow, managed connectors are also labeled as Azure connectors.

The FTP managed connector and built-in connector each have only one trigger available:

  • Managed connector trigger: The FTP trigger named When a file is added or modified (properties only) runs a Consumption or Standard logic app workflow when one or more files are added or changed in a folder on the FTP server. This trigger gets only the file properties or metadata, not the file content. However, to get the file content, your workflow can follow this trigger with other FTP actions.

    For more information about this trigger, review When a file is added or modified (properties only).

  • Built-in connector trigger: The FTP trigger named When a file is added or updated runs a Standard logic app workflow when one or more files are added or changed in a folder on the FTP server. This trigger gets only the file properties or metadata, not the file content. However, to get the content, your workflow can follow this trigger with other FTP actions. For more information about this trigger, review When a file is added or updated.

The following steps use the Azure portal, but with the appropriate Azure Logic Apps extension, you can also use the following tools to create and edit logic app workflows:

  • Consumption logic app workflows: Visual Studio or Visual Studio Code

  • Standard logic app workflows: Visual Studio Code

  • Consumption
  • Standard
  1. In the Azure portal, and open your blank logic app workflow in the designer.

  2. On the designer, under the search box, select Standard. In the search box, enter ftp.

  3. From the triggers list, select the trigger named When a filed is added or modified (properties only).

    Connect to FTP servers - Azure Logic Apps (1)

  4. Provide the information for your connection. When you're done, select Create.

    Note

    By default, this connector transfers files in text format. To transfer files in binary format,for example, where and when encoding is used, select the binary transport option.

    Connect to FTP servers - Azure Logic Apps (2)

  5. After the trigger information box appears, find the folder that you want to monitor for new or edited files.

    1. In the Folder box, select the folder icon to view the folder directory.

    2. Select the right angle arrow (>). Browse to the folder that you want, and then select the folder.

    Connect to FTP servers - Azure Logic Apps (3)

    Your selected folder appears in the Folder box.

    Connect to FTP servers - Azure Logic Apps (4)

  6. When you're done, save your workflow.

When you save your workflow, this step automatically publishes your updates to your deployed logic app, which is live in Azure. With only a trigger, your workflow just checks the FTP server based on your specified schedule. You have to add an action that responds to the trigger and does something with the trigger outputs.

Add an FTP action

A Consumption logic app workflow can use only the FTP managed connector. However, a Standard logic app workflow can use the FTP managed connector and the FTP built-in connector. Each version has multiple actions. For example, both managed and built-in connector versions have their own actions to get file metadata and get file content.

  • Managed connector actions: These actions run in a Consumption or Standard logic app workflow.

  • Built-in connector actions: These actions run only in a Standard logic app workflow.

The following steps use the Azure portal, but with the appropriate Azure Logic Apps extension, you can also use the following tools to create and edit logic app workflows:

  • Consumption logic app workflows: Visual Studio or Visual Studio Code

  • Standard logic app workflows: Visual Studio Code

Before you can use an FTP action, your workflow must already start with a trigger, which can be any kind that you choose. For example, you can use the generic Recurrence built-in trigger to start your workflow on specific schedule.

  • Consumption
  • Standard
  1. In the Azure portal, and open your logic app workflow in the designer.

  2. Find and select the FTP action that you want to use.

    This example continues with the action named Get file metadata so you can get the metadata for a single array item.

    1. On the designer, under the trigger or any other actions, select New step.

    2. Under the Choose an operation search box, select Standard.

    3. In the search box, enter ftp get file metadata.

    4. From the actions list, select the action named Get file metadata.

    Connect to FTP servers - Azure Logic Apps (5)

  3. If necessary, provide the information for your connection. When you're done, select Create.

    Note

    By default, this connector transfers files in text format. To transfer files in binary format,for example, where and when encoding is used, select the binary transport option.

    Connect to FTP servers - Azure Logic Apps (6)

  4. After the Get file metadata action information box appears, click inside the File box so that the dynamic content list opens.

    You can now select outputs from the preceding trigger.

  5. In the dynamic content list, under When a file is added or modified, select List of Files Id.

    Connect to FTP servers - Azure Logic Apps (7)

    The File property now references the List of Files Id trigger output.

  6. On the designer, under the Get file metadata action, select New step.

  7. Under the Choose an operation search box, select Standard.

  8. In the search box, enter ftp get file content.

  9. From the actions list, select the action named Get file content.

    Connect to FTP servers - Azure Logic Apps (8)

  10. After the Get file content action information box appears, click inside the File box so that the dynamic content list opens.

    You can now select outputs from the preceding trigger and any other actions.

  11. In the dynamic content list, under Get file metadata, select Id, which references the file that was added or updated.

    Connect to FTP servers - Azure Logic Apps (9)

    The File property now references the Id action output.

    Connect to FTP servers - Azure Logic Apps (10)

  12. When you're done, save your workflow. On the designer toolbar, select Save.

Test your workflow

To check that your workflow returns the content that you expect, add another action that sends you the content from the added or updated file. This example uses the Office 365 Outlook action named Send an email.

  • Consumption
  • Standard
  1. Under the Get file content action, add the Office 365 Outlook action named Send an email. If you have an Outlook.com account instead, add the Outlook.com Send an email action, and adjust the following steps accordingly.

    1. On the designer, under the Get file content action, select New step.

    2. Under the Choose an operation search box, select Standard.

    3. In the search box, enter office 365 outlook send an email. From the actions list, select the Office 365 Outlook action named Send an email.

    Connect to FTP servers - Azure Logic Apps (11)

  2. If necessary, sign in to your email account.

  3. In the action information box, provide the required values and include any other parameters or properties that you want to test.

    For example, you can include the File content output from the Get file content action. To find this output, follow these steps:

    1. In the Get file content action, click inside the Body box so that the dynamic content list opens.

    2. In the dynamic content list, next to Get file content, select See more.

      Connect to FTP servers - Azure Logic Apps (12)

    3. In the dynamic content list, under Get file content, select File Content.

      The Body property now references the File Content action output.

      Connect to FTP servers - Azure Logic Apps (13)

  4. Save your logic app workflow.

  5. To run and trigger the workflow, on the designer toolbar, select Run Trigger > Run. Add a file to the FTP folder that your workflow monitors.

FTP built-in connector operations

The FTP built-in connector is available only for Standard logic app workflows and provides the following operations:

TriggerDescription
When a file is added or updatedStart a logic app workflow when a file is added or updated in the specified folder on the FTP server.

Note: This trigger gets only the file metadata or properties, not the file content. However, to get the content, your workflow can follow this trigger with the Get file content action.

ActionDescription
Create fileCreate a file using the specified file path and file content.
Delete fileDelete a file using the specified file path.
Get file contentGet the content of a file using the specified file path.
Get file metadataGet the metadata or properties of a file using the specified file path.
List files and subfolders in a folderGet a list of files and subfolders in the specified folder.
Update fileUpdate a file using the specified file path and file content.

When a file is added or updated

Operation ID: whenFtpFilesAreAddedOrModified

This trigger starts a logic app workflow run when a file is added or updated in the specified folder on the FTP server. The trigger gets only the file metadata or properties, not any file content. However, to get the content, your workflow can follow this trigger with the Get file content action.

Parameters

NameKeyRequiredTypeDescription
Folder pathfolderPathTruestringThe folder path, relative to the root directory.
Number of files to returnmaxFileCountFalseintegerThe maximum number of files to return from a single trigger run. Valid values range from 1 - 100.

Note: By default, the Split On setting is enabled and forces this trigger to process each file individually in parallel.

Cutoff timestamp to ignore older filesoldFileCutOffTimestampFalsedateTimeThe cutoff time to use for ignoring older files. Use the timestamp format YYYY-MM-DDTHH:MM:SS. To disable this feature, leave this property empty.

Returns

When the trigger's Split On setting is enabled, the trigger returns the metadata or properties for one file at a time. Otherwise, the trigger returns an array that contains each file's metadata.

NameType
List of filesBlobMetadata

Create file

Operation ID: createFile

This action creates a file using the specified file path and file content. If the file already exists, this action overwrites that file.

Important

If you delete or rename a file on the FTP server immediately after creation within the same workflow,the operation might return an HTTP 404 error, which is by design. To avoid this problem, includea 1-minute delay before you delete or rename any newly created files. You can use theDelay action to add this delay to your workflow.

Parameters

NameKeyRequiredTypeDescription
File pathfilePathTruestringThe file path, including the file name extension if any, relative to the root directory.
File contentfileContentTruestringThe file content.

Returns

This action returns a BlobMetadata object named Body.

NameType
File metadata File namestring
File metadata File pathstring
File metadata File sizestring
File metadataBlobMetadata

Delete file

Operation ID: deleteFtpFile

This action deletes a file using the specified file path.

Parameters

NameKeyRequiredTypeDescription
File pathfilePathTruestringThe file path, including the file name extension if any, relative to the root directory.

Returns

None

Get file content

Operation ID: getFtpFileContent

This action gets the content of a file using the specified file path.

Parameters

NameKeyRequiredTypeDescription
File pathpathTruestringThe file path, including the file name extension if any, relative to the root directory.

Returns

This action returns the content of a file as a binary value named File content.

NameType
File contentBinary

Get file metadata

Operation ID: getFileMetadata

This action gets the metadata or properties of a file using the specified file path.

Parameters

NameKeyRequiredTypeDescription
File pathpathTruestringThe file path, including the file name extension if any, relative to the root directory.

Returns

This action returns the following outputs:

NameType
File namestring
File pathstring
File sizestring
Last updated timestring
File metadataBlobMetadata

List files and subfolders in a folder

Operation ID: listFilesInFolder

This action gets a list of files and subfolders in the specified folder.

Parameters

NameKeyRequiredTypeDescription
Folder pathfolderPathTruestringThe folder path, relative to the root directory.
File contentfileContentTruestringThe content for the file

Returns

This action returns an array that's named Response and contains BlobMetadata objects.

NameType
ResponseArray with BlobMetadata objects

Update file

Operation ID: updateFile

This action updates a file using the specified file path and file content.

Important

If you delete or rename a file on the FTP server immediately after creation within the same workflow,the operation might return an HTTP 404 error, which is by design. To avoid this problem, includea 1-minute delay before you delete or rename any newly created files. You can use theDelay action to add this delay to your workflow.

Parameters

NameKeyRequiredTypeDescription
File pathfilePathTruestringThe file path, including the file name extension if any, relative to the root directory.
File contentfileContentTruestringThe content for the file

Returns

This action returns a BlobMetadata object named Body.

NameType
BodyBlobMetadata

Next steps

  • Managed connectors for Azure Logic Apps
  • Built-in connectors for Azure Logic Apps
  • What are connectors in Azure Logic Apps
Connect to FTP servers - Azure Logic Apps (2024)

FAQs

How to access Azure FTP server? ›

Where to find FTP Credentials to Azure App in Azure Portal? #
  1. Log into the Azure Portal.
  2. Search for and select your App Service.
  3. Head over to the 'Deployment Center'.
  4. Click on the 'FTPS Credentials' tab.
  5. In the 'Application Scope' section, you'll see fields labeled username and password.
Feb 14, 2021

How do I connect to an FTP server? ›

Connecting via the Windows command line
  1. Enter the ftp command. Press “Enter” to confirm the action.
  2. Set the command ftp_hostname.
  3. Enter your username or log in anonymously. To do this, enter Anonymous.
  4. Type in your password. If you are logged in as Anonymous, leave the password field blank. Press “Enter” again.

How do I connect to FTP in power app? ›

To use Connect Server to integrate FTP data into your Power Apps, you need a new SQL Server connection:
  1. Log in to Power Apps.
  2. Click Data -> Connections -> New connection.
  3. Select SQL Server.
  4. In the connection wizard: Choose to connect directly.

How to connect FileZilla to Azure App Service? ›

Configuring FileZilla Pro for File Storage type accounts

Select Microsoft Azure File Storage Service from the Protocol drop down list. Enter your storage account name in the Storage account field. Paste the access key that you copied from Azure into the Access Key field. Click on Connect.

How do I give access to an FTP server? ›

How to Change User Permissions of an FTP Server
  1. Access the server preferences in Server Functions > FTP Configuration.
  2. On the FTP Users tab, click the name of the user you want to modify.
  3. Click Permissions.
  4. Set the permissions of the user. Option. Description. Directory path. ...
  5. Click Apply.
Sep 27, 2022

How do I check my FTP server connection? ›

NOTE: The computer must contain an IP address to perform this solution.
  1. Obtain a command prompt. ...
  2. From the Command prompt type: ftp xxx. ...
  3. A connection script will run and if successful a prompt for a user name will be displayed. ...
  4. You will now be prompted for a password. ...
  5. From the FTP prompt, type: pwd then press Enter.
Jun 3, 2020

How to connect to FTP server via SSH? ›

Connect Using Secure Shell (FTP Client)
  1. Start the FTP Client. ...
  2. Perform one of the following tasks: ...
  3. Click Security.
  4. Click the Secure Shell tab.
  5. Select Use Reflection Secure Shell.
  6. Select one of the following options: ...
  7. (Optional) Specify an SSH config scheme.

How do I access an FTP server command? ›

To open an FTP site, perform the following steps:
  1. At the command prompt, type the following: Console Copy. ftp ServerName. ...
  2. Type anonymous when prompted for the user.
  3. Type any password. Note. The anonymous user name is typically used to log on to FTP sites, particularly those that are not set up for users to copy files to.
Jan 24, 2022

How do I access the FTP port? ›

The FTP default port generally helps when making standards, and an unencrypted FTP connection is port 21. That is the number that anyone using an FTP client needs to know. You can use more ports, but they differ with the type of FTP. Standard FTP ports can be ports 20 and 21 since FTP was officially assigned both.

Does Microsoft have an FTP? ›

The FTP built-in connector is available only for Standard logic app workflows in Azure Logic Apps. For more information about the FTP built-in connector in Azure Logic Apps, review Connect to FTP servers from workflows in Azure Logic Apps.

Why is my FTP connection refused? ›

ECONNREFUSED stands for “Connection Refused By Server.” That means the server you are trying to connect to has refused the connection request. Simply put, it means that your server is inaccessible. This error message is quite common and often shows up when using File Transfer Protocol (FTP) clients like FileZilla.

How do I access Azure FTP? ›

Under the search box, select Azure. In the search box, enter ftp. From the triggers list, select the trigger named When a filed is added or modified (properties only). Provide the information for your connection.

How to connect ftps in Azure app service? ›

Go to your Azure Web App in the Azure Portal. Click on the Deployment Center menu item under the Deployment heading in the left-hand nav. Choose the FTPS Credentials tab. Your FTP endpoint, username, and pass are available to copy.

How do I connect to SFTP server from Azure? ›

Prerequisites
  1. Enable SFTP support for Azure Blob Storage. See Enable or disable SFTP support.
  2. Authorize access to SFTP clients. See Authorize access to clients.
  3. If you're connecting from an on-premises network, make sure that your client allows outgoing communication through port 22 used by SFTP.
May 21, 2024

How do I access my Azure VM server? ›

Connect from Azure portal
  1. Go to the Azure portal to connect to a VM. Search for and select Virtual machines.
  2. Select the virtual machine from the list.
  3. Select Connect from the left menu.
  4. Select the option that fits with your preferred way of connecting. The portal helps walk you through the prerequisites for connecting.
Nov 15, 2023

What is the host name for Azure FTP? ›

The FTP host name: which will be something like waws-prod-blu-001.ftp.azurewebsites.windows.net (the blu token might instead be am2 or db3 based on location). You'll find it under the Dashboard tab for your site in the Azure portal. Your username: you'll also find it on the dashboard, under Deployment User.

How do I access Azure SFTP? ›

  1. In the Azure portal, navigate to your storage account.
  2. Under Settings, select SFTP, and then select Add local user.
  3. In the Add local user configuration pane, add the name of a user, and then select which methods of authentication you'd like associate with this local user.
May 1, 2024

How to access Azure FTP logs? ›

To access diagnostic information using FTP, visit the Dashboard of your web app in the classic portal. In the quick glance section, use the FTP Diagnostic Logs link to access the log files using FTP. The Deployment/FTP User entry lists the user name that should be used to access the FTP site.

References

Top Articles
Review: Why ‘Elemental’ Is the Fun New Pixar Movie To Watch
‘A Quiet Place: Day One’ Easily Scares Up $53M Franchise Opening Record, But ‘Inside Out 2’ Has Last Laugh With Third No. 1 Win At $57M+ – Sunday AM Update
Alvin Isd Ixl
Cremation Services | Mason Funeral Home serving Westfield, New York...
It May Surround A Charged Particle Crossword
Nook Glowlight 3 Case
Wgu Academy Phone Number
Ellaeats Tumblr
Exquisitely Stuffed Terraria
Best Builder Hall 5 Base
Video Program: Intermediate Rumba
2006 Lebanon War | Summary, Casualties, & Israel
Ar Kendrithyst
Mhgu Bealite Ore
Bootyandthebeast69 Swap
Cocaine Bear Showtimes Near Amc Braintree 10
Walmart Com Careers Jobs
Meine Erfahrung mit Textbroker als Autor (inkl. Beispiel zu Verdienst)
3 30 Mountain Time
Jennifer Beals Bikini
Soul of the Brine King PoE Pantheon 3.14 Upgrade
Gary Keesee Kingdom Principles Pdf
Tbom Retail Credit Card
New Homes in Waterleigh | Winter Garden, FL | D.R. Horton
Affordable Prom Dresses for Women | Fashion Nova
How Old Am I 1981
Israel Tripadvisor Forum
Marketwatch Com Game
Syracuse Deadline
Banette Gen 3 Learnset
Keci News
Current Students - Pace University Online
Is Jamie Kagol Married
Sky Nails Albany Oregon
Fgo Spirit Root
Ucf Net Price Calculator
Rule 34 Supreme Court: Key Insights and Implications
Tapana Telugu Movie Download Kuttymovies
Rydell on LinkedIn: STARTING TODAY you no longer have to wait in a long line to get your oil…
9294027542
Snapcamms
Detroit Area Craigslist
Meggen Nut
Order Irs Tax Forms Online
8569 Marshall St, Merrillville, IN 46410 - MLS 809825 - Coldwell Banker
Mpbn Schedule
Erfolgsfaktor Partnernetzwerk: 5 Gründe, die überzeugen | SoftwareOne Blog
Siôn Parry: The Welshman in the red of Canada
Raleigh Craigs List
Physician Dressed As A Sorceress Crossword Clue
How Long Ago Was February 28 2023
Yolo Massage Clinic Kirkland Reviews
Latest Posts
Article information

Author: Dan Stracke

Last Updated:

Views: 6710

Rating: 4.2 / 5 (43 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.