Introduction to Azure DevOps

Introduction to Azure DevOps

Hi DevOps people, this is my new article on Azure DevOps series.

What is Azure DevOps

Azure DevOps is a platform where you can do end-to-end deployment processes. It allows the developer team to build their code using Git or GitHub, test the application using Azure build and release pipeline(CI/CD Framework), deploy the code by an automated process.

We all are familiar with the word i.e.(DEV+OPS = DEVOPS), now the question is how Microsoft Azure brings in DevOps. For that Azure DevOps offers a range of services i.e.; Azure Repo where in Developer can write the code and store, they have Azure pipelines that will perform the Integration/build task, they have Azure Artifacts that can be used in pipelines, Azure Monitor to monitor the pipeline, GitHub Integration is allowed and many more services that we will be discussing in our article that brings in Azure DevOps.

Main Features of Azure DevOps

Azure Boards

Azure Pipeline

Azure Repo

Azure Artifact

Azure Test Plans

Benefits of Azure DevOps

Easy to Install

Customize your Application

Azure DevOps is compatible with most of the DevOps tools such as Ansible, Docker, and many more

Let's get started with Azure DevOps

Configuring Azure is easy.

The first step is to sign in to Microsoft Account, for this just type dev.azure.com in google chrome and you will be directed to a page as shown below then click sign in to Azure DevOps.

No alt text provided for this image

Once you enter your Email-id and password for sign in, you will be directed to a page as shown below where an organization will be created based on your account which you used to sign in.

No alt text provided for this image

Your Azure DevOps would look like as shown below

No alt text provided for this image

Next step is you can create a number of projects under the organization and within that project we can create numbers of Azure pipelines.

Now we will see how to create project in Azure DevOps - click on New Project

No alt text provided for this image


Fill in the details that are required, then click on create option which will create a new project in your Azure DevOps Organization.

No alt text provided for this image

Once created we will be directed to a page where we can see various Azure service that are offered, like Azure Repo, Azure Boards and many more.

No alt text provided for this image

Now lets understand what all these Azure Features are

AZURE BOARD

It helps us to track our work, gives us an insight of what task is pending, helps in tracking user stories, bugs associated with projects, allows us to create issues that need to be tracked, Test Cases we can create, Bug, User story and many more.

One thing I would like to say here is that Microsoft Azure is very user friendly. It helps us to understand things easily just the way we saw Azure board one of the features of Azure.

No alt text provided for this image

AZURE REPO

For the first time when we click on Azure repo we will be directed to a page as shown below.

Here we can create our repository that contains the code, we can even import a repository. We can configure our projects in such a way that if any changes are made in repo or any new code is pushed the Azure pipelines can be triggered automatically.

No alt text provided for this image

AZURE PIPELINES

For me its like the heart of Azure DevOps.

Using this feature we can create Build pipeline by using classic editor option or YAML pipeline format. We can configure the pipeline to be scheduled triggered or manual triggered as per our requirement.

If we are creating a pipeline for the first time we will be directed to a page as shown below.

Click on create pipeline.

No alt text provided for this image

Next step is to select the platform where our code is present, if your code is present in GitHub then select GitHub option or else we can select Azure Repo option also.

Click on classic editor option.

No alt text provided for this image

Then select a source, select the project where this pipeline needs to be created and finally select the branch. Then click continue.

No alt text provided for this image

Next we can select Empty job or YAML as per our requirement.

No alt text provided for this image

So, if we select Empty job our build pipeline configuration page would look like as shown below.

No alt text provided for this image

Let's go through the various fields that are used in the build pipeline configuration.

If we click on Agent job, here we can specify the name that should be displayed while the build pipeline gets triggered, also we can select our agent pool.

No alt text provided for this image

Click on the + sign which is used? to select the task as per our requirement.

For eg: - in the search bar we can specify the task name such as command line, script, python version where in we can specify the version.

No alt text provided for this image

If we select the Variables option, here we can mention the secret values such as password, username and will be used in the pipeline.

No alt text provided for this image

If we select the Triggers option, here we can schedule the pipeline as per our requirement by providing the timing and date details.

No alt text provided for this image

At the end we can select the Save and queue option that will trigger the build pipeline.

Coming to release pipeline - This is where we proceed to deploy in various environments like QA, Pre-PROD, Dev and PROD.

Let us see how to configure Release pipeline in Azure.

Under Pipeline option select release and click on new pipeline.

No alt text provided for this image

Select Empty job option

No alt text provided for this image

Here you can provide the stage name, you can change it as per your requirement Then click on (1job, 0 task) under stage1.

No alt text provided for this image

It will direct you to release pipeline, where in we can configure our release pipeline.

No alt text provided for this image

Click on + sign same way as we configured build pipeline.

In release pipeline we can? configure artifacts, in such a way that the output of build pipeline will be stored as artifact and it will trigger our release pipeline.

Click on add artifact. It will ask for source type, depending on our project and requirement we can setup the source type.

No alt text provided for this image

AZURE TEST PLANS

Azure test plan service provides options like creating test plans, test suits, test cases.

Its like working for a project where in we have test plans ready and? a collection of test cases created. Using Azure test plan we can populate the number of test cases failing/passed.

Recording the tests, their results, and observations for each test cases is possible.

---------------------------------------------------------------------------------------------------------------

Hope you like my article on Azure basics. I'll be coming up with the next article soon.

Suranga Jayalath ∞

DevOps Engineer | 1 x AWS | Kubernetes | Docker | Terraform

2 年

Great

Good information well crafted !!!!!!!

Sajal Golas

Staff Engineer @ Okta || Tech With Humour || Ex-Walmart || 14K+ || 15M+ Imp || Web3 || Azure || GCP || AWS || DevOps || Kubernetes || HFT || Distributed Systems || Big Data || DataOps || MLOPS || Security || Trainer

2 年

Great Megha S.K ????

要查看或添加评论,请登录

社区洞察

其他会员也浏览了