Introduction to Azure
- 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 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
# 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
Azure Storage
# 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)
| AWS Service | Azure Equivalent | Purpose |
|---|---|---|
| EC2 | Azure VMs | Virtual machines (IaaS) |
| EKS | AKS | Managed Kubernetes |
| Lambda | Azure Functions | Serverless compute |
| S3 | Azure Blob Storage | Object storage |
| RDS | Azure SQL Database | Managed relational DB |
| CloudWatch | Azure Monitor | Monitoring and logging |
| IAM | Azure Active Directory (Entra ID) | Identity and access management |
| VPC | Azure 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.
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.