Hands On Lab
MODULE I: DATA INGESTION
COVID-19 Dataset
MODULE 1:
Data Ingestion with Azure Data Factory
Pre-requisites:
-
Azure subscription with Azure Data Factory Instance
-
Completed Objective 1 of Module 1: Creating a pipeline to copy country code dataset to the Azure Data Lake
Learning Outcomes for Module 1:
-
Importing COVID-19 Data from Github
-
Creating a linked service to link your Azure Storage account to the data factory. The linked service has the connection information that the Data Factory service uses at runtime to connect to it
-
Creating and validating a pipeline with specified parameters to copy the COVID-19 data to Azure Data Lake
- Create a new pipeline through selecting the plus (+) button and click on Pipeline
- In the general tab, specify the pipeline name i.e. Covid Latest Pipe. You will see the name of your pipeline appear on the left hand panel under Factory Resources.
- Next, click on the move and transform section and drag the ‘copy data’ function and rename it to be ‘CovidDataCopy’ in the General panel.
- The dataset we will be working with for this module can be found here: https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_daily_reports
- Next up, we are going to create a new source. Click on the source tab and select the (+) button to add a new dataset.
- On the New Dataset panel on the right hand side, select ‘HTTP’ and click continue.
- Given our raw data from Github is in a csv file click the DelimitedText option and click Continue.
- In the Set Properties panel rename the file to ‘CovidDataSource’.
-
Under the Linked Service heading click ‘new’.
-
Name the linked service to ‘HTTPServerReferenceLinkedService’
-
Copy the base URL of the raw Github csv file as shown below https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/
-
Set authentication to Anonymous
- Click Test connection to verify that the connection is successful.
-
Click Create.
-
Input the date of the particular raw csv field in the Relative URL field e.g. 05-16-2020.csv

-
Click OK.
-
Next, click on Preview data as shown
-
Next up, we have to define the data lake that we want to copy this data to. Navigate to the Sink tab and click new.
-
Select Azure Data Lake Storage Gen 2
- Select Delimited Text
- Input ‘CovidLatest’ in the name field
-
Select new linked service
-
Input fields as shown below:
Name: ADLSLSReference
Azure subscription: MTC Sydney Azure
Storage account name: stcovidhackoutputprod
- Click test connection.
- Next, to set a file path click Browse
- Click on data and then select inputs
-
Click OK.
-
Click Validate All
-
If all the validations are correct, click Publish All
-
Next, click Add trigger
-
Click Trigger now to trigger the pipeline straight away. When prompted for a parameter, input a date value in the format of MM-DD-YYYY. Click OK. The pipeline will then start to run.
-
To check how the pipeline is running, go to the monitor step in Azure Data Factory.





















