How To Retailer File In SFTP Utilizing Azure Logic App

Harsh Bakshi
5 min readAug 1, 2024

--

Introduction

In case you are not conscious of the Azure cloud and what’s a logic app, then undergo the main points of it in my earlier articles,

  1. An Overview of Cloud And Azure Cloud
  2. Pillars of Cloud And Azure Providers
  3. Logic app overview

On this article, we’ll discover the SFTP connector and how you can create a file within the SFTP location utilizing the Azure logic app.

State of affairs

These articles will provide help to to know how you can use logic app connectors. I’m additionally offering an instance of making a file in an SFTP location utilizing an SFTP connector within the logic app by executing step-by-step method. Let’s gear up.

Pre-requisite

  • Primary data of Azure providers
  • SFTP location needs to be publicly obtainable over the connector with credentials

Background

  • Case 1: If we have to create and retailer the file within the FTP location
  • Case 2: In case your cloud software should combine with on-premise information sources however you do not need to straight expose and join with the vacation spot information supply, then there needs to be one center layer like FTP information, and so forth. which is able to act as a bridge between the cloud app and on-premise information supply. Cloud software will put the file in an FTP location after which your on-premise information supply will decide up the file, parse it, and retailer the information within the information supply.

(I’m choosing one instance as FTP to elucidate the logic app connector, there are different approaches that can be utilized primarily based on the requirement).

Particulars

Now, construct a logic app to retailer the file in SFTP per 5 minutes.

 Logic app

Step 1. Sign up to the Azure portal along with your Azure account credentials.

Step 2. Click on on the ‘Create Supply’ hyperlink, then navigate to the combination part and choose ‘Logic App’.

Create Source

Step 3. Fill in particulars of a logic app like identify, its useful resource group, location, and so forth., and click on on create a button.

Microsoft Azure

Step 4. Portal creates and deploys the logic app, as soon as it’s deployed then click on on the go-to useful resource hyperlink as proven within the beneath screenshot.

Portal create

Step 5. Click on on the edit button.

Edit button

Step 6. The system will open the logic app designer window on which you will note the checklist of templates and connectors to construct workflows shortly or we will create it from a clean.

I’m deciding on ‘recurrence’ as a result of I need to run my logic app each 5 minutes within the background.

Templates

Step 7. Enter the interval as ‘5’ minutes. We will configure this at a degree of time later as properly primarily based on the frequency.

Frequency

Frequency choices

Frequency options

Step 8. Click on on the brand new step so as to add a brand new motion within the logic app. Then, seek for SFTP and choose ‘Create file’ motion.

Create file

Step 9. Now, the system prompts you to enter particulars concerning the SFTP connection. On the backend system creates a connection to SFTP by utilizing the stuffed particulars.

Enter the connection identify (generally is a user-friendly identify), host server handle, and username and password (password just isn’t required if SFTP nameless entry is enabled).

Observe. SFTP needs to be public and accessible over the Web.

Internet

Step 10. After the profitable creation of the connection to SFTP, the system asks you to enter the main points concerning the vacation spot folder, file identify, and file content material.

  • Folder: You should utilize the explorer to browse your vacation spot folder.
  • File Identify: You should utilize dynamic properties or a static identify.
  • File Content material: You’ll be able to create dynamic content material or use static content material as wanted.
Dynamic content

Step 11. Now your logic app workflow is able to use. It can save you the logic app now or run it to check the newly created logic app.

Designer

Now, each 5 minutes a file shall be generated on the SFTP location.

Abstract

On this article, we’ve seen how you can create a logic app connection and how you can create a file in an SFTP location utilizing the SFTP connection.

Know extra about our firm at Skrots. Know extra about our providers at Skrots Providers, Additionally checkout all different blogs at Weblog at Skrots


Know more about our company at Skrots. Know more about our services at Skrots Services, Also checkout all other blogs at Blog at Skrots

Thanks, Harsh
Founder | CEO — Skrots

Learn more about our blog at Blog at Skrots. Checkout our list of services on Skrots. Give a look at our website design at Skrots . Checkout our LinkedIn Page at LinkedIn.com. Check out our original post at https://blog.skrots.com/how-to-store-file-in-sftp-using-azure-logic-app/?feed_id=6872&_unique_id=66ac080a191f5

--

--