Stanislav
Stanislav

Reputation: 165

Azure Release pipelines. Deploy artifact to all instances of the scaled-out web application

We have Azure Build and Releases pipelines for our App Service. Everything is pretty straight-forward.

We initially configured single instance for the App Service and Release pipeline worked great.

But after scaling it out to 3 instances what we learned was that release pipeline delivers artifact only to one of 3 instances

So, the question is, how we can configure it in a way so artifact is deployed to all instances of the App Service regardless how many of them there are

Additional details:

Azure App Services deploy details

Upvotes: 0

Views: 191

Answers (1)

Matt
Matt

Reputation: 4065

You will probably want to use deployment groups by changing your agent to a deployment group agent phase.

The deployment group allows you define multiple target environments, add tags, and target those tags on specific phases. I'm suspecting that you have installed the agent on all the target machines, but it will only run once and will pick from any agent registered in the pool. Instead, I believe you want it to run on every target.

You can even configure the release pipeline to automatically deploy the last deployment release as new targets are added.

You might reference this answer about the difference between an agent pool and deployment pool: Azure Devops (VSTS) Different between Agent Pool and Deployment pool

Upvotes: 1

Related Questions