Azure Architecture Essentials
Virtual Machines, AKS, Azure Functions, App Service, Azure SQL, Cosmos DB, Service Bus, Event Grid, API Management, Entra ID, Key Vault, Azure Monitor and Azure OpenAI with selection guidance.
[!VERSION] Reviewed November 2026. Azure AD was renamed Microsoft Entra ID (2023). Microsoft's AI platform branding has moved from Azure AI Studio to Azure AI Foundry and is being consolidated under Microsoft Foundry; Azure OpenAI is offered within it. Check current names.
Reference architecture: enterprise web application (hub-spoke)
flowchart TB
U[Users] --> AFD[Azure Front Door + WAF]
AFD --> APP[App Service / Container Apps<br/>spoke VNet, private endpoints]
AFD --> AKS[AKS cluster]
APP & AKS --> SQL[(Azure SQL Database<br/>zone redundant)]
APP & AKS --> COS[(Cosmos DB)]
APP & AKS --> SB[[Service Bus]]
SB --> FUN[Azure Functions]
APP & AKS --> KV[Key Vault]
APP & AKS -. managed identity .-> ENTRA[Microsoft Entra ID]
subgraph Hub VNet
FW[Azure Firewall]
BAS[Bastion]
ER[ExpressRoute / VPN gateway]
end
AKS --> FW
ER --> ONP[On-premises]
APP & AKS --> MON[Azure Monitor / App Insights]Compute
| Service | Use for | Notes |
|---|---|---|
| Virtual Machines | Lift-and-shift, Windows workloads, special hardware | VM Scale Sets; Azure Hybrid Benefit for Windows/SQL licences |
| AKS | Kubernetes | AKS Automatic for managed defaults; Entra ID integration; KEDA add-on |
| App Service | Web apps and APIs (PaaS) | Deployment slots for blue/green; easy for .NET/Java/Node |
| Azure Container Apps | Serverless containers (built on Kubernetes, KEDA, Dapr) | Scale to zero; good middle ground |
| Azure Functions | Event-driven functions | Flex Consumption plan; Durable Functions for orchestration |
Data
| Service | Use for | Notes |
|---|---|---|
| Azure SQL Database / Managed Instance | SQL Server workloads | Hyperscale tier for large databases; zone redundancy; Managed Instance for near-full SQL Server compatibility |
| Azure Database for PostgreSQL/MySQL (Flexible Server) | Open-source relational | HA with zone redundancy |
| Cosmos DB | Globally distributed multi-model NoSQL | Five consistency levels; multi-region writes; APIs for NoSQL, MongoDB, Cassandra, Gremlin, Table; vector search |
| Blob Storage / Data Lake Storage Gen2 | Objects and analytics lakes | Access tiers; immutability policies |
| Microsoft Fabric / Synapse | Analytics | Fabric is Microsoft's unified analytics SaaS (OneLake) |
Integration
- Service Bus: enterprise messaging (queues, topics, sessions for ordering, transactions, duplicate detection, scheduled messages, DLQ).
- Event Grid: event routing (push), CloudEvents support, MQTT broker capability.
- Event Hubs: high-throughput streaming with Kafka protocol endpoint.
- Logic Apps: low-code integration workflows.
- API Management: gateway, developer portal, policies (rate limits, JWT validation, transformations), self-hosted gateways for hybrid.
Identity and security
- Microsoft Entra ID: workforce identity, SSO, Conditional Access, Privileged Identity Management (just-in-time admin), External ID for customers/partners.
- Managed identities for workloads: no secrets in code to access Key Vault, SQL, Storage.
- Key Vault (keys, secrets, certificates) and Managed HSM; Defender for Cloud; Microsoft Sentinel (SIEM); Azure Policy for guardrails.
Observability
Azure Monitor (metrics, Log Analytics with KQL, alerts), Application Insights (APM, distributed tracing, OpenTelemetry-based distro), Workbooks, Managed Prometheus and Managed Grafana.
Azure OpenAI and Foundry
Azure OpenAI provides OpenAI models (GPT family, embeddings, image and audio models) with Azure security: private networking, Entra ID auth, content filters, regional and data-zone deployments, provisioned throughput units. Foundry adds model catalog (OpenAI and other providers' models), agent service, evaluation, tracing and Content Safety. Azure AI Search provides hybrid/vector retrieval for RAG.
[!ARCHITECT] Azure is often chosen by Microsoft-centric enterprises: Entra ID, Microsoft 365, Windows/SQL Server licensing benefits, and hybrid needs (Azure Arc). Start from the Cloud Adoption Framework landing zone and hub-spoke or Virtual WAN networking.
Interview questions and answers
App Service, Container Apps or AKS?
App Service for straightforward web apps with minimal operations. Container Apps for containerized microservices that need scale-to-zero, Dapr and KEDA without managing Kubernetes. AKS when you need full Kubernetes control and ecosystem.
Service Bus or Event Grid?
Service Bus for reliable command/message processing with ordering, transactions and pull consumers. Event Grid for lightweight reactive event distribution (push) such as "blob created" or domain notifications.
How do workloads access Key Vault securely?
Managed identity with RBAC on the vault (least privilege per secret scope), private endpoint for the vault, disabled public access, soft delete and purge protection enabled.