porno

Hacklink

Hacklink Panel

Hacklink panel

Hacklink

Hacklink panel

Backlink paketleri

Hacklink Panel

Hacklink

Hacklink

Hacklink

Hacklink panel

Hacklink

Hacklink

Hacklink

Hacklink

Hacklink panel

Eros Maç Tv

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink satın al

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Illuminati

Hacklink

Hacklink Panel

Hacklink

Hacklink Panel

Hacklink panel

Hacklink Panel

Hacklink

Masal oku

Hacklink

Hacklink

Hacklink

Hacklink

Hacklink

Hacklink

Hacklink

Hacklink panel

Postegro

Masal Oku

Hacklink

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink

Hacklink

Hacklink

Hacklink

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink

Hacklink

Hacklink Panel

Hacklink

websiteseochecker

Hacklink

Hacklink

Buy Hacklink

Hacklink

Hacklink

Hacklink

Hacklink satın al

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink panel

Hacklink

Masal Oku

Hacklink panel

Hacklink

Hacklink

หวยออนไลน์

Hacklink

Hacklink satın al

Hacklink Panel

bahis siteleri

Hacklink panel

enbet

hititbet

vidobet

Bahsegel giriş

fixbet

sahabet

bets10

bets10 giriş

jojobet

bettilt

bettilt giriş

bettilt

bettilt giriş

tarabet orjinal giriş

vizyonbet giriş

tarabet giriş

bahsegel

bahsegel giriş

betboo

bahsegel giriş

hititbet giriş

alobet giriş

puff

online casino österreich legal

sekabet

marsbahis

Streameast

kulisbet

vdcasino

jojobet

jojobet giriş

jojobet

deneme bonusu veren siteler

meritbet

Totalsportek

kulisbet

bahsegel

nakitbahis

betebet

mavibet

kulisbet

kulisbet

mavibet

sevgiliye hediye

jojobet

Crackstreams

royalbet güncel giriş

nakitbahis

Nakitbahis

Streameast

kulisbet

kulisbet

setrabet güncel giriş

koora live

كورة لايف

ultrabet

setrabet hemen tıkla

vizyonbet hemen giriş

vizyonbet

betsmove

egebet

meritking

meritking giriş

meritbet

meritbet

jojobet

meritbet

meritbet

palacebet

odeonbet

odeonbet

odeonbet

meritking

megabahis

megabahis

megabahis

megabahis

meritking

meritking

egebet

egebet

casibom

jojobet giriş

jojobet güncel giriş

meritbet

Streameast

meritking

jojobet

meritking

meritking

meritking

betcup

bahsegel giriş

bahsegel

jojobet

jojobet giriş

holiganbet

Deneme Bonusu Veren Siteler

ankara escort

bartın çekici

nakitbahis giriş

1xbet

aresbet

ultrabet

Galabet

Galabet giriş

Galabet güncel giriş

galabet uygulama

sakarya escort

superbet

betwild

sloto

kareasbet

kulisbet

kulisbet

casibom

deneme bonusu siteleri

cratosroyalbet

pashagaming

sezarcasino

setrabet orjinal giriş

winxbet, winxbet giriş

bahiscasino, bahiscasino giriş

winxbet, winxbet giriş

bahiscasino, bahiscasino giriş

kulisbet, kulisbet giriş

betpas giriş

meritking

meritbet

meritking

betwoon

meritking

vidobet

vidobet

casibom

betzula

grandpashabet

maxwin

pashagaming

romabet giriş

teosbet

royalbet

bahsegel

betplay

interbahis

bahiscasino giriş

betebet

pashagaming giriş

kingroyal

betticket

bahibom

kingroyal

casinofast

cratosroyalbet

grandpashabet

matbet

grandpashabet

sekabet

cratosroyalbet

grandpashabet

onwin

sahabet giriş

tipobet

sahabet

tipobet

interbahis

interbahis giriş

tlcasino

portobet

pulibet

betnano

betlike

betlike giriş

perabet

jojobet

jojobet giriş

galabet

betebet

dinamobet

sekabet

jojobet

jojobet giriş

jojobet güncel giriş

perabet

kavbet

pusulabet

betcup

odeonbet

kingroyal

perabet

perabet giriş

jojobet

kingroyal

betvole

betvole giriş

betvole güncel giriş

betvole

betvole giriş

nerobet

holiganbet

betcio

betcio

betcio

casinomilyon

teosbet

teosbet

rinabet

sonbahis

betra

betnis

alobet

romabet

romabet

romabet

betcio

casibom

casibom giriş

casibom güncel giriş

vizyonbet

winxbet

prensbet

vizyonbet

grandpashabet

casinoroyal

milosbet

prensbet

maxwin giriş

kavbet

holiganbet

radissonbet

holiganbet giriş

grandpashabet giriş

betplay

alobet

roketbet

lunabet

perabet

perabet giriş

perabet güncel

Tekirdağ Escort

Ordu Escort

Diyarbakır Escort

Isparta Escort

Gaziantep Escort

Kayseri Escort

jojobet

Fethiye Escort

nakitbahis

Mersin Escort

artemisbet

Alanya Escort

Adana Escort

Marmaris Escort

betcio

casivera

betcio giriş

alobet

lunabet

romabet

romabet giriş

romabet

Eskişehir Escort

celtabet

betnis

casibom

betnis giriş

medusabahis

marsbahis

ultrabet

ultrabet giriş

Meritbet

vdcasino

Meritbet giriş

Madridbet

betnano

mavibet

mavibet giriş

matbet

kingbetting

Madridbet giriş

grandbetting

Madridbet

meritbet giriş

meritbet

gamdom

gamdom

nakitbahis

nakitbahis giriş

jojobet

betcio

sonbahis

sonbahis giriş

betsmove

meritking

meritking giriş

kingroyal

kingroyal giriş

madridbet

madridbet

Skip to content

Automating Azure DevOps Agent Setup

  • by

Azure DevOps agents are the backbones of CI/CD process as every build or release definition needs an agent machine to run on. But process of setting up an SelfHosted Azure DevOps agent is manual and cubersome. Sometimes it might take nearly 5 to 10 minutes to setup a Self Hosted interactive agent. So let us see how to automate the process of Azure DevOps Agent Setup using other agents (This would be more helpful when you need to setup agents for Automating or Performance Testing)

PreRequisites: You might need Administrator access to the machine in which you are trying to setup the agent. This is because you need to connect to the target machine to run the agent setup commands.If you are trying to setup an interactive agent, then you need the user account in which the interactive agent should run.

Our Plan is to download the agent zip file and upload it to a repository. Then copy the agent zip file to repository, extract it and run the config.cmd with necessary parameters to configure the agent as a autologon agent or as an service. (The other way is to directly download the agent file from Azure DevOps).But we are choosing

Agent Repository: I have created a agent Repository called “DevOpsAgent” and where I have uploaded the latest version of the agent zip file as shown below



Build Definition for Setting up the Agent:

Steps 1: Create a new build definition process called “DevOps Agent Setup” and the build definition would look something similar like here

Let us see the tasks one by one and why each task is needed.

Step 2: Add the task “Windows Machine File Copy” (This is needed because we are going to copy the files from the current agent machine to the agent where we are going to set up the agent)

Step 3: Then all we need is a couple of Powershell Tasks. Let us add 3 powershell tasks where the powershell commands would be executed on the remote machines/ The 1st powershell task will extract the agent zip file and copy it to a directory which will be our agent folder.



Expand-Archive -Path D:\vsts-agent-win-x64-$(AgentVersion).zip -DestinationPath  D:\($AgentFolder) -Force
 

Step 5: Then the next step is to add our user as an Administrator in case if you want this agent to be running as an interactive agent then you may need to setup this agent with autologin credentials which can be used here. For that I am going to use the same powershell task but going to execute the below command

try{ Set-LocalUser -Name $(AgentUserName) -Password $(AgentePassword)}
catch { "User already present" }
try { Add-LocalGroupMember -Group Administrators -Member -$(AgentUserName)}
catch { "User already Added as Administrator"  }

Step 6: The next powershell task is run the config.cmd which will do the agent setup automatically without asking us for any prompt. (There are many ways in which we can setup an interactive agent and instead of typing the commands one by one we can set it up by just giving different parameters without config.cmd prompting us for input

cd D:\$(AgentFolder)
.\config.cmd --unattended --url $(AgentOrg) --auth pat --token $(AgentPATToken) --pool $(AgentPool) --agent $(MachineName)$(AgentUserName) --runAsAutoLogon --windowsLogonAccount $(AgentUserName) --windowsLogonPassword $(AgentPassword) --overwriteautologon

The above powershell command can be even used in normal scenarios where you just need to setup an agent after logging into the machine. The above command will setup an interactive agent that can be used for Automation & Performance testing apart from the normal CI/CD Process. In case if you want the agent to be run as a service then you can even use a different command to run the agent as a service.