1
  • Add a task to all the deployment pipelines to first start the staging slot
  • Add task to all the deployment pipelines to stop the staging slot after the slot swap is successful

Tried this solution. ( Stop deployment slot after X time - Azure YAML Pipelines ) but it's not picking up right slot. Any other solution for this problem?

Anonymous
  • 11
  • 1

1 Answers1

1

Add a task to all the deployment pipelines to first start the staging slot

In Azure Devops, open your Project and navigate to your pipeline.

  • In your Pipleline, click on Edit.

enter image description here

  • In the Right pane, Under Tasks option select Azure App Service Manage.

enter image description here

  • Provide the Subscription and Authorize.

  • Specify the Action as Start App Service and select your App Service.

  • Select the Specify Slot option.

  • Select the slot as Deployment.

enter image description here

  • Add the task.
  • Add task to all the deployment pipelines to stop the staging slot after the slot swap is successful
  • Add new task with Stop App Service.

enter image description here

References taken from GitHub

Harshitha
  • 3,784
  • 2
  • 4
  • 9