Monday , April 21 2025

Azure Data Analytics Made Easy: A Step-by-Step Guide to Cloud ETL

Part 1: Setting Up Azure Resources & SQL Database

Introduction

Data analytics is more than just writing SQL queries—it’s about automating workflows, leveraging cloud resources, and making data pipelines scalable. In this two-part blog series, we’ll explore how to:

  1. Set up Azure resources (Storage Account, SQL Database) and populate sample data.
  2. Use Azure Data Factory (ADF) to ingest data into a blob container.

Let’s start with Part 1: Creating Azure Resources & SQL Database.

Step 1: Create an Azure Account

If you don’t have an Azure account, follow these steps:

  1. Go to Azure Portal.
  2. Sign up for a free trial (12 months free for select services).
  3. Once logged in, you’ll see the Azure dashboard.

Step 2: Provision Azure Resources

We’ll create:

  • Azure SQL Database (for structured data storage)
  • Azure Storage Account (for blob storage)

A. Create an Azure SQL Database

  1. In the Azure Portal, search for “SQL databases” → Click “Create”.
  1. Fill in the details:
    • Subscription: Your Azure subscription which was created when you opened your azure account. This will be automatically appear. You just have to select it,.
  1. Resource Group: Create new (e.g., DataAnalytics-RG)
  2. Database name: SampleDB
  3. Server: Create a new server (e.g., dullaserver)
  4. Region: Pick the region closest to you to reduce letency.
  5. Authentication method: SQL authentication
  6. Set admin username & password (remember these!)
  7. Under Networking:
    • Allow Azure services to access the server (for ADF later)
    • (Optional) Add your current client IP for SQL access
  8. Click Review + CreateCreate.

B. Create a Storage Account (for Blob Storage)

Search for “Storage accounts”Create.

Configure:

  • Resource Group: Same as above (DataAnalytics-RG)
  • Storage account name: dullastorage
  • Region: Same as SQL DB
  • Performance: Standard
  • Redundancy: LRS (Locally Redundant) If you application will be accessed from different parts of the world, you might consider your options. The speed of the appliaction will be determined by its proximity to the user.
  • Click Review + CreateCreate.

Step 3: Connect Azure SQL DB to SQL Server Management Studio (SSMS)

  1. Download and install SSMS if you don’t have it.
  2. Open SSMS → Click Connect → Select “Database Engine”.
  3. Enter server details:
    • Server name: Theservername created when setting up database
    • Authentication: SQL Server Authentication (Enter the authentication you used when setting up)
    • Login/Password: The credentials you set earlier
  4. Click Connect.

For Errors during azure database and sql interface click here for solution

Step 4: Create Sample Data in SQL Database

Let’s create a simple table and insert data.

A. Create a Table

Run this SQL query in SSMS:

sql

CREATE TABLE Customers (
    CustomerID INT PRIMARY KEY,
    FirstName NVARCHAR(50),
    LastName NVARCHAR(50),
    Email NVARCHAR(100),
    SignupDate DATE
);

B. Insert Sample Data

sql

INSERT INTO Customers VALUES 
(1, 'John', 'Doe', 'john.doe@example.com', '2023-01-15'),
(2, 'Jane', 'Smith', 'jane.smith@example.com', '2023-02-20'),
(3, 'Mike', 'Johnson', 'mike.johnson@example.com', '2023-03-10');

C. Verify Data

sql

SELECT * FROM Customers;

You should see three records.

Step 5: Prepare Blob Storage for Data Factory

  • Go to your Storage Account (the one created in 1B above)Containers.
  • Create a new container (e.g., raw-data).
  • Create your personal container where your files will be kept
  • Add container
  • Upload file to see how this works
  • While uploading files into your containers, you have four options (Hot, Cool, Cold, Archive). By default, the hot is selected and what it means is that your file is available immediately you need it. The archive is used for files that are kept away for a while. These files wont be accessed at any time. This file types is used to save cost on files that are not needed at the moment.

Next Steps

Now that we have:
✅ Azure SQL Database with sample data
✅ Blob Storage Container

In Part 2, we’ll:

  • Set up Azure Data Factory (ADF)
  • Create a pipeline to ingest SQL data into Blob Storage
  • Automate the ETL process

Stay tuned!

Part II (Azure Data Factory (ADF)

About Akanbi Abdullahi

Akanbi cut his teeth in Journalism after leaving the Federal Polytechnic, Offa with a National Diploma in Mass Communication and proceeded to the University of Abuja to study the English Language. He is a Teacher, Project Manager, IT Consultant, a Backend Software Engineer and a Blogger.

Check Also

MAFAB HAS LAUNCHED 5G SERVICES IN NIGERIA – NCC

The attention of the Nigerian Communications Commission (NCC) has been drawn to some misleading comments …

Leave a Reply

Your email address will not be published. Required fields are marked *