May 2019
Beginner to intermediate
456 pages
10h 37m
English
Let's look at the deployment-group-registration script in more detail. The error preference for this script is set to stop, implying the script will stop execution on the first failure:
$ErrorActionPreference="Stop";
Validate that the user executing the script is part of the administrator role on the host machine:
If(-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent() ).IsInRole( [Security.Principal.WindowsBuiltInRole] “Administrator”)){ throw "Run command in Administrator PowerShell Prompt"};
Validate that the vstsagent folder exists in the System directory on the host machine. If not, create a new directory for vstsagent and navigate to that directory. If an agent already exists ...
Read now
Unlock full access