Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Implementing CI/CD Using Azure Pipelines

You're reading from  Implementing CI/CD Using Azure Pipelines

Product type Book
Published in Dec 2023
Publisher Packt
ISBN-13 9781804612491
Pages 326 pages
Edition 1st Edition
Languages
Concepts
Authors (2):
Piti Champeethong Piti Champeethong
Profile icon Piti Champeethong
Roberto Mardeni Roberto Mardeni
Profile icon Roberto Mardeni
View More author details

Table of Contents (18) Chapters

Preface 1. Part 1:Getting Started with Azure Pipelines
2. Chapter 1: Understanding Azure Pipelines 3. Chapter 2: Creating Build Pipelines 4. Chapter 3: Setting Variables, Environments, Approvals, and Checks 5. Chapter 4: Extending Advanced Azure Pipelines Using YAML 6. Part 2:Azure Pipelines in Action
7. Chapter 5: Implementing the Build Pipeline Using Deployment Tasks 8. Chapter 6: Integrating Testing, Security Tasks, and Other Tools 9. Chapter 7: Monitoring Azure Pipelines 10. Chapter 8: Provisioning Infrastructure Using Infrastructure as Code 11. Part 3:CI/CD for Real-World Scenarios
12. Chapter 9: Implementing CI/CD for Azure Services 13. Chapter 10: Implementing CI/CD for AWS 14. Chapter 11: Automating CI/CD for Cross-Mobile Applications by Using Flutter 15. Chapter 12: Navigating Common Pitfalls and Future Trends in Azure Pipelines 16. Index 17. Other Books You May Enjoy

Setting up deployment groups

Deployment groups are logical agent groupings for application deployment on target machines based on environments – they are typically named based on your project needs and promotion levels before they go to production. Agents are installed in each environment. Each agent under the deployment groups supports only Windows and Linux.

These deployment groups can be divided based on environments, such as development (Dev), quality assurance (QA), user acceptance testing (UAT), and production (Prod), as shown in the following figure:

Figure 1.24 – Deployment groups concept

Figure 1.24 – Deployment groups concept

To create a deployment group, follow these instructions:

  1. Navigate to Pipelines | Deployment groups | Groups | Add a deployment group:
Figure 1.25 – Adding a deployment group

Figure 1.25 – Adding a deployment group

  1. Enter the required information and click Create:
Figure 1.26 – Entering deployment group information

Figure 1.26 – Entering deployment group information

  1. After creating the deployment group, you must set up the deployment agent under your deployment group. There are two operating systems the deployment agents support:
    • Windows users can install an agent of the deployment group by copying the PowerShell script and running it with an administrator command prompt:
  Figure 1.27 – Script to deploy an agent on Windows

Figure 1.27 – Script to deploy an agent on Windows

  • Linux users can install an agent of the deployment group by copying the bash shell script and running it with an administrator command prompt:
  Figure 1.28 – Script to deploy an agent on Linux

Figure 1.28 – Script to deploy an agent on Linux

  1. After setting up the agent for deployment groups, you will see that the build agent of the deployment group is online:
Figure 1.29 – The deployment agent is online

Figure 1.29 – The deployment agent is online

After setting up the build and deployment agent on a self-hosted computer, you are ready to create your first Azure pipeline.

You have been reading a chapter from
Implementing CI/CD Using Azure Pipelines
Published in: Dec 2023 Publisher: Packt ISBN-13: 9781804612491
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}