---
title: "Comment by Marko Spasenovski on \"Blue-green Deployments in Azure DevOps YAML Pipelines\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/blue-green-deployments-in-azure-devops-yaml-pipelines/650181768843979c5285dd39/comment/650d52b3939d972b99324eeb"
---

[Discussion](https://hashnode.com/posts/blue-green-deployments-in-azure-devops-yaml-pipelines/650181768843979c5285dd39)

Comment [Blue-green Deployments in Azure DevOps YAML Pipelines](https://hashnode.com/posts/blue-green-deployments-in-azure-devops-yaml-pipelines/650181768843979c5285dd39)

[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.
