Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automate Azure DevOps

Chris Ayers
October 19, 2019

Automate Azure DevOps

Need to setup a new project? Script and automate the creation of repos and git ignore files. Create your build pipelines, branch policies and release in a repeatable manner. Let's examine the Azure cli devops extension and REST apis to find out how to script almost everything in Azure DevOps.

Associated code at: https://github.com/Codebytes/automatingAzureDevOps

Chris Ayers

October 19, 2019
Tweet

More Decks by Chris Ayers

Other Decks in Technology

Transcript

  1. Chris Ayers Azure / Devops Consultant • [email protected] • Twitter:

    @Chris_L_Ayers • linkedin.com/in/chris-l-ayers/ • Blog: https://chrislayers.com/ • Github: https://github.com/Codebytes
  2. Agenda Azure DevOps • Features • Boards • Repos •

    Pipelines • Artifacts • Test Plans What Can We Do? • Automate • Integrate How Can We Interact? • Rest API • Azure CLI
  3. DevOps is… DevOps is the union of people, process, and

    products to enable continuous delivery of value to your end users. “ ”
  4. Azure Boards Azure Repos Azure Pipelines Azure Test Plans Azure

    Artifacts Connecting ideas to releases Scrum ready to help your teams run sprints, stand- ups, and plan work Integrated with GitHub commits and pull requests Insights into project status and health
  5. Azure Boards Azure Repos Azure Pipelines Azure Test Plans Azure

    Artifacts Deliver Private Git and TFVC repos for your teams Code review via branch pull requests Branch policies and build validation Easy migration path to / from GitHub
  6. Azure Boards Azure Repos Azure Pipelines Azure Test Plans Azure

    Artifacts Deliver Cloud-hosted pipelines for Linux, macOS and Windows Any language, any platform, any cloud Native support for containers and Kubernetes Best-in-class for open source
  7. Azure Boards Azure Repos Azure Pipelines Azure Test Plans Azure

    Artifacts Deliver Deploy to on-premises, ANY cloud or a hybrid of cloud and on-prem Staged environment releases Pre and post deployment approvals with gates to automate approval based on conditions
  8. Azure Boards Azure Repos Azure Pipelines Azure Test Plans Azure

    Artifacts Deliver Share code efficiently Keep your Maven, npm, NuGet and Python packages and more in the same place Aggregate from public registries and internal teams Publish and track from any pipeline
  9. Azure Boards Azure Repos Azure Pipelines Azure Test Plans Azure

    Artifacts Deliver Run tests and log defects from your browser Track and assess quality throughout your lifecycle Capture rich data for reproducibility Create tests directly from exploratory sessions
  10. Automate • Team project creation • Repository creation • Branch

    policy creation • Builds • Releases • Reports
  11. Examples GUI based client side application Headless text only client

    side application GUI based web application Azure DevOps Services extension
  12. PAT

  13. URI - VERB https://{instance}[/{team-project}]/_apis[/{area}]/{resource} ?api-version={version} Instance dev.azure.com/{organization} {server:8080)}/tfs/{DefaultCollection} Team-project Application

    Resource build/builds/{buildId} git/repositories/{repositoryId}/pullrequests Version 5.1 - Azure DevOps Server vNext 5.0 - Azure DevOps Server 2019 4.1 - TFS 2018 Update 3
  14. Azure DevOps Extension for Azure CLI WINDOWS, LINUX, MAC, DOCKER

    AZURE CLOUD SHELL JSON ACTIVELY DEVELOPED AUTODETECTION