9789389898682 Flipbook PDF


8 downloads 123 Views 2MB Size

Recommend Stories


Porque. PDF Created with deskpdf PDF Writer - Trial ::
Porque tu hogar empieza desde adentro. www.avilainteriores.com PDF Created with deskPDF PDF Writer - Trial :: http://www.docudesk.com Avila Interi

EMPRESAS HEADHUNTERS CHILE PDF
Get Instant Access to eBook Empresas Headhunters Chile PDF at Our Huge Library EMPRESAS HEADHUNTERS CHILE PDF ==> Download: EMPRESAS HEADHUNTERS CHIL

Story Transcript

Demystifying

Azure DevOps Services A Guide to Architect, Deploy, and Administer DevOps Using Microsoft Azure DevOps Services

ASHISH RAJ



Demystifying Azure DevOps Services A Guide to Architect, Deploy, and Administer DevOps Using Microsoft Azure DevOps Services

Ashish Raj

www.bpbonline.com

i

ii



FIRST EDITION 2021

Copyright © BPB Publications, India ISBN: 978-93-89898-682

All Rights Reserved. No part of this publication may be reproduced, distributed or transmitted in any form or by any means or stored in a database or retrieval system, without the prior written permission of the publisher with the exception to the program listings which may be entered, stored and executed in a computer system, but they can not be reproduced by the means of publication, photocopy, recording, or by any electronic and mechanical means.

LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY

The information contained in this book is true to correct and the best of author’s and publisher’s knowledge. The author has made every effort to ensure the accuracy of these publications, but publisher cannot be held responsible for any loss or damage arising from any information in this book. All trademarks referred to in the book are acknowledged as properties of their respective owners but BPB Publications cannot guarantee the accuracy of this information.

Distributors:

BPB PUBLICATIONS

DECCAN AGENCIES

MICRO MEDIA

BPB BOOK CENTRE

20, Ansari Road, Darya Ganj New Delhi-110002 Ph: 23254990/23254991

4-3-329, Bank Street, Hyderabad-500195 Ph: 24756967/24756400

Shop No. 5, Mahendra Chambers, 150 DN Rd. Next to Capital Cinema, V.T. (C.S.T.) Station, MUMBAI-400 001 Ph: 22078296/22078297

376 Old Lajpat Rai Market, Delhi-110006 Ph: 23861747

Published by Manish Jain for BPB Publications, 20 Ansari Road, Darya Ganj, New Delhi-110002 and Printed by him at Repro India Ltd, Mumbai www.bpbonline.com



Dedicated to Seema Srivastava My Mother, my friend, my inspiration, and my world.

iii

iv



About the Author Ashish Raj is a technologist and storyteller who helps engineering teams improve their velocity. He believes the biggest challenges facing engineers aren't technical, but not knowing how to tie people, process, and technology. He’s worked with both cutting-edge startups and some of the largest technology providers in the world. Ashish Raj is currently a DevOps Architect and an active contributor to DevOps and cloud community. He speaks at webinars and local meetups. Ashish is a Microsoft-certified DevOps expert and Microsoft-certified trainer. Ashish has been recognized as Azure Master of the month by Microsoft and his blogs has been featured in Azure DevOps community’s news multiple times. Ashish is the co-founder of one of the largest IM based global Azure communities “AzureTalk” (https://t.me/AzureTalk) on the Telegram app with more than 8800 active members. He is also the founder of DevOps community “AzureDevOpsPro” (https://t.me/ AzureDevOpsPro) with more than 3000 active members, and writes at www. azuredevopspro.com.



v

About the Reviewers v Sree Chavali has total 17+ years of experience technology and customer success. His interest lies in Cloud and integration of Microsoft technologies with other third-party and open source technologies. He has worked at Microsoft in various roles for about 12 years. He is M365 Certified and Azure Certified along with PMP and ITIL. v Sanjib Kumar Panigrahi is a Microsoft Certified Professional and has more than 6 years of experience in the IT industry. He is a Microsoft certified developer, Infrastructure engineer, and DevOps expert. He is currently working as a Senior Software Engineer with one of the products-based MNC in the United States of America. He is an active contributor to the DevOps and cloud community, speaks at webinars and local meetups. He is a core member of the global Azure DevOps community (https://t.me/AzureDevOpsPro) based on the telegram app with more than 2500 active members and co-founder of the AzureTalk community on telegram (https://t.me/AzureTalk) with more than 7900 active members. Sanjib also writes blogs on various topics related to Web applications, microservices, cloud, and DevOps.

vi



Acknowledgement Before I jump in and start introducing this book to you and explain what it’s about, I’d like to convey my deep gratitude and acknowledgement to all those who helped me bring this project to fruition. To begin with, I am blessed to have an amazing, caring mother, who has always been my backbone at every step of the way. Although, she is not physically present among us, I am sure she is the happiest person to witness my achievements. I’d like to dedicate this book to my mother – Seema Srivastava. I would like to thank my father Krishan Mohan Prasad for continuously encouraging me and supporting me to aim high. I would also like to thank my brotherAvinish, my son Seemansh for being patient with me,and special thanks to my dearest wife and support system - Anushka. She deserves to have her name on a separate page all by herself, but the compositor would probably choke if it tried this.So, I’ll just give her a whole line to herself like this: Thank you, Anushka! It would be certainly remiss of me if I did not recognize these people who made this project a reality, my mentor Niraj Kumar, who has been guiding and inspiring me to be the best version of myself today than yesterday. I would like to recognize my friends Vipin Jha, Ram Murti Kumar, MdAli Jaffery, Saket Jambhulkar, Sanjib Panigrahi, and Sree Chavali for their invaluable contribution to this book. Last but not least, I am grateful to Nrip Jain and Team BPB Publications for giving me this opportunity and their editorial and production services.



vii

Preface This book is about DevOps, which is the most widely used software engineering culture and practice that aims at software development and operation. This book is meticulously designed and developed in order to empower you with all the right and relevant information on DevOps.Therefore, if you want to implement the strategy of DevOps, you are in the right path. Chapter 1 explains DevOps as culture and helps you understand its seven practices and habits. After studying this chapter, you should be able to embrace DevOps as culture and tools you need in DevOps journey. We will also introduce Azure DevOps services as a set of tools for implementing DevOps culture in your team. Chapter 2 discusses how to get started with Azure DevOps services. We also discuss architecture and settings of Azure DevOps organization. We also explore pricing and cost details of Azure DevOps Services. We will explore how we can configure various settings in Azure DevOps organization such as integration with Azure Active Directory for single sign-on in the company. Chapter 3 Having Azure DevOps organization configured, we further explore projects in this chapter. We will explore how teams work together in a project to manage their product life cycle by collaborating with each other. We will further discuss project-level settings that can be used for customizing services and permissions for different team members. Chapter 4 Teams in a project need an Agile tool to collaborate and plan their deliverables. In this chapter, we will explore how to plan and collaborate using Azure Boards. We will explore various process template available in the Azure board and how to customize a template to meet your organization process needs. Chapter 5 introduces one of the basic pillars of application life cycle, that is, version control system. In this chapter, we will discuss Azure Repos and how to use the git version control system to manage your application source code. We will also discuss how to effectively collaborate using branching strategy and pull request in Azure Repos. Chapter 6 version control system helps you manage your source code, then Azure Pipelines helps you further to get early feedback for code changes being submitted

viii



to version control system. In this chapter, we explore build process and how to define a build and release pipeline in Azure pipelines to achieve CI & CD. Chapter 7 introduces Azure Artifacts that helps you in managing dependencies. We explore how to publish a package to Azure Artifacts and further consume in a build pipeline as a dependency package. Chapter 8 describes Azure Test Plans that helps you manage your manual testing process. We discuss how to create a test suite, test plans, and use it communicate bugs with developers. We explore how Azure Test Plan can effectively help your developers and testers communicate test execution and bug details . Chapter 9 In this last chapter, we will explore Azure DevOps marketplace that helps you extend the functionalities of Azure DevOps using marketplace extensions. Any DevOps tool has to have a way to integrate with third-party tools ecosystem considering DevOps has a large and diverse tool ecosystem. Azure marketplace allows third party product organizations, individuals or inhouse teams to develop extensions and extend the Azure DevOps services functionalities.



ix

Downloading the coloured images: Please follow the link to download the Coloured Images of the book:

https://rebrand.ly/w5ayncl Errata We take immense pride in our work at BPB Publications and follow best practices to ensure the accuracy of our content to provide with an indulging reading experience to our subscribers. Our readers are our mirrors, and we use their inputs to reflect and improve upon human errors, if any, that may have occurred during the publishing processes involved. To let us maintain the quality and help us reach out to any readers who might be having difficulties due to any unforeseen errors, please write to us at : [email protected] Your support, suggestions and feedbacks are highly appreciated by the BPB Publications’ Family.

Did you know that BPB offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.bpbonline.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at : [email protected] for more details. At www.bpbonline.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on BPB books and eBooks.

x



BPB is searching for authors like you If you're interested in becoming an author for BPB, please visit www.bpbonline.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea. The code bundle for the book is also hosted on GitHub at https://github. com/bpbpublications/Demystifying-Azure-DevOps-Services. In case there's an update to the code, it will be updated on the existing GitHub repository. We also have other code bundles from our rich catalog of books and videos available at https://github.com/bpbpublications. Check them out!

PIRACY If you come across any illegal copies of our works in any form on the internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.

If you are interested in becoming an author If there is a topic that you have expertise in, and you are interested in either writing or contributing to a book, please visit www.bpbonline.com.

REVIEWS Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at BPB can understand what you think about our products, and our authors can see your feedback on their book. Thank you! For more information about BPB, please visit www.bpbonline.com.



xi

Table of Contents 1. Introduction to Azure DevOps.................................................................................. 1 Introduction............................................................................................................. 1 Structure................................................................................................................... 1 Objectives................................................................................................................. 1

DevOps, what is that?............................................................................................ 2



How to learn DevOps?..................................................................................... 17



DevOps? Why should I know it?..................................................................... 14

Azure DevOps, what and why?......................................................................... 18

Summary................................................................................................................ 26 Questions............................................................................................................... 27

Key terms............................................................................................................... 27

2. Azure DevOps Organization................................................................................... 29 Introduction........................................................................................................... 29 Structure................................................................................................................. 29 Objectives............................................................................................................... 30

What is Azure DevOps organization?............................................................... 30



Signup for Azure DevOps................................................................................ 33



Signup Azure DevOps Services.......................................................................... 33 General section.................................................................................................. 36

Security............................................................................................................. 47 Boards............................................................................................................... 48 Pipelines............................................................................................................ 50 Artifacts............................................................................................................ 58 Extensions......................................................................................................... 58 Summary................................................................................................................ 60 Questions............................................................................................................... 61

Key terms............................................................................................................... 61

3. Azure DevOps Project............................................................................................... 63 Introduction........................................................................................................... 63

xii



Structure................................................................................................................. 63 Objectives .............................................................................................................. 64

What is project in Azure DevOps?..................................................................... 64

General.............................................................................................................. 67 Overview................................................................................................................ 67 Teams...................................................................................................................... 69 Permissions............................................................................................................ 70

Notifications........................................................................................................... 72



Service Hooks......................................................................................................... 73

Dashboards............................................................................................................. 75



Boards............................................................................................................... 75 Project Configuration............................................................................................. 75

Areas....................................................................................................................... 77

Team Configuration................................................................................................ 79 GitHub connections............................................................................................... 83

Repos................................................................................................................. 86



Repositories............................................................................................................ 86



Cross-repo policies.................................................................................................. 88



Agent Pools............................................................................................................ 90



Parallel jobs............................................................................................................ 91

Pipelines............................................................................................................ 89

Settings................................................................................................................... 91

Test Management................................................................................................... 92



Release retention..................................................................................................... 93



Service connections................................................................................................ 93



XAML build services............................................................................................. 96

Test.................................................................................................................... 96 Retention................................................................................................................ 96

Summary.............................................................................................................. 105 Questions............................................................................................................. 106

Key terms............................................................................................................. 106

4. Azure Boards............................................................................................................. 107 Introduction......................................................................................................... 107 Structure............................................................................................................... 107



xiii

Objectives ............................................................................................................ 108

What is Azure Boards?....................................................................................... 108



Work Items in Azure Boards.......................................................................... 109



Agile in Azure Board...................................................................................... 108

Boards................................................................................................................... 117



Configure........................................................................................................ 118



Monitor flow................................................................................................... 125

Update............................................................................................................. 124 Backlogs............................................................................................................... 126 Sprints................................................................................................................... 128 Queries................................................................................................................. 136 Summary.............................................................................................................. 138 Questions............................................................................................................. 139

Key terms............................................................................................................. 139

5. Azure Repos.............................................................................................................. 141 Introduction......................................................................................................... 141 Structure............................................................................................................... 141 Objectives ............................................................................................................ 142

What is version control system and why use it?............................................ 142 What is Azure Repos?........................................................................................ 144

TFVC.............................................................................................................. 144 Git................................................................................................................... 144 Branches............................................................................................................... 153

Branch policies................................................................................................ 158



Pull Requests....................................................................................................... 162



Branch security............................................................................................... 161

Tags....................................................................................................................... 170 Summary.............................................................................................................. 174 Questions............................................................................................................. 175

Key terms............................................................................................................. 175

6. Azure Pipelines......................................................................................................... 177 Introduction......................................................................................................... 177 Structure............................................................................................................... 177

xiv



Objectives............................................................................................................. 178

What is a build?.................................................................................................. 178



What is Continuous Integration (CI) and Continuous Deployment (CD)?........................................................................ 179





What is a release?................................................................................................ 179

What is Azure Pipelines?................................................................................... 181

Summary.............................................................................................................. 251 Questions............................................................................................................. 251

Key terms............................................................................................................. 252

7. Azure Artifacts.......................................................................................................... 253 Introduction......................................................................................................... 253 Structure............................................................................................................... 253 Objectives ............................................................................................................ 254

What is package management?........................................................................ 254 What is Azure Artifacts?.................................................................................... 254

Summary.............................................................................................................. 274 Questions............................................................................................................. 275

Key terms............................................................................................................. 275

8. Azure Test Plans....................................................................................................... 277 Introduction......................................................................................................... 277 Structure............................................................................................................... 277 Objectives............................................................................................................. 278

What is Azure Test Plans?................................................................................. 278



Planned manual testing.................................................................................. 279



Manual testing.................................................................................................... 278

User acceptance testing.................................................................................. 279 Exploratory testing......................................................................................... 279 Stakeholder feedback testing........................................................................... 279



Creating a new test plan.................................................................................... 280



Configurations.................................................................................................... 283



Assigning configurations to a Test Plan......................................................... 286



Types of Test Suites......................................................................................... 282 Creating a new configuration......................................................................... 285



xv

Creating a static Test Suite............................................................................. 287



Running a Test................................................................................................ 289



Installing Test and Feedback................................................................................ 291



Creating a Bug................................................................................................ 295



Query-Based Test Suite.................................................................................. 299



Requirement-Based Suite................................................................................ 297

Conclusion........................................................................................................... 304 Questions............................................................................................................. 305

Key terms............................................................................................................. 305

9. Extension Marketplace............................................................................................ 307 Introduction......................................................................................................... 307 Structure............................................................................................................... 307 Objectives............................................................................................................. 308

What is the Extension Marketplace?................................................................ 308



Using Extension tasks in the CI CD Pipeline.................................................. 312



Installing your custom developed extension to internal organizations..... 321



Installing the Extension from the Azure DevOps Marketplace..................... 309

Creating your custom Azure DevOps marketplace extension.................... 315

Sharing your custom developed extension publicly on the Azure DevOps marketplace....................................................................... 324

Summary.............................................................................................................. 325 Questions............................................................................................................. 325

Key terms............................................................................................................. 326

Index....................................................................................................................327-332

Demystifying Azure DevOps Services DESCRIPTION This book offers readers the best DevOps practices and explains how to implement various services of Azure DevOps to ensure efficiency, effectiveness, and better management of the entire software development lifecycle. This book explains each component of Azure DevOps services, their pricing models, and a quick tutorial on how to proceed with its usage. Backed with numerous examples, this book helps you implement Agile planning using Azure Boards, maintain code versioning using Azure Repos, and manage CI/CD using Azure Pipelines. You will learn how to administer the DevOps process such as managing packages using the most popular Azure Artifacts and how to run Test Plans using Azure Test Plans. You will also learn how to integrate with third-party systems. Finally, you will learn about marketplaces of extensions and how to develop your own extensions. KEY FEATURES Ÿ Ÿ Ÿ

Share knowledge on DevOps implementation and use of Azure DevOps services. Learn about Azure artifacts, dependency management, and CI/CD pipeline management. Manage third-party integration, Agile planning, and application lifecycle management.

WHAT WILL YOU LEARN Ÿ Ÿ Ÿ

Ÿ

Learn DevOps culture, practices, and habits. Learn to manage version control of the source code within Azure DevOps Services. Learn how to administer Azure DevOps services for an enterprise application lifecycle management system. Learn Azure DevOps services and features.

WHO THIS BOOK IS FOR This book is for anyone who wishes to use or who are using Azure DevOps services, including Infrastructure engineers, Software engineers, Architects, Testers, Managers, or Product Owners.

ISBN 978-93-8989-868-2

Get in touch

Social

© Copyright 2013 - 2024 MYDOKUMENT.COM - All rights reserved.