Azure Core Services: VMSS, AKS, and Blob Storage

Compare Azure VM Scale Sets, AKS, Blob Storage, and managed databases, with identity guidance and examples for deploying and operating cloud workloads.

published: reading time: 35 min read author: Geek Workbench updated: November 5, 2026
Quick Summary

This guide compares Azure VM Scale Sets, Azure Kubernetes Service (AKS), Blob Storage, and managed database options. It includes CLI examples, Microsoft Entra identity guidance, and notes on regional quotas and storage tiers. Check the linked Microsoft documentation before using capacity or pricing values in a deployment.

Azure Core Services: VMSS, AKS, and Blob Storage

Azure is Microsoft’s cloud platform. This guide covers core services for deploying and operating workloads there, with examples for virtual machines, Kubernetes, object storage, and managed databases.

Documentation checked: Capacity, quota, storage-tier, database-selection, and AKS node-pool references were checked November 5, 2026; other identity and setup references were checked November 2, 2026. Limits and supported regions can change. CLI values below are examples; verify the current limit for your subscription, region, SKU, and workload before planning capacity or cost.

Azure organizes resources hierarchically under Management Groups, Subscriptions, and Resource Groups. Management groups let you apply policies and access controls across multiple subscriptions, useful for large enterprises with many teams or environments.

Introduction

Azure’s compute, storage, and database services cover common DevOps workloads. Virtual Machine Scale Sets (VMSS) manage groups of virtual machines. Azure Kubernetes Service (AKS) provides managed Kubernetes; Microsoft operates the control plane while you configure node pools and workloads. Blob Storage stores unstructured data such as images, logs, and artifacts, with lifecycle policies for moving data between access tiers. Managed database services handle much of the routine maintenance, but backup, availability, and recovery options depend on the service and tier you choose.

These services can share a workload, but they solve different problems. VMSS fits workloads that need direct control of virtual machines; AKS fits container workloads that need Kubernetes APIs; Blob Storage fits object data. Pick a database by engine, access pattern, and operational requirements rather than by cloud provider alone.

When to Use

VMSS Uniform vs. Flexible Orchestration

Choose VMSS uniform orchestration when all instances run the same workload and you want simple management. Uniform mode provisions identical VMs and is the traditional VMSS model.

Choose VMSS flexible orchestration when you need a mix of instance types in a single scale set, want explicit control over fault domain distribution, or need better availability guarantees for production workloads. Flexible mode is the newer model and recommended for new deployments.

Uniform mode is the older of the two models. Every instance in the scale set is identical, which makes billing predictable and autoscaling rules simple to reason about. The tradeoff is that you can only use one instance type per scale set. If your workload has varying compute needs, you end up managing separate scale sets. Stateless web servers, batch jobs, and any workload where every node runs the same image work fine here.

Flexible mode lets you mix instance types in one scale set. For example, a web tier could use Standard_D2s_v3 instances while a memory-heavy service uses Standard_E2s_v3. This can help when Java services need different heap sizes or an inference workload mixes CPU and GPU nodes. Flexible mode also gives you control over fault-domain distribution. Both orchestration modes work with Azure Load Balancer.

Flexible mode has configuration-specific limits. Microsoft’s current VMSS documentation lists up to 1,000 instances for eligible VM sizes and placement configurations; some combinations have a lower limit. This published cap does not reserve VM-family quota or regional capacity for a subscription. Check the current VMSS documentation and regional SKU availability before sizing a deployment. Flexible mode is a reasonable starting point for a new scale set, but an existing uniform scale set does not need migration unless the workload benefits from flexible placement or mixed VM sizes.

Factor Uniform Flexible
Instance type mixing Single type per scale set Multiple types per scale set
Billing prediction Simple (identical VMs) Requires tracking per instance type
Fault domain control Automatic Explicit per instance type
Scheduled autoscaling Fully supported Fully supported
Regional availability Check SKU and quota for the target region Check SKU, placement configuration, and quota for the target region
Maximum instances Varies by configuration and quota Up to 1,000 for supported configurations; some combinations have lower limits

The instance limits above reflect Microsoft’s documentation checked on November 5, 2026. See VMSS orchestration modes and limits before choosing a VM size or fault-domain layout.

AKS with Microsoft Entra ID vs. Local Accounts

Use Microsoft Entra ID integration when people authenticate to the Kubernetes API with organizational identities. It lets administrators manage cluster access through Entra groups and apply identity policies to human sign-ins.

Local Kubernetes accounts are useful for limited cases such as isolated labs, but they require separate credential handling. Entra ID integration does not remove Kubernetes authorization: configure Kubernetes RBAC or Azure RBAC for Kubernetes authorization and grant only the permissions users need.

With Entra ID integration, kubectl users authenticate through Microsoft Entra ID. Kubernetes RBAC can bind permissions to Entra users or groups; Azure RBAC for Kubernetes authorization is another option. These roles are separate from Azure resource permissions. Disabling an account can block future authentication, but existing credentials and cached access may take time to expire, so revoke access through the cluster’s configured authorization path as part of offboarding.

Conditional Access can add requirements such as multifactor authentication to supported Entra ID sign-ins. It governs human authentication; it does not grant Kubernetes permissions or replace Azure RBAC. Check Microsoft’s current AKS guide before enabling or changing identity integration on an existing cluster, since migration behavior can depend on its configuration.

Factor Microsoft Entra ID integration Local Kubernetes accounts
Human authentication Organizational Entra identities Separate cluster credentials
Kubernetes authorization Kubernetes RBAC or Azure RBAC for Kubernetes Kubernetes RBAC
Conditional Access Can apply to supported human sign-ins Not available through Entra ID
Azure resource permissions Assigned separately with Azure RBAC Assigned separately with Azure RBAC
Operational choice Better fit for centrally managed user access Useful for isolated labs or specific local-account cases

For AKS identity setup, see Microsoft’s current AKS identity overview and Kubernetes API authorization guide (checked November 2, 2026).

Azure DevOps vs. GitHub Actions

Choose Azure DevOps when you need deep integration with Microsoft tooling—work items, test plans, Artifacts feed, and enterprise approval workflows. Azure DevOps has stronger governance features for large organizations.

Choose GitHub Actions when your team lives on GitHub, you have many open-source projects, or you prefer YAML-based pipelines that work across any cloud. GitHub Actions has a larger marketplace of community actions.

Azure DevOps covers the full SDLC: Pipelines for CI/CD, Repos for source control, Artifacts for packages, and Test Plans for testing. That can help when several teams share infrastructure or need approval gates. Pipelines supports YAML and the classic visual editor. Azure Artifacts supports universal feeds, NuGet, npm, and Maven packages, with cross-project sharing.

GitHub Actions keeps workflows in each repository’s .github/workflows/ directory. Its community marketplace has many integrations for third-party services. Approval workflows use environment protection rules; Azure DevOps release gates offer different controls. GitHub Packages and Azure Artifacts also have different sharing models, so compare them if teams need to consume packages across repositories.

Runner startup time depends on the runner type and current queue. Compare both services with the jobs your team runs. GitHub Actions connects to Azure with actions such as azure/login@v2; Azure Pipelines uses a service connection. GitHub Actions workflows may be easier to reuse across clouds when they avoid Azure-specific tasks.

Factor Azure DevOps GitHub Actions
Scope Organization-wide (multiple repos) Per-repository
Artifact hosting Azure Artifacts (cross-project) GitHub Packages (per-repo)
Approval workflows Release gates, stage approvals Environment protection rules
Marketplace size Azure Pipelines task gallery Larger community actions marketplace
Microsoft integration Deep (full SDLC suite) Good (azure/login action)
Cross-cloud portability Azure-centric Works across any cloud

When Not to Use Azure

Avoid VMSS flexible orchestration when you want simple, identical VM management. Uniform mode has less operational complexity and works well for homogeneous workloads.

Avoid local Kubernetes accounts as the default for a production team when centralized Entra ID authentication is available. Keep local access only where its separate credential lifecycle is understood and managed.

Avoid Azure DevOps if your team is GitHub-centric or prefers working across multiple clouds. Azure DevOps has strong Microsoft integration but adds lock-in that becomes a burden for cross-platform teams.

Avoid choosing a Blob Storage tier from capacity price alone. Cool and Cold have minimum retention periods and higher access charges; Archive is offline and requires rehydration before reading. Compare storage, transaction, retrieval, and early-deletion costs for your access pattern.

Azure Resource Hierarchy

Resource groups are logical containers for Azure resources. They hold resources that share a lifecycle, so teams can deploy and delete them together. Resource groups live within subscriptions, which bill the contained resources under an account.

# Create a resource group
az group create \
  --name rg-production \
  --location eastus

# List resource groups
az group list --output table

# Show a specific resource group
az group show --name rg-production

Tags attach metadata to resources independent of resource group boundaries. Common tags include Environment, Team, CostCenter, and Application. Azure Policy can enforce required tags and restrict which resources can be created without them.

Azure subscriptions act as billing and access control boundaries. Many organizations use separate subscriptions per environment or per application domain. Management groups sit above subscriptions and let you apply governance across the entire Azure footprint from a single point.

flowchart TD
    A[Management Group] --> B[Subscription: Production]
    A --> C[Subscription: Development]
    B --> D[Resource Group: rg-prod-api]
    B --> E[Resource Group: rg-prod-web]
    C --> F[Resource Group: rg-dev-services]
    D --> G[AKS Cluster]
    D --> H[VMSS]
    D --> I[Blob Storage]
    E --> J[Azure SQL]
    G --> K[System Node Pool]
    G --> L[User Node Pool]
    K --> M[CoreDNS Pods]
    L --> N[App Pods]

VMSS for Scalable Compute

Virtual Machine Scale Sets (VMSS) provision and manage multiple VMs as a single set. They automatically balance across fault domains and update domains for high availability. VMSS is Azure’s equivalent to AWS Auto Scaling Groups.

# Create a VMSS
az vmss create \
  --name webapp-vmss \
  --resource-group rg-production \
  --image UbuntuLTS \
  --instance-count 2 \
  --vm-sku Standard_D2s_v3 \
  --load-balancer my-load-balancer \
  --upgrade-policy-mode automatic

# Scale out manually
az vmss scale \
  --name webapp-vmss \
  --resource-group rg-production \
  --new-capacity 5

# Configure autoscaling
az monitor autoscale create \
  --resource-group rg-production \
  --resource webapp-vmss \
  --resource-type Microsoft.Compute/virtualMachineScaleSets \
  --name webapp-autoscale \
  --min-count 2 \
  --max-count 10 \
  --count 2

VMSS supports both uniform scaling (all instances identical) and flexible orchestration (mixtures of instance types). Flexible orchestration mode is newer and provides better availability guarantees with explicit control over fault domain distribution.

AKS Cluster Configuration

Azure Kubernetes Service (AKS) provides managed Kubernetes clusters. Microsoft handles the control plane, including upgrades and availability. You manage worker nodes through node pools.

# Create an AKS cluster
az aks create \
  --resource-group rg-production \
  --name aks-cluster \
  --node-count 3 \
  --vm-set-type VirtualMachineScaleSets \
  --load-balancer-sku standard \
  --enable-cluster-autoscaler \
  --min-count 2 \
  --max-count 5

# Get credentials for kubectl
az aks get-credentials \
  --resource-group rg-production \
  --name aks-cluster

# Check cluster status
az aks show --resource-group rg-production --name aks-cluster

AKS integrates with Microsoft Entra ID for human authentication, Azure Monitor for observability, and Azure Policy for governance. The Azure Policy add-on evaluates cluster configurations against organizational policies.

# node-pool addition via az CLI
az aks nodepool add \
  --resource-group rg-production \
  --cluster-name aks-cluster \
  --name systempool \
  --node-count 2 \
  --node-vm-size Standard_D2s_v3 \
  --mode System

# User node pool for workloads
az aks nodepool add \
  --resource-group rg-production \
  --cluster-name aks-cluster \
  --name userpool \
  --node-count 2 \
  --node-vm-size Standard_D4s_v3 \
  --mode User

System node pools are intended for critical system pods such as CoreDNS and metrics-server; user node pools are intended for application workloads. A system pool must have at least two nodes. A separate pool does not reserve CPU or memory, and the System mode alone does not keep application pods off that pool. To dedicate a system pool, use AKS’s documented CriticalAddonsOnly=true:NoSchedule taint and leave enough node capacity for the system pods. See Microsoft’s system node pool guidance (checked November 5, 2026).

Blob Storage Lifecycle Policies

Azure Blob Storage holds unstructured data such as images, logs, backups, and artifacts. Data is organized into containers and blobs, the objects stored in those containers.

# Create a storage account
az storage account create \
  --name mystorageaccount \
  --resource-group rg-production \
  --sku Standard_LRS

# Create a container
az storage container create \
  --name artifacts \
  --account-name mystorageaccount

# Upload a blob
az storage blob upload \
  --file ./app.tar.gz \
  --name prod/app.tar.gz \
  --container-name artifacts \
  --account-name mystorageaccount

# List blobs in container
az storage blob list \
  --container-name artifacts \
  --account-name mystorageaccount

Lifecycle management policies automate data transitions between access tiers and cleanup of old data.

{
  "rules": [
    {
      "name": "artifact-lifecycle",
      "enabled": true,
      "type": "Lifecycle",
      "definition": {
        "filters": {
          "blobTypes": ["blockBlob"],
          "prefixMatch": ["artifacts/prod/"]
        },
        "actions": {
          "baseBlob": {
            "tierToCool": {
              "daysAfterModificationGreaterThan": 30
            },
            "delete": {
              "daysAfterModificationGreaterThan": 365
            }
          }
        }
      }
    }
  ]
}
# Apply lifecycle policy
az storage account management-policy create \
  --account-name mystorageaccount \
  --policy @policy.json

Choosing an Azure Database

Azure SQL Database uses the SQL Server database engine. Azure Database for PostgreSQL and Azure Database for MySQL are separate managed services with their own engines. Choose by the application’s query patterns, data model, compatibility needs, and operating requirements. Microsoft’s data-store selection guide recommends starting with the workload’s access patterns, then comparing consistency, latency, scale, governance, and cost.

Option Consider it when Check before choosing
Azure SQL Database The application needs a managed relational database using the SQL Server engine, T-SQL, or SQL Server ecosystem compatibility. Feature compatibility, vCore or DTU purchasing model, service tier, region, and migration requirements.
Azure Database for PostgreSQL Flexible Server The application uses PostgreSQL or needs PostgreSQL extensions and tooling. Supported engine version, extensions, region, compute tier, backup, and high-availability configuration.
Azure Database for MySQL Flexible Server The application uses MySQL-compatible software and tooling. Supported engine version, region, compute tier, backup, and high-availability configuration.
Azure Cosmos DB The application needs a globally distributed NoSQL data model with a defined partition and consistency strategy. API choice, partition key, consistency level, request-unit model, and regional write/read needs.

These names and product boundaries were checked on November 5, 2026. See the Azure SQL Database overview, Azure Database for PostgreSQL, and Azure Database for MySQL documentation for current features and availability.

Azure SQL Database and Managed Identity

Azure SQL Database is a fully managed relational database service based on the SQL Server database engine. It is not the PostgreSQL or MySQL service; those are separate Azure products. Azure SQL Database offers vCore and DTU purchasing models. The vCore model lets you choose provisioned or serverless compute, while DTU bundles compute, memory, and I/O. Compare the models with your own workload instead of treating a sample tier as a production recommendation. See Microsoft’s vCore and DTU purchasing model comparison (checked November 5, 2026).

# Example: create an Azure SQL logical server
az sql server create \
  --name sqlserver-production \
  --resource-group rg-production \
  --admin-user dbadmin \
  --admin-password "$SQL_ADMIN_PASSWORD"

# Create a database
az sql db create \
  --resource-group rg-production \
  --server sqlserver-production \
  --name webappdb \
  --service-objective S0

# Configure a managed identity on an App Service
az webapp identity assign \
  --resource-group rg-production \
  --name webapp

S0 is an example DTU service objective, not a sizing recommendation. For a workload, compare supported purchasing models, regional availability, and current pricing, then test with representative queries and data.

Managed identities let supported Azure workloads request tokens without storing a client secret in application configuration. App Service and VMs can use managed identities directly. For AKS pods, Microsoft recommends Microsoft Entra Workload ID: it federates a Kubernetes service account token with a managed identity or Entra application. This requires the cluster’s OIDC issuer and workload identity features to be enabled; grant the identity only the permissions it needs.

// .NET - connecting with managed identity
var connection = new SqlConnection(
    "Server=tcp:sqlserver-production.database.windows.net;Database=webappdb;Authentication=Active Directory Managed Identity;"
);

Do not use the deprecated Microsoft Entra pod-managed identity for new AKS workloads. See Microsoft’s Microsoft Entra Workload ID guide (checked November 2, 2026) for setup and migration details.

Azure DevOps vs GitHub Actions

Azure DevOps and GitHub Actions are the two main CI/CD options for Azure workloads. Azure DevOps has deep integration with Microsoft tooling and enterprise features like work item tracking. GitHub Actions integrates naturally with GitHub repositories and open-source projects.

# GitHub Actions workflow for Azure
name: Deploy to Azure

on:
  push:
    branches: [main]

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Azure Login
        uses: azure/login@v2
        with:
          creds: ${{ secrets.AZURE_CREDENTIALS }}

      - name: Deploy to App Service
        uses: azure/webapps-deploy@v3
        with:
          app-name: my-webapp
          slot-name: production
          package: ./dist
# Azure DevOps pipeline
trigger:
  - main

pool:
  vmImage: ubuntu-latest

stages:
  - stage: Build
    jobs:
      - job: BuildJob
        steps:
          - task: UseDotNet@2
          - script: dotnet build
  - stage: Deploy
    jobs:
      - deployment: DeployJob
        environment: production
        strategy:
          runOnce:
            deploy:
              steps:
                - task: AzureWebApp@1
                  inputs:
                    azureSubscription: "my-subscription"
                    appName: "my-webapp"

Both integrate with Azure resources through service connections. The choice often comes down to where your code lives and which tool your team already uses.

For more on managing Azure costs, see our post on Cost Optimization.

Compute Service Trade-offs

Scenario VMSS Uniform VMSS Flexible AKS Azure App Service
Mixed instance types No Yes Yes No
Kubernetes ecosystem No No Yes No
Platform-managed upgrades Yes Limited Yes (control plane) Yes
Scale to zero No No No Yes
Pay-per-second billing No No No (per node) Yes (Consumption plan)
Scale limit Depends on VMSS configuration and quota Depends on VMSS configuration and quota Depends on node-pool, region, and subscription limits Depends on the App Service plan and quota

Blob Storage Access Tiers

Tier Use case Trade-off
Hot Frequently read or modified data Higher storage cost, lower access cost
Cool Infrequently accessed data that must stay online Lower storage cost, higher access cost; general-purpose v2 accounts have a 30-day minimum retention period
Cold Rarely accessed data that still needs online access Lower storage cost, higher access cost; general-purpose v2 accounts have a 90-day minimum retention period
Archive Rarely accessed data with flexible retrieval time Offline; rehydrate before reading, and general-purpose v2 accounts have a 180-day minimum retention period

These tier descriptions and retention periods were checked November 5, 2026. The minimum periods describe early-deletion billing windows, not a requirement to keep every blob for that long. Region, account type, redundancy, read rate, retrieval, and early-deletion charges affect total cost. See Microsoft’s Blob Storage access tier guide before setting lifecycle rules.

Production Failure Scenarios

Failure Impact Mitigation
VMSS flexible orchestration zone spread failure Instances cannot spread across fault domains, availability reduced Plan zone distribution before deploying, test failure domain behavior
AKS node pool out-of-capacity errors Pods unschedulable, deployments fail Monitor quota in each region, request increases proactively
Azure SQL connection pooling exhaustion Applications cannot get connections, requests queue and fail Set appropriate pool size, monitor active connections, implement retry logic
Blob storage lifecycle policy misconfiguration causing data loss Old data deleted prematurely or hot storage bills spike Test lifecycle policies on non-production buckets first, set up alerts on storage costs
Microsoft Entra Workload ID misconfiguration locking out AKS pods Pods cannot authenticate to Azure resources, services fail Test service-account federation and resource permissions in a non-production cluster

Azure Observability Hooks

VMSS and AKS monitoring:

# Check VMSS instance health
az vmss list-instance-connection-info \
  --resource-group rg-production \
  --name webapp-vmss

# Get AKS cluster health and node status
az aks show \
  --resource-group rg-production \
  --name aks-cluster \
  --query '{status:provisioningState,version:kubernetesVersion}'

# List nodes and their status
kubectl get nodes -o wide

Azure Monitor for containers:

# Enable monitoring on AKS
az aks enable-addons \
  --resource-group rg-production \
  --name aks-cluster \
  --addons monitoring

# View container logs
az aks show \
  --resource-group rg-production \
  --name aks-cluster \
  --query addonProfiles.omsagent.config.loganalyticsworkspacerresourceid

Key Azure Monitor metrics to alert on:

The values below are starting examples, not Azure defaults or universal limits. Set thresholds from a service baseline and its user-facing SLO, then review them when the workload, tier, or region changes.

Service Metric Alert Threshold
VMSS CPU utilization > 80% for 5 minutes
VMSS Available memory < 20% for 3 minutes
AKS Pod unschedulable time > 1 minute
AKS Node pressure evictions any evictions
Azure SQL DTU utilization > 80% for 5 minutes
Azure SQL Connection failures > 5 in 5 minutes
Blob Storage Transactions error rate > 1%
Blob Storage Used capacity > 80% of quota

Common Pitfalls / Anti-Patterns

Not using managed identities. Embedding connection strings or API keys in configuration files is a security risk and a rotation nightmare. Azure managed identities eliminate credentials from code entirely.

Using admin passwords instead of key-based authentication. For VMs and databases, key-based authentication with Azure Key Vault integration is more secure and easier to rotate than passwords.

Leaving resources in the wrong resource group. Resources in a group often share a lifecycle. Mixing production and development resources can make a cleanup operation delete the wrong environment.

Not using Azure Policy to enforce tagging. Without Azure Policy, resources get created without required tags, making cost attribution and automation harder. Set policy enforcement before creating resources at scale.

Deploying to the wrong subscription. A subscription may lack the quota, policy assignments, network access, or ownership boundaries intended for a workload. Select the target subscription and region, then check quota before deploying. Use Management Groups to organize subscriptions by environment and team.

Capacity and Performance Limits

The limits and guidance here were checked against Microsoft documentation on November 5, 2026. They are published service limits or high-end targets, not performance benchmarks or capacity guarantees. VM size, region, subscription quota, storage access pattern, database tier, and workload all affect the result. Confirm the current limit for your deployment before capacity planning.

  • VMSS: Flexible orchestration supports up to 1,000 instances for eligible configurations; VM size and placement can lower that limit. Network throughput is specific to the VM size. See the VMSS orchestration limits and VM network throughput reference.
  • AKS: For VM Scale Set-backed clusters with Standard Load Balancer, Microsoft’s quotas page lists a 5,000-node cluster maximum, up to 1,000 nodes per node pool, and up to 100 node pools. It lists a maximum of 250 pods per node, while defaults depend on the network plugin and deployment method. These are published service limits, not a capacity guarantee: subscription and regional vCPU quotas, VM SKU availability, and address space can constrain a deployment. Check the AKS quotas and region availability reference for the target subscription and region.
  • Blob Storage: Request-rate and ingress/egress targets vary by region and account type, and depend on object size, access pattern, and workload. Treat them as high-end targets rather than a promise for a particular application; measure representative traffic and check Microsoft’s standard account scale targets (checked November 5, 2026).
  • Azure SQL Database: Compute, memory, storage, and I/O depend on the purchasing model, tier, and configuration. There is no single connection limit or benchmark that applies to every database. Compare the vCore and DTU purchasing models, then test with representative queries and concurrency.

Interview Questions

1. When would you choose VMSS flexible orchestration over uniform mode?

Flexible orchestration is the right choice when you need to mix instance types within a single scale set—for example, combining general-purpose VMs with memory-optimized ones for different workloads on the same cluster. It also gives you explicit control over fault domain distribution, which matters for high-availability production workloads. Uniform mode works fine when all instances run identical workloads and you want minimal operational complexity.

2. What does Microsoft Entra ID integration change for AKS users?

It lets people authenticate to the Kubernetes API with their organizational identities and lets administrators manage group membership centrally. You still need to grant Kubernetes permissions through Kubernetes RBAC or Azure RBAC for Kubernetes authorization. Local Kubernetes accounts remain a separate credential path and need their own lifecycle and access controls.

3. How do managed identities work in Azure and why are they preferred over connection strings?

Managed identities attach an Azure IAM principal directly to a compute resource—App Service, VM, or AKS pod. When the resource needs to access another Azure service, Azure handles token issuance automatically. The credentials never touch your code or configuration files. Connection strings, by contrast, are secrets that sit in configuration files, get logged sometimes, and require rotation when anyone who had access leaves. If a connection string leaks, you have to rotate it everywhere. Managed identities eliminate that entire class of risk.

4. Design an Azure Blob Storage lifecycle policy for a CI/CD artifacts pipeline.

Start with access logs and the release-retention policy. Keep artifacts that deployments still use online. Move older blobs to Cool or Cold only when read frequency justifies the higher access charges, and use Archive only when an hours-long retrieval delay is acceptable. Check the tier table above for the current general-purpose v2 early-deletion periods. Apply separate rules to production and test prefixes, then verify that a restore still works before relying on the policy.

5. Compare Azure DevOps versus GitHub Actions for an Azure deployment pipeline.

Azure DevOps wins when you need deep Microsoft integration—work items, test plans, Artifacts feeds, and enterprise approval workflows with strong governance. GitHub Actions wins when your team lives on GitHub, you have many open-source projects, or you want YAML pipelines that work across any cloud. GitHub Actions has a larger marketplace of community actions. The real answer often comes down to where your code lives and which tool your team already knows. Both integrate with Azure through service connections.

6. How does Azure Monitor autoscale work for VMSS and what metrics should you monitor to trigger scale-out events?

Azure Monitor evaluates the metric and rules you configure. A CPU threshold such as 80% over five minutes can be a starting experiment, but it is not a universal target; test it against the service's latency and queueing behavior. Define minimum and maximum instance counts, scale-out and scale-in actions, and a cooldown period. Watch for oscillation and set a maximum that keeps the cost within the service budget.

7. What are Azure Resource Locks and when would you apply them versus using Azure Policy for governance?

Resource locks attach to a resource or resource group. A Delete lock blocks deletion, while a ReadOnly lock blocks changes through supported control-plane operations. Azure Policy evaluates compliance at a management group, subscription, or resource group scope. Use a lock to guard a production resource from accidental changes. Use Policy when you need a rule applied across an environment, such as required tags or allowed regions.

8. Design a multi-region Azure deployment strategy for a web application using VMSS and Blob Storage.

For multi-region resilience: deploy VMSS in at least two regions, each in its own availability zone where available. Use Azure Traffic Manager or Front Door for global load balancing — it routes traffic to the healthy region based on latency or failover priority. Replicate Blob Storage using RA-GRS (Read-Access Geo-Redundant Storage) so the secondary region has a readable copy for read-heavy workloads. For database, use Azure SQL with active geo-replication or Azure Database for PostgreSQL with a replica in the secondary region. Set up async replication for state — sessions and user data go to a distributed cache (Azure Cache for Redis) or database, not local VMSS disk. Test regional failover quarterly.

9. How do you upgrade an AKS cluster with minimal downtime, and what are the key considerations for maintaining application availability during the upgrade?

AKS handles control plane upgrades automatically. Worker node upgrades are your responsibility. Start by upgrading the node pool to a new Kubernetes version, which requires reimaging the nodes. Use surge zones: set maxSurge: 1 on your node pools so that during upgrade, AKS provisions a new node before draining an old one, keeping capacity available. Run application workloads across multiple replicas distributed across node pools. Keep at least two node pools on different versions during the upgrade window so pods can migrate. After upgrading, verify that your applications still work — run smoke tests against the upgraded cluster before updating production.

10. What is Azure Private Link and when should you use it versus Service Endpoints for securing access to PaaS services?

Azure Private Link exposes a PaaS service (Azure SQL, Blob Storage, Key Vault) via a private IP address in your VNet. Traffic from your VNet to the service traverses the Microsoft backbone, never the public internet. Service Endpoints provide access to PaaS services from your VNet but the traffic still goes over the public Microsoft network path. Private Link is preferred when you need the highest security — it eliminates public internet exposure entirely and gives you granular RBAC control over which subnets can access the service. Private Link also works across tenants, making it suitable for accessing shared services in a hub-spoke architecture. Use Service Endpoints when Private Link is not available for the service or when operational simplicity is more important than maximum security.

11. How does Azure RBAC work at the resource and resource group level, and what are common mistakes in assigning roles to service principals?

Azure RBAC uses a role definition (like Contributor or Reader) assigned to a security principal (user, group, or service principal) at a scope (subscription, resource group, or individual resource). Permissions inherit downward — a role at the resource group level grants access to all resources in that group. Common mistakes: assigning Contributor at the subscription level when you only need it on a specific resource, leading to overpermission. Using the same service principal for multiple applications, making it hard to rotate credentials without affecting multiple services. Not scoping to least privilege — for an AKS cluster, the node pool service principal only needs access to the resource group it lives in, not the whole subscription.

12. How do you configure a managed identity for an AKS pod to access Azure resources without storing credentials in the application?

Use Microsoft Entra Workload ID for new AKS workloads. Enable the cluster's OIDC issuer and workload identity features, then federate a Kubernetes service account with a managed identity or Entra application. Assign that identity only the Azure permissions the pod needs. The older Microsoft Entra pod-managed identity add-on is deprecated and should not be used for new deployments. See Microsoft's Workload ID overview for setup steps.

13. Explain Azure Storage account redundancy options — LRS, ZRS, GRS, GZRS — and when you would choose each.

LRS (Locally Redundant Storage) replicates within a single data center — lowest cost, protects against hardware failure but not data center outages. ZRS (Zone Redundant Storage) replicates across three availability zones in one region — protects against zone failures, good for most production workloads. GRS (Geo-Redundant Storage) replicates to a paired region — protects against regional outages but requires manual failover. GZRS (Geo-Zone Redundant Storage) combines zone redundancy in the primary region with geo-replication to a paired region — maximum durability. Choose LRS for dev/test with low data value. Choose ZRS for production workloads where you need availability zone resilience. Choose GRS or GZRS for disaster recovery scenarios where a full region outage is unacceptable.

14. How do you use Azure Cost Management and Budgets to control spending across multiple subscriptions and resource groups?

Set budgets at the subscription, resource group, or resource level. In Cost Management, create a budget with a threshold (e.g., 80% of monthly spend) and assign alert recipients. Budget alerts can trigger emails, webhook notifications, or Azure Action Groups for automated responses (like scaling down non-production resources). Scope budgets to the level you can act on — if you have one team per resource group, budget per resource group so the team gets direct alerts. Use cost analysis views to identify which resources drive spend — VMSS instances, managed disk storage, and outbound bandwidth are the usual suspects.

15. How does Azure Blob Storage immutability work and what are the scenarios where you would use it for compliance?

Blob Storage immutability lets you set a retention policy on a container — blobs cannot be modified or deleted for the duration you specify. You can also enable legal hold, which immutably stores blobs until you explicitly release the hold. Use cases: regulatory compliance requiring audit trails (SEC Rule 17a-4 for financial records, HIPAA for health data), preventing accidental deletion of backup data, and ensuring logs cannot be tampered with for forensic purposes. When you create an immutable storage policy, you specify a days-based retention period. After setting it, the only way to remove it is to first delete all blobs in the container — you cannot delete the policy with live blobs.

16. How does Conditional Access fit with AKS cluster access?

Conditional Access can apply requirements such as multifactor authentication to supported Microsoft Entra sign-ins used by people accessing the AKS API. It does not assign Kubernetes permissions; use Kubernetes RBAC or Azure RBAC for Kubernetes authorization for that. A Kubernetes service-account token is a workload credential, so do not describe Conditional Access as a control that blocks a compromised pod token. Test policy changes with a limited group and report-only mode before enforcing them.

17. How do you handle Azure SQL cross-region disaster recovery and what is the difference between active geo-replication and auto-failover groups?

Active geo-replication creates readable secondary replicas in different regions — you can use these for read-scale workloads and manual failover. Auto-failover groups are a higher-level construct: they manage replication and automatic failover for a group of databases together. Use auto-failover groups when you want automatic failover for your application database — it handles DNS updates so your connection string does not change when failover occurs. Geo-replication gives you more control but requires you to manually trigger failover. For most production workloads, auto-failover groups with at least one secondary in a paired region is the recommended approach. Test failover annually.

18. What are the differences between Azure App Configuration and Key Vault for managing application configuration, and when would you use each?

Key Vault stores secrets — credentials, API keys, certificates — things that must be encrypted and access-controlled with strict RBAC. App Configuration stores application settings — feature flags, connection strings with non-secret values, environment-specific configuration. App Configuration supports dynamic refresh without redeployment, making it ideal for feature flags and runtime configuration. Key Vault does not support dynamic refresh — secrets require application restart to pick up changes. Use Key Vault for everything that is a secret: database passwords, API tokens, storage keys. Use App Configuration for configuration that changes frequently or needs to vary by environment without redeployment.

19. How do you design a Hub-and-Spoke network topology in Azure and what are the benefits for DevOps teams managing multiple workloads?

The hub is a central VNet that contains shared services — firewall (Azure Firewall or third-party NVA), VPN gateway, ExpressRoute connection, and Active Directory domain controllers. Each spoke is a separate VNet for a workload or team. VNet peering connects spokes to the hub but not to each other, reducing lateral movement risk. The hub provides centralized network security and governance — all traffic between spokes flows through the hub's firewall, giving you a single point of inspection. For DevOps: each team gets their own subscription and spoke VNet, isolation is built in, and shared services (like a CI/CD agent VNet with a self-hosted runner) live in the hub. This approach scales to many teams without each team needing to manage their own firewall and connectivity infrastructure.

20. How does Azure Azure Policy's Guest Configuration work and how would you use it to audit container runtime settings on VMs?

Guest Configuration (part of Azure Policy) lets you audit settings inside virtual machines, including the containers running on them. You create a Guest Configuration assignment that targets your VM scale sets or individual VMs. The policy definition specifies the desired state — for example, a Docker daemon should not be running, or a specific container runtime configuration should be set. The Guest Configuration extension on the VM reports compliance status back to Azure Policy. You can see compliance in the Azure Policy compliance dashboard. For container security, this lets you audit that container runtimes are configured according to your organizational standards without deploying additional agents.

Further Reading

Conclusion

Key Takeaways

  • Azure resource hierarchy flows Management Groups → Subscriptions → Resource Groups
  • VMSS flexible orchestration mode is recommended for new production deployments
  • AKS can use Microsoft Entra ID for human authentication; Kubernetes authorization must still be configured.
  • Managed identities replace connection strings for Azure SQL, Blob Storage, and other Azure resources
  • Azure Policy enforces tagging and resource governance at the subscription level

Azure Onboarding Checklist

# 1. Set up a Management Group for your organization
az account management-group create --name my-org --display-name "My Organization"

# 2. Create a subscription for production
az account management-group subscription add \
  --name my-org \
  --subscription my-subscription-id

# 3. Create a resource group
az group create --name rg-production --location eastus

# 4. Create a Standard AKS cluster with Microsoft Entra ID integration
az aks create \
  --resource-group rg-production \
  --name aks-cluster \
  --node-count 3 \
  --enable-aad \
  --enable-azure-rbac \
  --enable-oidc-issuer \
  --enable-workload-identity

# 5. Enable Azure Policy on the cluster
az aks enable-addons \
  --resource-group rg-production \
  --name aks-cluster \
  --addons azure-policy

# 6. Create a storage account with lifecycle policy
az storage account create \
  --name mystorageaccount \
  --resource-group rg-production \
  --sku Standard_LRS

Category

Related Posts

Azure Data Pipelines with Event Hubs and Synapse

Follow live events and scheduled data through Azure processing, Data Lake Storage Gen2, and Synapse, with a clear choice between stream and batch paths.

#data-engineering #azure #data-factory

Data Migration: Strategies and Patterns for Moving Data

Plan data movement between systems with CDC, staged cutovers, validation gates, and recovery paths. Learn where schema migration is a separate concern.

#data-engineering #data-migration #cdc

AWS Compute Choices for DevOps Workloads

Choose compute for a small web and order workload with a practical guide to EC2, ECS, Fargate, EKS, Lambda, and S3's supporting role.

#aws #cloud #devops