Skip to content
Home DevOps Introduction to Azure

Introduction to Azure

Where developers are forged. · Structured learning · Free forever.
📍 Part of: Cloud → Topic 11 of 23
Introduction to Microsoft Azure — core services, compute options (VMs, AKS, Azure Functions), storage, networking, Azure CLI basics, and how Azure compares to AWS.
⚙️ Intermediate — basic DevOps knowledge assumed
In this tutorial, you'll learn
Introduction to Microsoft Azure — core services, compute options (VMs, AKS, Azure Functions), storage, networking, Azure CLI basics, and how Azure compares to AWS.
  • Resource Groups are the fundamental organisation unit in Azure — all resources belong to one.
  • Azure App Service: easiest way to deploy a web app — no server management.
  • AKS: managed Kubernetes — Microsoft handles the control plane.
✦ Plain-English analogy ✦ Real code with output ✦ Interview questions
Quick Answer

Azure is Microsoft's cloud platform with 200+ services across compute, storage, networking, databases, and AI. Core services: Azure VMs (IaaS), Azure App Service (PaaS for web apps), AKS (managed Kubernetes), Azure Functions (serverless), Azure Storage (blob, queue, table, file), and Azure SQL Database (managed SQL Server).

Core Compute Services

Example · BASH
123456789101112131415161718192021222324252627282930313233
# Azure CLI — must-know commands

# Login
az login

# Create a resource group (logical container for Azure resources)
az group create --name myapp-rg --location eastus

# Create a VM
az vm create \
  --resource-group myapp-rg \
  --name myapp-vm \
  --image Ubuntu2204 \
  --admin-username azureuser \
  --generate-ssh-keys

# Deploy a container to Azure Container Instances (quick, no K8s needed)
az container create \
  --resource-group myapp-rg \
  --name myapp-container \
  --image myapp:latest \
  --cpu 1 \
  --memory 1.5 \
  --ports 8000

# Create an Azure Function (serverless)
az functionapp create \
  --resource-group myapp-rg \
  --consumption-plan-location eastus \
  --runtime python \
  --functions-version 4 \
  --name myapp-functions \
  --storage-account mystorageaccount
▶ Output
# Resources created and running in Azure

Azure Storage

Example · PYTHON
12345678910111213141516171819
# pip install azure-storage-blob
from azure.storage.blob import BlobServiceClient

connection_string = 'DefaultEndpointsProtocol=https;AccountName=...'
client = BlobServiceClient.from_connection_string(connection_string)

# Upload file to blob storage
container = client.get_container_client('documents')
with open('report.pdf', 'rb') as data:
    container.upload_blob('reports/2025/report.pdf', data, overwrite=True)

# Download
blob = container.get_blob_client('reports/2025/report.pdf')
with open('local-report.pdf', 'wb') as f:
    f.write(blob.download_blob().readall())

# List blobs
for blob in container.list_blobs(name_starts_with='reports/2025/'):
    print(blob.name, blob.size)
▶ Output
# reports/2025/report.pdf 245760
AWS ServiceAzure EquivalentPurpose
EC2Azure VMsVirtual machines (IaaS)
EKSAKSManaged Kubernetes
LambdaAzure FunctionsServerless compute
S3Azure Blob StorageObject storage
RDSAzure SQL DatabaseManaged relational DB
CloudWatchAzure MonitorMonitoring and logging
IAMAzure Active Directory (Entra ID)Identity and access management
VPCAzure Virtual Network (VNet)Private networking

🎯 Key Takeaways

  • Resource Groups are the fundamental organisation unit in Azure — all resources belong to one.
  • Azure App Service: easiest way to deploy a web app — no server management.
  • AKS: managed Kubernetes — Microsoft handles the control plane.
  • Azure Functions: serverless — pay per execution, scale to zero.
  • Azure AD (now Entra ID) handles identity — integrates with existing corporate Microsoft accounts.

Interview Questions on This Topic

  • QWhat is an Azure Resource Group?
  • QWhat is the Azure equivalent of AWS Lambda?
  • QWhat is the difference between Azure App Service and Azure Functions?

Frequently Asked Questions

When should I choose Azure over AWS?

If your organisation already uses Microsoft 365, Azure Active Directory, or SQL Server — Azure integration is tighter and licensing often cheaper. If you are building .NET applications — Azure tooling and support is excellent. For greenfield projects with no Microsoft investment, AWS has a larger service catalog and broader community. GCP is preferred for data engineering and ML workloads.

What is an Azure Resource Group?

A Resource Group is a logical container for Azure resources — a VM, its storage account, its network interface, and its public IP address would all belong to the same Resource Group. You can apply RBAC (access control), tags, and cost tracking at the Resource Group level. Deleting a Resource Group deletes all resources in it.

🔥
Naren Founder & Author

Developer and founder of TheCodeForge. I built this site because I was tired of tutorials that explain what to type without explaining why it works. Every article here is written to make concepts actually click.

← PreviousIntroduction to Google Cloud PlatformNext →Terraform Basics
Forged with 🔥 at TheCodeForge.io — Where Developers Are Forged