Designing Operations and Automation: Infrastructure as Code, Pipelines, Update Management and Deployment Strategies

Microsoft Azure Architect Design AZ 301 55 min min read Updated: Nov 17, 2026 Advanced
Designing Operations and Automation: Infrastructure as Code, Pipelines, Update Management and Deployment Strategies
Advanced Topic 3 of 3

Principles

  • Everything in code: infrastructure, configuration and pipelines in Git
  • Immutable deployments: replace, do not hand-fix
  • Small, frequent, reversible releases
  • Automate tests and checks before production

IaC Choices

ToolChoose when
BicepAzure-only teams. Native support on day one
TerraformMulti-cloud or an existing Terraform practice. Needs remote state
ARM JSONExisting templates
Pulumi / CDKPrefer general-purpose languages
  • Use modules and a registry for reuse
  • Run what-if or plan in pull requests
  • Deployment stacks manage lifecycle and prevent unwanted changes
  • Separate platform pipelines (landing zones) from application pipelines

Pipeline Design

text Pull request: lint -> unit tests -> IaC validate / what-if -> security scan (code, containers, IaC) Merge to main: build artifact/image -> deploy to Dev -> integration tests -> deploy to Staging -> load/smoke tests -> manual approval -> deploy to Prod -> health check -> auto rollback on failure
  • Authenticate with workload identity federation (OIDC), no stored secrets
  • Use environments, approvals and branch protection
  • Store secrets in Key Vault; configuration in App Configuration
  • Tag builds with the commit id for traceability

Deployment Strategies

StrategyHowRisk and cost
In-place / rollingUpdate instances in batchesLow cost, some mixed versions
Blue-greenDeploy new environment, switch traffic, keep old for rollbackFast rollback, double capacity temporarily
CanarySend a small percentage of users to the new version firstSafest, needs traffic splitting and good monitoring
Feature flagsShip code off, turn on graduallyDecouples deploy from release
  • App Service deployment slots: deploy to staging, warm up, swap
  • Front Door or Application Gateway weighted routing for canary
  • AKS rolling updates, Argo Rollouts or Flagger for canary

Patching and Configuration

TaskTool
OS patching schedules and complianceAzure Update Manager
Desired state and guest settingsAzure Policy guest configuration, Automanage
Hybrid serversAzure Arc
App settings and flagsApp Configuration
Scheduled tasks and runbooksAzure Automation, Logic Apps, Functions timers

Practice

  1. Draw a pipeline with four environments and approvals
  2. Choose a deployment strategy for a payment service and for a marketing site
  3. List what must be in Git for a complete rebuild

Conclusion

Operate with code: IaC, pipelines with federated identity and approvals, safe deployment strategies such as blue-green and canary, and automated patching and configuration.

Quick Summary: principles; IaC; pipelines; strategies; patching and configuration.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators