Reader small image

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

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781804612491
Edition1st Edition
Concepts
Right arrow
Authors (2):
Piti Champeethong
Piti Champeethong
author image
Piti Champeethong

Piti Champeethong is a senior consulting engineer at MongoDB, Singapore. He has been a part of the software development community for over 20 years and specializes in database application development and CI/CD implementation. He is a Microsoft Certified Trainer, lecturer, and community leader. He lives in Thailand and engages with Thai tech communities, such as the MongoDB Thailand User Group and the Thailand .NET community by speaking at various events. He has made significant contributions to public repositories on .NET and MongoDB technologies, supporting the growth of the Thai tech community.
Read more about Piti Champeethong

Roberto Mardeni
Roberto Mardeni
author image
Roberto Mardeni

Roberto Mardeni has been working in the IT industry for over two decades. He specializes in software development, architecture, and DevSecOps practices around many different application platforms and CI/CD tools, typically focusing on Microsoft .NET and other open source programming languages. He has been working since 2017 as an application innovation specialist on the enterprise sales side at Microsoft, supporting their cloud business. He lives in the United States and helps some of the largest independent software vendors to adopt the Azure platform. This is his first foray into technical writing, but he has contributed to the open source community in different GitHub public repositories of his own and contributed to others as well.
Read more about Roberto Mardeni

View More author details
Right arrow

Setting up self-hosted agents

After you’ve created a PAT, you can create a new self-hosted agent under a new agent pool. To do this, follow these steps:

  1. Click on PacktAzureDevOps | Agent pools | General:
Figure 1.17 – Entering a new agent pool

Figure 1.17 – Entering a new agent pool

  1. Click on New agent:
Figure 1.18 – Entering a new agent

Figure 1.18 – Entering a new agent

  1. You can download a self-hosted agent based on your operating system. Three operating system options will show you how to download and set them up:
    • Windows users can download build agent software from the Windows tab. There are two options, as shown in the following screenshot: Windows 64-bit (x64) and Windows 32-bit (x86):
Figure 1.19 – The Windows agent for setting up a file

Figure 1.19 – The Windows agent for setting up a file

  • To set up a Windows agent, you need to run on PowerShell as an administrator.
  • Mac users can download build agent software from the macOS tab:
Figure 1.20 – macOS agent

Figure 1.20 – macOS agent

  • You don’t need to use the bash command in the administrator role to set up the macOS agent.
  • Linux users can download build agent software from the Linux tab. There are four options for computer architecture – x64, ARM, ARM64, and RHEL6:
Figure 1.21 – Linux agent

Figure 1.21 – Linux agent

  • You don’t need to use a root user for installation to set up a Linux agent.
  1. After configuring the agent in each operating system, you must enter the following information:
    Enter (Y/N) Accept the Team Explorer Everywhere license agreement now? (press enter for N) > Y
    Enter server URL > https://dev.azure.com/yourOrganization
    Enter authentication type (press enter for PAT) > [ENTER]
    Enter personal access token > [Personal Access Token]
    Enter agent pool (press enter for default) > General
    Enter agent name (press enter for [computer name]) > agent01
    Enter work folder (press enter for _work) > [ENTER]
  2. Once you start the service, you will see that agent01 is active:
Figure 1.22 – The agent status dashboard

Figure 1.22 – The agent status dashboard

  1. You can see the Online status of the build agent that has already been created:
Figure 1.23 – The action menu of the agent

Figure 1.23 – The action menu of the agent

  1. You can delete the agent and update to a new version of the agent by clicking on the button with the ellipses or three dots.

You are now ready to create the build and deployment on the agent01 build agent. However, you need to set up the deployment group so that you can deploy your application on a local web server such as Microsoft Internet and Information Services (IIS). We’ll do this in the next section.

Previous PageNext Page
You have been reading a chapter from
Implementing CI/CD Using Azure Pipelines
Published in: Dec 2023Publisher: PacktISBN-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.
undefined
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 $15.99/month. Cancel anytime

Authors (2)

author image
Piti Champeethong

Piti Champeethong is a senior consulting engineer at MongoDB, Singapore. He has been a part of the software development community for over 20 years and specializes in database application development and CI/CD implementation. He is a Microsoft Certified Trainer, lecturer, and community leader. He lives in Thailand and engages with Thai tech communities, such as the MongoDB Thailand User Group and the Thailand .NET community by speaking at various events. He has made significant contributions to public repositories on .NET and MongoDB technologies, supporting the growth of the Thai tech community.
Read more about Piti Champeethong

author image
Roberto Mardeni

Roberto Mardeni has been working in the IT industry for over two decades. He specializes in software development, architecture, and DevSecOps practices around many different application platforms and CI/CD tools, typically focusing on Microsoft .NET and other open source programming languages. He has been working since 2017 as an application innovation specialist on the enterprise sales side at Microsoft, supporting their cloud business. He lives in the United States and helps some of the largest independent software vendors to adopt the Azure platform. This is his first foray into technical writing, but he has contributed to the open source community in different GitHub public repositories of his own and contributed to others as well.
Read more about Roberto Mardeni