Basic DevOps Model in Azure Devops Using Azure Devops Agent — Part2

DINESH REDDY JETTI
3 min readFeb 6, 2024

--

Creating a basic Azure DevOps model involves integrating Azure Repos for source code management, Azure Pipelines for building and releasing code, and deploying applications to various Azure services like Virtual Machines (VMs), Logic Apps, Function Apps, and Azure Kubernetes Service (AKS). Below is a simplified overview of the key components and their interactions in this model, In a basic DevOps model using Azure DevOps with Azure DevOps Agent, you typically follow these steps

Azure Repos:

Azure Repos is used for version control, hosting your source code. You can create repositories to manage your codebase.

Azure Pipelines:

Azure Pipelines provides Continuous Integration (CI) and Continuous Deployment (CD) capabilities.

Create Build Pipelines to compile and build your source code.

Create Release Pipelines to deploy your application to different environments.

Azure DevOps Agent:

Azure DevOps Agent is installed on the target machines where your application will be deployed. It helps execute tasks defined in your pipelines on these machines.

Agents can be configured to run jobs on different types of machines, including VMs.

Agent Pools and Jobs

Organize agents into agent pools based on your infrastructure.

Configure jobs in the build & release pipeline to use specific agent pools.

Azure Virtual Machines (VMs)

VMs can be part of your deployment model. Azure Pipelines can deploy your application to VMs using the Azure DevOps Agent.

Azure Logic Apps

Logic Apps are serverless workflows that can be used to automate and orchestrate tasks. Azure Pipelines can deploy and manage Logic Apps.

Azure Function Apps

Function Apps provide a serverless environment for running small pieces of code (functions). These can be deployed and managed using Azure Pipelines.

Azure Kubernetes Service (AKS)

AKS is a managed Kubernetes service for deploying, managing, and scaling containerized applications using Kubernetes. Azure Pipelines can deploy containerized applications to AKS.

Basic Workflow

Code Development — Developers commit code to Azure Repos.

Build Pipeline

Azure Pipelines triggers a Build Pipeline when code changes are detected.

The Build Pipeline compiles the code, runs tests, and packages the application.

Release Pipeline

Azure Pipelines triggers a Release Pipeline when a new build is available.

The Release Pipeline deploys the application to the target environments (VMs, Logic Apps, Function Apps, AKS) using the Azure DevOps Agent on those machines.

Deployment to VMs

The Azure DevOps Agent on VMs pulls the artifacts from Azure Pipelines and deploys the application.

Deployment to Logic Apps and Function Apps

Logic Apps and Function Apps are deployed and managed by Azure Pipelines.

Deployment to AKS

Azure Pipelines deploys containerized applications to AKS using Kubernetes manifests.

This is a simplified overview, and the actual implementation may vary based on your application architecture, specific requirements, and the technologies you are using. Configurations and scripts for deployment tasks need to be defined within your pipelines to achieve a seamless deployment process.

--

--

DINESH REDDY JETTI

Cloud Infra Devops. Lead @ Zuellig Pharma | DevOps, Security , Automation, Azure, AWS, GCP