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
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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 Arora Profile Icon Tarun Arora Profile Icon Shigihalli
Arrow right icon
€18.99 per month
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6 (5 Ratings)
Paperback May 2019 456 pages 2nd Edition
eBook
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Arora Profile Icon Tarun Arora Profile Icon Shigihalli
Arrow right icon
€18.99 per month
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.6 (5 Ratings)
Paperback May 2019 456 pages 2nd Edition
eBook
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€22.99 €32.99
Paperback
€41.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781788839259
Vendor :
Microsoft
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : May 03, 2019
Length: 456 pages
Edition : 2nd
Language : English
ISBN-13 : 9781788839259
Vendor :
Microsoft
Languages :
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
Azure for Architects
€36.99
Azure DevOps Server 2019 Cookbook
€41.99
Learning DevOps
€29.99
Total 108.97 Stars icon

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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.