Mid DevOps

Testing and validating pipeline parity. Scenario: A company using Jenkins moves to Azure DevOps to unify code and pipelines. They convert Jenkinsfile logic to YAML, using tasks like DotNetCoreCLI@2 and AzureWebApp@1. Eventually, builds run in Azure-hosted agents with better visibility and governance. 11⃣ How would you implement zero-downtime deployment for an ASP.NET Core API?

Zero-downtime means your API stays live while deploying new versions.

Ways to achieve it:

  • Use Azure App Service Deployment Slots (swap after warm-up).
  • Use Blue-Green or Rolling Deployment strategy.
  • Run health checks before swapping traffic.

Example:

  • task: AzureAppServiceManage@0

inputs:

Action: 'Swap Slots'

WebAppName: 'myapi-prod'

SourceSlot: 'staging'

TargetSlot: 'production'

Follow:

Scenario:

You deploy the new API version to the staging slot.

Once tests confirm it’s healthy, you swap slots — users never see downtime, and rollback is

instant if something goes wrong.

✅ Pro Tip (for interviews):

If asked about real-world Azure DevOps experience, tie your answers to process +

reliability:

“We used multi-stage YAML pipelines with Azure Key Vault integration for secret

management, Bicep for infrastructure, and App Insights for monitoring —

ensuring secure, automated, and zero-downtime releases.”

Follow:

More from Microsoft Azure Tutorial

All questions for this course