REST API Fetching only Required Records and Writing to Azure SQL DB in Azure Data Factory

 Topic: REST API Fetching only Required Records and Writing to Azure SQL DB in Azure Data Factory.


In this article, we are going to learn about REST API fetching only required records and writing them to the Azure SQL database in Azure Data Factory, in this scenario we are going to fetch data from a website, that provides the free Dummy data, so I have copied the web link and then get data from that link then write it to the Azure SQL database. let's start our demonstration.

Open the Azure Data factory studio, go to the Author tab, click on + sign and create a new pipeline, find and bring the Lookup activity, then go to the settings tab and click on the + New button to create a new source dataset.


Select Azure SQL database, then click on continue.


Name your dataset, select the linked service, select none for import schema, then click on Ok.


Next, create a table in SSMS, then in the Settings tab select the Query, provide the SQL query and uncheck the First row only.


Once we are done with our lookup activity, find and bring the ForEach loop activity, connect with the lookup activity, go to the settings tab, in the items click on add dynamic content, then select the lookup and in the end add ''.value''.


Go inside the ForEach loop activity, find and bring the copy data activity, go to the source tab, then click on the + New button to create a new source dataset.


Select the REST then click on continue.


Name your dataset, then create a new linked service, name your link service, provide the base URL which we already copied, then select the authentication type, then click on create and then click on Ok. 


In the source, tab click on the Open button then go to the parameter tab click on the + New button and create a new parameter.


In the connection, tab select the parameter which we have created, then back to the pipeline.


In the source tab map, this parameter with the ForEach loop and in the expression add ''.id'' in the end


Once we are done with our source tab, go to the sink tab and click on the + New button to create a new sink dataset.


Select Azure SQL database then click on continue.


Name your Sink dataset, select the linked service, select none for import schema, then click on Ok.


In the sink tab, click on the Open button then in the connection tab provide the table name and back to the pipeline.


Then, select auto create the table, in the sink tab, and then click on Debug to execute our pipeline.



Video Demo: REST API Fetching only Required Records and Writing to Azure SQL DB in Azure Data Factory.




















3 comments:

  1. Casino Tycoon Bonus Codes 2021 - CasinoTaratODOS
    Casino Tycoon bonus codes 먹튀 신고 2021. Check out our 골든 리치 exclusive CasinoTaratODO list and 벳 매니아 bonus codes for US 실시간 스포츠 배팅 players. 원벳 먹튀

    ReplyDelete
  2. How to Recover Cryptocurrency from fraudulent investment platforms.

    Have you ever been a victim of a scam? or have you Suffered a loss from a Fraudulent Ponzi Scheme? I implore you to Contact Captain WebGenesis, A Certified Cryptocurrency Assets Recovery Expert. I once fell victim to an online imposter who convinced me to invest in a Bogus Cryptocurrency scheme by claiming to have made large profits from the plan. My Mycelium wallet contained $369,000 in Crypto that I lost, I had been reporting to the Authorities tirelessly for a longtime without getting assistance before I finally got in touch with Captain WebGenesis. Fortunately after a serious long chat with Captain WebGenesis all my funds were recovered back.
    I recommend this Expert to any victim who has lost Crypto to any fake online Schemes.

    Talk to Captain WebGenesis Through ;
    Mail Captainwebgenesis@hackermail.com
    WhatsApp, +1 (447) 442-0456.

    ReplyDelete
  3. Do you need help to spy on someone or something? Are you worried about a cheating partner or spouse? Find out and catch a cheating partner with facts and evidence to back it up, do you need help recover lost or stolen passwords, track and monitor GPS location, etc.; for all your spy and hack related services; find ( wizardbrixton at Gmail dot com ) on the internet for help and solution to all your spy and hack needs, Social media hacks Find them on online using your desktop or PC via your browsers URL box. They are the best, services rendered is 100% guaranteed to contact them on ( wizardbrixton at Gmail dot com )

    ReplyDelete