Using CI/CD pipeline in Visual Studio Online or Team Foundation Server, we can build and release our code easily to target server. However there is requirement that the target server must be prepared for remote deployment from the Agent server or we must install Agent inside the server. For many organizations, this requirement can be configured easily – however there are some organization that does not allow remote deployment or installation of agent. These organization only allow triggering of such deployment to be done/executed from within the server.
In short, the policy only allow that initiator should start from within the server; and prevent remote initiation of actions.
This module will help to solve the scenario, so that Administrator will be able to consume/download deployment package from Visual Studio Online/TFS repository after successful build. Using few parameters such as build number, and urls of the repository – the tools will download deployment package to the local folder and deploy locally.
Grab the tools here : https://www.powershellgallery.com/packages/VsoReleaseManagerClient