Mid Azure

How do you implement stage-based deployment?

  • Define stages in YAML for Dev, QA, Staging, and Production.
  • Example:

stages:

  • stage: Build

jobs:

  • job: BuildJob

steps:

  • script: dotnet build
  • stage: Deploy

dependsOn: Build

jobs:

  • deployment: DeployJob

environment: 'Production'

strategy:

runOnce:

deploy:

steps:

  • script: echo Deploying to Production

More from Microsoft Azure Tutorial

All questions for this course