Related Microsoft Learn Materials
- Make a change in GitHub
- Submit and accept a PR
- Review the change Build Release Staging Deployment slot
- Review the changes and function of deployment slots
- Approve the change – post-deployment approval
- Approve the change – pre-deployment approval
In Visual Studio Code, Make a change to your local copy of the Sample App:
In the file Views\Home\Index.cshtml
Remove the comments in the following code:
<!--<div class="text-center">
<h1 class="display-4">Also</h1>
<p>Check out this awesome workshop <a href="https://github.com/bbenz/devopswithgithub">DevOps with GitHub on Azure!</a>.</p>
</div>
-->
It should look like this when you're done:
<div class="text-center">
<h1 class="display-4">Also</h1>
<p>Check out this awesome workshop <a href="https://github.com/bbenz/devopswithgithub">DevOps with GitHub on Azure!</a>.</p>
</div>
- Save the file.
- Stage and commit the changes
- Push to GitHub
- Open your Azure DevOps project and follow the reelase and build.
- The deployment should stop at the Canary deployment slot if approvals were set up correctly.
- Select the Canary App Service Deploy task to view the detailed log. You should find the URL to the published website in the deployment slot. Ctrl+Click the link to open it in a separate tab.
- Select the Production App Service Deploy task from the previous job to view the detailed log. You should find the URL to the published website in the production website. Ctrl+Click the link to open it in a separate tab.
- Note the changes between the Canary deployment slot and the Production Website.
- If you're happy with the changes, approve the deployment of the latest release to production.