Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Azure DevOps Server 2019 Cookbook
Azure DevOps Server 2019 Cookbook

Azure DevOps Server 2019 Cookbook: Proven recipes to accelerate your DevOps journey with Azure DevOps Server 2019 (formerly TFS) , Second Edition

Arrow left icon
Profile Icon Tarun Arora Profile Icon Arora Profile Icon Shigihalli
Arrow right icon
€8.99 €32.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6 (5 Ratings)
eBook May 2019 456 pages 2nd Edition
eBook
€8.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Tarun Arora Profile Icon Arora Profile Icon Shigihalli
Arrow right icon
€8.99 €32.99
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6 (5 Ratings)
eBook May 2019 456 pages 2nd Edition
eBook
€8.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€8.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Azure DevOps Server 2019 Cookbook

Source Control Management

Code repositories allow developers to write code confidently. More developers are using source control than ever before. The most obvious benefits of the code repository can be seen when multiple developers are collaborating on code. Many hands in the pot means there's a greater need to manage and understand revisions. Code doesn't exist unless it's committed into source control. Source control is the fundamental enabler of Continuous DeliveryIf you ever have to make an argument to support source control, ask the following have you ever questions: 

  • Made changes to the code, realized the mistake, and wanted to revert back? 
  • Lost some code or had a backup that was too outdated? 
  • Had to maintain version histories of a product? 
  • Wanted to see the difference between two (or more) versions...

Migrating from TFVC to Git with code history

To make it easier for you to switch from TFVC to Git, Azure DevOps server now provides an out-of-the-box migration workflow, called import repository. The import repository option can be reached from the code hub. This allows you to migrate a TFVC repository into Git with history. However, the tool only allows you to migrate up to 180 days' worth of history from your TFVC repository. Not being able to migrate the entire history from the TFVC repository may be a dealbreaker for some. The following image shows you how to get to the import repository dialogue, the image also shows the migrate history options available to you:

The import repository also allows you to import a Git repository, which is especially useful if you are looking to move your Git repositories from GitHub or any other public or private hosting spaces into...

Accessing Azure DevOps Git repositories using SSH

Azure DevOps Server supports three secure ways to connect to your Git repositories—the first two work over HTTPS and the third option uses SSH:

  • Git Credential Manager
  • Personal Access Token
  • SSH Public Keys

Git credential manager is the preferred option, since it lets you use the same credentials that you use with Azure DevOps Server web portal and also supports multi-factor authentication. In addition to supporting multi-factor authentication with Azure DevOps Server, the credential managers also support two-factor authentication for GitHub repositories. Once authenticated, the credential manager creates and caches a personal access token for future connections to the repo. Git commands that connect to this account won't prompt for user credentials until the token expires or is revoked through Azure DevOps...

Importing a Git repository from GitHub into Azure DevOps Server

If you already have a Git repository on GitHub that you want to port to Azure DevOps Server, you'll be delighted to know that Azure DevOps Server natively supports importing a Git repository with history from any Git-hosting platform, including GitHub. In this recipe, you'll learn how to import the parts unlimited GitHub repository with its complete history, including branches and tags, into Azure DevOps Server.

Getting ready

The PartsUnlimited GitHub repository (https://github.com/Microsoft/PartsUnlimited) that we'll be porting across needs to be accessible from the environment you are accessing in the Azure DevOps Server web portal. In the...

Basic Git operations using Visual Studio Code

Git and Continuous Delivery is one of those delicious chocolate & peanut butter combinations we occasionally find in the software world: two great tastes that taste great together! Continuous Delivery of software demands a significant level of automation. It's hard to deliver continuously if you don't have a quality codebase. Git provides you with the building blocks to really take charge of quality in your codebase; it gives you the ability to automate most of the checks in your codebase even before committing the code into your repository. To fully appreciate the effectiveness of Git, you must first understand how to carry out basic operations on Git, such as clone, commit, push, and pull. 

The natural question is, how do we get started with Git? One option is to go native with the command line or...

Pull request for code review using branch policies

Code issues that are found sooner are both easier and cheaper to fix. Therefore, development teams strive to push code quality checks as far left into the development process as possible. As the name suggests, branch policies give you a set of out-of-the-box policies that can be applied to the branches on the server. Any changes being pushed to the server branches need to comply with these policies before the changes can be accepted. Policies are a great way to enforce your team's code quality and change-management standards. In this recipe, you'll learn how to configure branch policies on your master branch.

Getting ready

The out-of-the-box branch policies...

Using Git hooks with Azure DevOps Server 

Ryan Hellyer accidentally leaked his Amazon AWS access keys to GitHub and woke up to a $6,000 bill the next morning. Wouldn't you just expect a source control as clever as Git to stop you from making such a blunder? Well, in case you didn't know, you can put Git Hooks to work to address not just this but many similar scenarios. In the spirit of pushing quality left into the development process, you want to enable developers to identify and catch code quality issues when they are developing the code locally in their repository, even before raising the pull request to trigger the branch policies. Git hooks allow you to run custom scripts whenever certain important events occur in the Git life cycle, such as committing, merging, and pushing. Git ships with a number of sample hook scripts in the repo\.git\hooks directory...

Managing and storing large files in git

It is not uncommon for projects to have include high quality images and videos that are large in size. If you have large files in your repository, such as images and videos, Git will keep a full copy of the file in the repo every time you commit a change to the file. Git is ultimately versioning the file, if many versions of these files exist in your repo, they will dramatically increase the time to check out, branch, fetch, and clone the code. 

Luckily git has solved this problem using Git Large File System (LFS). LFS is an extension to Git; it replaces large files, such as audio samples, videos, datasets, and graphics, with text pointers inside Git, while storing the file's contents on a remote server which commits data that describes the large files in a commit to your repo, and stores the binary file contents...

Git branching model for continuous delivery 

The purpose of writing code is to ship enhancements to your software. A branching model that introduces too much process overhead does not help in increasing the speed with which you can get changes out to customers. It is therefore important to come up with a branching model that gives you enough padding to not ship poor-quality changes but at the same time not introduce too many processes to slow you down. The internet is full of branching strategies for Git; while there is no right or wrong, a perfect branching strategy is one that works for your team! In this recipe, we'll learn how to use a combination of feature branches and pull requests to always have a ready-to-ship master branch and how to sync bug fixes fixed in fix of fail branches back into master to avoid regression.

...

Migrating from TFVC to Git with code history


To make it easier for you to switch from TFVC to Git, Azure DevOps server now provides an out-of-the-box migration workflow, called import repository. The import repository option can be reached from the code hub. This allows you to migrate a TFVC repository into Git with history. However, the tool only allows you to migrate up to 180 days' worth of history from your TFVC repository. Not being able to migrate the entire history from the TFVC repository may be a dealbreaker for some. The following image shows you how to get to the import repository dialogue, the image also shows the migrate history options available to you:

Note

The import repository also allows you to import a Git repository, which is especially useful if you are looking to move your Git repositories from GitHub or any other public or private hosting spaces into Azure DevOps Server. 

You may also come across use cases where you need to migrate from the TFVC repository that is hosted...

Accessing Azure DevOps Git repositories using SSH


Azure DevOps Server supports three secure ways to connect to your Git repositories—the first two work over HTTPS and the third option uses SSH:

  • Git Credential Manager
  • Personal Access Token
  • SSH Public Keys

Git credential manager is the preferred option, since it lets you use the same credentials that you use with Azure DevOps Server web portal and also supports multi-factor authentication. In addition to supporting multi-factor authentication with Azure DevOps Server, the credential managers also support two-factor authentication for GitHub repositories. Once authenticated, the credential manager creates and caches a personal access token for future connections to the repo. Git commands that connect to this account won't prompt for user credentials until the token expires or is revoked through Azure DevOps Server. If you are accessing your Azure DevOps Server Git repositories through Team Explorer in Visual Studio, Visual Studio Code, IntelliJ...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Improve code quality using pull requests, branch policies, Git hooks and Git branching design
  • Accelerate deployment of high-quality software by automating build and releases using CI/CD pipelines
  • Explore tried and tested techniques to automate database deployments, App Service and Function deployments in Azure

Description

Previously known as Team Foundation Server (TFS), Azure DevOps Server is a comprehensive on-premise DevOps toolset with a rich ecosystem of open source plugins. This book will help you learn how to effectively use the different Azure DevOps services. You will start by building high-quality scalable software targeting .NET, .NET Core and Node.js applications. Next, you will learn techniques that will help you to set up end-to-end traceability of your code changes, from design through to release. Whether you are deploying software on-premise or in the cloud in App Service, Functions, or Azure VMs, this book will help you learn release management techniques to reduce failures. As you progress, you will be able to secure application configuration by using Azure Key Vault. You will also understand how to create and release extensions to the Azure DevOps marketplace and reach the million-strong developer ecosystem for feedback. Later, the working extension samples will even allow you to iterate changes in your extensions easily and release updates to the marketplace quickly. By the end of this book, you will be equipped with the skills you need to break down the invisible silos between your software development teams, and transform them into a modern cross-functional software development team.

Who is this book for?

This book is for anyone looking to succeed in DevOps. The techniques featured in this book particularly apply to all roles of the software development lifecycle including developers, testers, architects, configuration analysts, site reliability engineers and release managers. The book will also be useful if you are a new user who wants to learn how to get started with Azure DevOps Server 2019 or an experienced user who wants to understand how to launch a project into a modern and mature DevOps-enabled software development team.

What you will learn

  • Set up a team project for an Agile delivery team, importing requirements from Excel
  • Plan, track, and monitor progress using self-updating boards, Sprint, and Kanban boards
  • Unlock the features of Git by using branch policies, Git pull requests, forks, and Git hooks
  • Build and release .NET Core, SQL and Node.js applications using Azure Pipelines
  • Automate testing by integrating Microsoft and open source testing frameworks
  • Extend Azure DevOps Server to a million developer ecosystem

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 03, 2019
Length: 456 pages
Edition : 2nd
Language : English
ISBN-13 : 9781788830140
Vendor :
Microsoft
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 03, 2019
Length: 456 pages
Edition : 2nd
Language : English
ISBN-13 : 9781788830140
Vendor :
Microsoft
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 108.97
Learning DevOps
€29.99
Azure DevOps Server 2019 Cookbook
€41.99
Azure for Architects
€36.99
Total 108.97 Stars icon
Banner background image

Table of Contents

9 Chapters
Planning and Tracking Work Chevron down icon Chevron up icon
Source Control Management Chevron down icon Chevron up icon
Build and Release Agents Chevron down icon Chevron up icon
Continuous Integration and Build Automation Chevron down icon Chevron up icon
Continuous Testing Chevron down icon Chevron up icon
Continuous Deployments Chevron down icon Chevron up icon
Azure Artifacts and Dependency Management Chevron down icon Chevron up icon
Azure DevOps Extensions Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6
(5 Ratings)
5 star 40%
4 star 0%
3 star 0%
2 star 0%
1 star 60%
seastar Jun 08, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In addition to explaining the Azure DevOps Server 2019 features and capabilities, book covers great deal of topics ranging from code branching strategy to release practices to CI CD pipeline. Love the way every topic is organized in four sections, i.e. Getting ready…., How to do it…., How it works…, There’s more…Samples, examples and screenshots of UIs for every topic makes life easy and takes out any guesswork while configuring/implementing a feature. Doesn’t feel like you are reading a book, it’s more like someone sitting with you and guiding you step by step.
Amazon Verified review Amazon
Marcin Policht Jul 26, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Despite the rapid pace in which companies embrace cloud-based solutions, there are numerous scenarios where on-premises technologies remain a viable or even necessary part of IT landscape. Those who are not yet ready to transition to Azure DevOps might want to consider running its on-premises counterpart named Azure DevOps Server (a successor to VSTS and TFS). If you happen to be facing such consideration and you are a software developer, architect, configuration analyst, release manager, or a member of an operational team, then this book is for you.DevOps became one of the most popular technology buzzwords in recent years, however, it is frequently misunderstood and mischaracterized. Azure DevOps Server 2019 cookbook does an excellent job of clarifying any misconceptions, providing a comprehensive coverage of concepts and implementation details of Microsoft Azure DevOps Server 2019.With its guidance, you will be able to step through initiating a team project and setting up traditional collaboration and tracking controls, integration with source control management (the book focuses on Git and TFVC, including such scenarios as importing Git from GitHub, the use of Azure DevOps-based Git repos, Git operations from Visual Studio Code, and Git Hooks), setting up build and release agents, as well as defining and configuring CI/CD pipelines (including continuous testing and feature flags, integration with third party tools like SonarQube and with Azure services, such as Azure Key Vault, Azure App Service, Azure SQL Database, and Azure DevTest Labs). You will also find here examples of using artifacts to build microservices-based apps, as well as managing NuGet and npm packages (including leveraging WhiteSource for artifact vulnerability scanning). Those more interested in development topics could learn about extending Azure DevOps Server capabilities by employing Azure DevOps Server APIs.
Amazon Verified review Amazon
Amazon Customer Oct 21, 2019
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
lacking real actions, no more detail in how to do it, where to do it, who to do it.
Amazon Verified review Amazon
Amazon Customer Jul 07, 2020
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
The sample of the Kindle version of this book has broken DRM. It will allow you to order the sample and deliver it, but not allow you to read it. At least that what happened to me. It was free so not a huge deal, but I would discourage anyone from ordering the full book unless this issue is addressed.
Amazon Verified review Amazon
Jo Jan 19, 2020
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
Azure devops is a big topic, there is to much features on the portal that can be confusing even to a team lead like me and this book does not have enough explanation and sample images on how it arrive to that UI. You, hove to google it first how to navigate to that UI screen. Waste of time.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.