What You Will Build
CI/CD pipeline using Azure DevOps
Dockerized application
Azure Container Registry (ACR)
Deployment on Azure Kubernetes Service (AKS)
Full automation from code push to live deployment
Tools Used
Azure DevOps (Pipelines)
Docker
Azure Container Registry (ACR)
Azure Kubernetes Service (AKS)
Kubectl
Project Structure
/app
|-- Dockerfile
|-- azure-pipelines.yml
|-- k8s/
| |-- deployment.yaml
| |-- service.yaml
|-- src/
Step 1: Dockerize Your Application
Create a Dockerfile:
FROM node:18-alpine
WORKDIR /app
COPY . .
RUN npm install
CMD ["node", "src/app.js"]
EXPOSE 3000
Build and test locally:
docker build -t my-app .
docker run -p 3000:3000 my-app
Step 2: Create Azure Resources
Login to Azure:
az login
Create Resource Group:
az group create --name devops-rg --location eastus
Create Azure Container Registry:
az acr create --resource-group devops-rg --name myacr123 --sku Basic
Create AKS Cluster:
az aks create \
--resource-group devops-rg \
--name myAKSCluster \
--node-count 2 \
--enable-addons monitoring \
--generate-ssh-keys
Step 3: Connect Azure DevOps with Azure
Go to Azure DevOps → Project Settings → Service Connections → Create a new Azure Resource Manager connection.
This allows your pipeline to deploy directly to Azure securely.
👉 Full detailed guide here:
https://www.techwithassem.com/build-ci-cd-pipeline-with-azure-devops-docker-aks-2026-guide/
Top comments (0)