I am new to DevOps and having a difficulty deploying an application. I have created a Release in VSTS and added my Latest Build
and Latest Code
in the Artifiacts section.
In the stages area, I have created a one stage and it contains few tasks:
1. Agent Job:
In this task, I am providing my on-premises agent that I have created on my local machine.
2. PowerShell Script:
Providing a path of powershell script file from my Latest Code artifact.
I am using a on-premises agent, that I have configured on my local machine. Before deploying the application, from my Powershell window I make sure to run the agent so it status get Online
(In case if the status is offline)
When I create deployment to deploy this release, it successfully initializes the agent and move to the next step i.e. download Artifacts. Downloading Artifacts takes longer time to execute about more than 9 minutes and at the same time, my Powershell Console window, automatically closed itself.
When I check the status of my agent in Agent Pools, it shows as Offline.
Can anyone help me, why my agent get offline while running deployment?