Blue/Green Deployment using VSTS Release Definitions
I haven't seen any information how to do a Blue/Green deployment on VSTS Release Definitions.
I have a VSTS Release Definition that deploys new changes automatically into our Prod environment as new check-ins are done in our source code.
Now, the project is using Azure Traffic Manager and it has added two endpoints which are on different regions/data centers.
Now that we have the Azure Traffic Manager configured, I was wondering how can I change on VSTS and at deployment time how Azure Traffic Manager reroutes the traffic to one region while the second is deploying and the reverse operation after the first region's deployment is completed.
I've seen documentation about the concept of Blue/Green deployments but haven't seen any documentation/example on how to do this when you use Azure Traffic Manager and VSTS Release Definitions.
add a comment |
I haven't seen any information how to do a Blue/Green deployment on VSTS Release Definitions.
I have a VSTS Release Definition that deploys new changes automatically into our Prod environment as new check-ins are done in our source code.
Now, the project is using Azure Traffic Manager and it has added two endpoints which are on different regions/data centers.
Now that we have the Azure Traffic Manager configured, I was wondering how can I change on VSTS and at deployment time how Azure Traffic Manager reroutes the traffic to one region while the second is deploying and the reverse operation after the first region's deployment is completed.
I've seen documentation about the concept of Blue/Green deployments but haven't seen any documentation/example on how to do this when you use Azure Traffic Manager and VSTS Release Definitions.
1
there is nothing built-in so use a azure powershell task and script it
– 4c74356b41
Nov 21 '18 at 18:31
Oh I see. Thanks a lot!
– user3587624
Nov 21 '18 at 19:00
add a comment |
I haven't seen any information how to do a Blue/Green deployment on VSTS Release Definitions.
I have a VSTS Release Definition that deploys new changes automatically into our Prod environment as new check-ins are done in our source code.
Now, the project is using Azure Traffic Manager and it has added two endpoints which are on different regions/data centers.
Now that we have the Azure Traffic Manager configured, I was wondering how can I change on VSTS and at deployment time how Azure Traffic Manager reroutes the traffic to one region while the second is deploying and the reverse operation after the first region's deployment is completed.
I've seen documentation about the concept of Blue/Green deployments but haven't seen any documentation/example on how to do this when you use Azure Traffic Manager and VSTS Release Definitions.
I haven't seen any information how to do a Blue/Green deployment on VSTS Release Definitions.
I have a VSTS Release Definition that deploys new changes automatically into our Prod environment as new check-ins are done in our source code.
Now, the project is using Azure Traffic Manager and it has added two endpoints which are on different regions/data centers.
Now that we have the Azure Traffic Manager configured, I was wondering how can I change on VSTS and at deployment time how Azure Traffic Manager reroutes the traffic to one region while the second is deploying and the reverse operation after the first region's deployment is completed.
I've seen documentation about the concept of Blue/Green deployments but haven't seen any documentation/example on how to do this when you use Azure Traffic Manager and VSTS Release Definitions.
asked Nov 21 '18 at 18:06
user3587624user3587624
3381425
3381425
1
there is nothing built-in so use a azure powershell task and script it
– 4c74356b41
Nov 21 '18 at 18:31
Oh I see. Thanks a lot!
– user3587624
Nov 21 '18 at 19:00
add a comment |
1
there is nothing built-in so use a azure powershell task and script it
– 4c74356b41
Nov 21 '18 at 18:31
Oh I see. Thanks a lot!
– user3587624
Nov 21 '18 at 19:00
1
1
there is nothing built-in so use a azure powershell task and script it
– 4c74356b41
Nov 21 '18 at 18:31
there is nothing built-in so use a azure powershell task and script it
– 4c74356b41
Nov 21 '18 at 18:31
Oh I see. Thanks a lot!
– user3587624
Nov 21 '18 at 19:00
Oh I see. Thanks a lot!
– user3587624
Nov 21 '18 at 19:00
add a comment |
1 Answer
1
active
oldest
votes
As @4c74356b41 said, there is no direct task to called blue/green deployments in Azure DevOps. It's actually a strategy for deployment/release.
Blue/Green deployment is a way to deploy a code in an environment without downtime, ideally turn the traffic towards another URL.
Here is the way how we can do this using traffic manager.
When you deploy the code in the Azure app as a first task you can stop the azure app service. So that Azure Traffic manager will stop route to that app service. Once you did with the deployment you can start the app which will bring back the app online in Azure Traffic manager. (note that Azure traffic manager will check/hit every 30 sec to make sure the app is working fine)
If you are going to deploy your code in VM then you probably need to look at this link

add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418132%2fblue-green-deployment-using-vsts-release-definitions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As @4c74356b41 said, there is no direct task to called blue/green deployments in Azure DevOps. It's actually a strategy for deployment/release.
Blue/Green deployment is a way to deploy a code in an environment without downtime, ideally turn the traffic towards another URL.
Here is the way how we can do this using traffic manager.
When you deploy the code in the Azure app as a first task you can stop the azure app service. So that Azure Traffic manager will stop route to that app service. Once you did with the deployment you can start the app which will bring back the app online in Azure Traffic manager. (note that Azure traffic manager will check/hit every 30 sec to make sure the app is working fine)
If you are going to deploy your code in VM then you probably need to look at this link

add a comment |
As @4c74356b41 said, there is no direct task to called blue/green deployments in Azure DevOps. It's actually a strategy for deployment/release.
Blue/Green deployment is a way to deploy a code in an environment without downtime, ideally turn the traffic towards another URL.
Here is the way how we can do this using traffic manager.
When you deploy the code in the Azure app as a first task you can stop the azure app service. So that Azure Traffic manager will stop route to that app service. Once you did with the deployment you can start the app which will bring back the app online in Azure Traffic manager. (note that Azure traffic manager will check/hit every 30 sec to make sure the app is working fine)
If you are going to deploy your code in VM then you probably need to look at this link

add a comment |
As @4c74356b41 said, there is no direct task to called blue/green deployments in Azure DevOps. It's actually a strategy for deployment/release.
Blue/Green deployment is a way to deploy a code in an environment without downtime, ideally turn the traffic towards another URL.
Here is the way how we can do this using traffic manager.
When you deploy the code in the Azure app as a first task you can stop the azure app service. So that Azure Traffic manager will stop route to that app service. Once you did with the deployment you can start the app which will bring back the app online in Azure Traffic manager. (note that Azure traffic manager will check/hit every 30 sec to make sure the app is working fine)
If you are going to deploy your code in VM then you probably need to look at this link

As @4c74356b41 said, there is no direct task to called blue/green deployments in Azure DevOps. It's actually a strategy for deployment/release.
Blue/Green deployment is a way to deploy a code in an environment without downtime, ideally turn the traffic towards another URL.
Here is the way how we can do this using traffic manager.
When you deploy the code in the Azure app as a first task you can stop the azure app service. So that Azure Traffic manager will stop route to that app service. Once you did with the deployment you can start the app which will bring back the app online in Azure Traffic manager. (note that Azure traffic manager will check/hit every 30 sec to make sure the app is working fine)
If you are going to deploy your code in VM then you probably need to look at this link

answered Nov 22 '18 at 2:40
JayendranJayendran
3,24731336
3,24731336
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53418132%2fblue-green-deployment-using-vsts-release-definitions%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
there is nothing built-in so use a azure powershell task and script it
– 4c74356b41
Nov 21 '18 at 18:31
Oh I see. Thanks a lot!
– user3587624
Nov 21 '18 at 19:00