I’m running into some confusion over setting up my process for our Azure Web App deployment and wondering how I can streamline the deployment process using rolling deployments rather than having dozens of steps. However I can’t find a way in the rolling deployment “Azure Web App” step to define which actual web app this gets deployed to.
So our environment is like this:
Beta
|-> Beta AE
|-> Beta AS
Prod
|-> Prod AE
|-> Prod AS
I have a step set up called “Deploy app” and under it the following actions are undertaken:
1) Stop web app
2) Deploy web app
3) Start web app.
It’s step 2 that I’m having trouble with. In the Deploy Azure Web App section you specifically say which Azure Web Application you want to deploy (eg; our site names are PR-WEB-Beta-AE, PR-WEB-Beta-AS etc.). So I can’t “genericise” step 2. It seems that with rolling deployment I need to use the following step formula:
1) Stop website
2) Deploy PR-WEB-Beta-AE
3) Deploy PR-WEB-Beta-AS
4) Deploy PR-WEB-Prod-AE
5) Deploy PR-WEB-Prod-AS
6) Start website
Each of the steps 2-5 have the actual Azure website to deploy to, they’re all in the “PR-Web-Application” role and they each have an environment linked against them (Beta / Prod) so the steps should be executed / skipped depending on which environment I’m deploying to. But basically I want to deploy to Beta-AE AND Beta-AS in one step, for a Beta release and Prod-AE and Prod-AS for a Prod release.
How can I set this up so it’s back to the example at the top with the 3 steps? The Rolling Deployment in the cloud region documentation doesn’t really go into detail about actually defining which web app to target. An example is in this image here: https://i.octopus.com/blog/201604-2016-04-0723_25_07-cloud_region_deploy_log-ZR4J.png.
The 3 steps at the end show that it’s deployed to Australia East (AE), US West (UW) and Northern Europe (EN). How Do I specifically tell that Step 1 “Deploy Azure Website” that the US West region is actually my web application named PR-WEB-Prod-UW?