DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. DevOps and CI/CD
  4. Introduction To Azure DevOps

Introduction To Azure DevOps

If you've heard of one of Microsoft's newest DevOps tools, check out this article for more.

Anjanidevi Oruganti user avatar by
Anjanidevi Oruganti
·
Sudheer Mareddy user avatar by
Sudheer Mareddy
·
Sidda Reddy Moolamreddy user avatar by
Sidda Reddy Moolamreddy
·
Gopal Jayanthi user avatar by
Gopal Jayanthi
·
Ashok B user avatar by
Ashok B
·
Apr. 19, 19 · Tutorial
Like (9)
Save
Tweet
Share
13.77K Views

Join the DZone community and get the full member experience.

Join For Free

Azure DevOps formerly known as (VSTS) is a recent continuous integration (CI) and continuous delivery (CD) service provided by Microsoft. It works with any managed Git provider and can deploy to most major cloud services, which allow for Azure services. Azure DevOps provides pipelines to configure and automate builds and releases to different environments. These pipelines can be in YAML or as visual models in the Azure DevOps webpages. Azure DevOps is a fast way to automate build (CI) and deploy (CD) projects and make them available to users.

Pre-requisites:

  • Azure subscription, a free account can be created using this URL.
  • Github account (or) Azure Repos (or) TFS.

Create Azure DevOps Organization

  • First step is to navigate to https://dev.Azure.com and sign in to Azure DevOps. If never done before, a new organization needs to be created.

Image title


At least one organization is needed to store project and repositories, set up teams, and manage access to data.

Create a Build Pipeline

To set up a build pipeline in Azure DevOps. Go to https://dev.azure.com and create a new project inside the organization created in the previous step. Use the settings shown in this figure.

Image title


After click create project button, project will created, and a summary page for the project can be seen. Navigate to pipelines and click on builds as shown in below figure.

Image title


After created a new build pipeline, choose a repository on the prompt. Select the Github/Azure Repos repository, where the authentication to GitHub is. Click Authorize, and click the Azure repos git.

Image title


Select the repository name that has the source code present for the respective job.

Image title


Pipelines can be configured in two ways, using the starter pipeline.

Image title

or a .yaml file.

# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

pool:
  vmImage: 'Ubuntu-16.04'

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See https://aka.ms/yaml
  displayName: 'Run a multi-line script'


The yaml file needs to saved and run.

Image title


Click the Existing Azure pipelines yaml file, if the yaml file exists. In the git repository, for example, helloworld.yaml file, select the branch and path for that yaml file, then click continue to commit to git.

Image title


After build is succeeded, get logs for that job,can be seen in the logs section.

Image title


To see the logs for certain task, click the certain task.

Image title


azure DevOps Continuous Integration/Deployment Pipeline (software)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Best Practices for Writing Clean and Maintainable Code
  • Memory Debugging: A Deep Level of Insight
  • When AI Strengthens Good Old Chatbots: A Brief History of Conversational AI
  • Easy Smart Contract Debugging With Truffle’s Console.log

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: