---
title: "Discussion on \"Blue-green Deployments in Azure DevOps YAML Pipelines\" | Hashnode"
description: "Discussion on \"Blue-green Deployments in Azure DevOps YAML Pipelines\". Zero Downtime Deployments with  App Service Slots"
url: "https://hashnode.com/posts/blue-green-deployments-in-azure-devops-yaml-pipelines/650181768843979c5285dd39"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Blue-green Deployments in Azure DevOps YAML Pipelines](https://bogdanbujdea.dev/blue-green-deployments-in-azure-devops-yaml-pipelines?utm_source=hashnode&utm_medium=feed)

Zero Downtime Deployments with App Service Slots

Sep 13, 2023 · 5 min read · bogdanbujdea.dev  
Updated Sep 20, 2023  
Read the article

-   [#azure-devops](https://hashnode.com/tag/azure-devops)
-   [#bluegreen-deployment](https://hashnode.com/tag/bluegreen-deployment)
-   [#azure-pipelines](https://hashnode.com/tag/azure-pipelines)
-   [#programming](https://hashnode.com/tag/programming)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[Bogdan Bujdea](https://hashnode.com/@bogdan)

@bogdan · Iasi, Romania

  
[View profile](https://hashnode.com/@bogdan)

.NET Developer

Expert generalist • Independent Contractor • Microsoft MVP • Home Assistant enthusiast Hi there! I'm Bogdan Bujdea, a software developer from Romania. I'm currently a .NET independent contractor, and in my free time I get involved in the local .NET community or I'm co-organizing the @dotnetdays conference. I consider myself an expert generalist, mostly because I enjoy trying out new stuff whenever I get the chance and I get bored pretty easily, so on this blog you'll see me posting content from programming tutorials to playing with my smart gadgets.

## Responses 1

Markdown supported · ⌘↵ to post

[Marko Spasenovski](https://hashnode.com/@mspasenovski)

[Sep 22, 2023](https://hashnode.com/posts/blue-green-deployments-in-azure-devops-yaml-pipelines/650181768843979c5285dd39/comment/650d52b3939d972b99324eeb)

Great read! I have two question, is there a way to specify the destination slot through the YAML? And if the traffic is redirected to the staging slot, when do we switch the traffic back to the production slot? Because if the YAML stays like this, each pipeline run would always deploy to the staging slot and then switch the traffic.
