How to move file in Azure storage account SFTP to a Azure Blob container

Éric Garneau 20 Reputation points
2025-05-23T15:41:06.3366667+00:00

Hello!

I have enabled the SFTP feature in my Data Lake Storage for a storage account.

I am looking for a way to move the files uploaded by SFTP to a container in this account.

I'd use a Logic App for this but I am curious if it is possible ?

Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,551 questions
{count} votes

Accepted answer
  1. Sai Prabhu Naveen Parimi 2,420 Reputation points Microsoft External Staff Moderator
    2025-05-26T11:12:51.86+00:00

    @Éric Garneau

    Yes, it is possible to move files from an SFTP-enabled Azure Storage account to a Blob container using Azure Logic Apps.

    To achieve this, you can follow these steps:

    1. Trigger: Use a "When a files are added or modified (properties only)" trigger on the SFTP path or container.
    2. Get File Content: Use the "Get file content" action from the SFTP connector.
    3. Create Blob: Use the "Create blob" action from the Azure Blob Storage connector to write the file to the destination container or folder.
    4. Delete File: Optionally, use the "Delete file" action from the SFTP connector to remove the original file after successful transfer.

    Make sure to establish the necessary connections to your storage account and select the appropriate parameters for each step.

    The final Logic App flow looks like this:

    User's image

    Reference for connector documents:

    https://learn.microsoft.com/en-us/azure/connectors/connectors-sftp-ssh?tabs=consumption

    https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage?tabs=consumption

    This setup ensures that any file uploaded via SFTP is automatically picked up and moved to the desired Blob container without manual intervention.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.