Skip to content

Stage 3: Azure DevOps Pipelines

Sanoobk edited this page Sep 21, 2019 · 1 revision

Stage 3: Azure DevOps Pipelines

1. Create an Azure DevOps build pipeline. Ensure to have a project created in the dev.azure.com. Do not need Azure Repos as we are using GitHub as our remote Repo. Only Azure Pipelines are used for this solution. Follow the video link for details on creating the Build Pipeline for Pushing the ASP.NET web application docker image to ACR and then Deploying to AKS.

2. Configure PipeLine On a high level, its as simple as creating the pipeline from the UI, connect to the GitHub repo and Authorize, select the 'Deploy to Azure Kubernetes Service' configuration and then provide the basic information on the screen about the AKS Cluster and ACR created in Stage 1.

Image for Task to depoy to AKS

3. Pull the yml files to the local repo - Once configured, three *.yml files will be created by the pipeline and added to the Remote GitHub repo. (azure-pipeline.yml, manifests/service.yml and manifests/deployment.yml). These files help to build the DockerFile, push the image to ACR and deploy the container to AKS cluster. Its a good shortcut to generate yaml/yml files for other automation requirements.

Build agent servers are not needed. For this Pipeline we can use the Microsoft Hosted build server (free) for this demo. (Linux Ubuntu OS)

Clone this wiki locally