Mod 3: Creating and Managing Build Agents

Play Mod 3: Creating and Managing Build Agents
Sign in to queue

Description

Understand what's going on under the hood with build pools containing hosted (or your own) build controllers. See how to create your own pool, and add Windows and Linux-based virtual machines.

Embed

Download

The Discussion

  • User profile image
    Todd Olsen

    At the step of using Powershell to run the ConfigureAgent.ps1 file I am receiving the following errors. Any idea why?

    The term 'Unblock-File' is not recognized as the name of a cmdlet, function, script file, or operable program. Check th
    e spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Agent\ConfigureAgent.ps1:12 char:52
    + Get-ChildItem -Path $currentLocation | Unblock-File <<<< | out-null
    + CategoryInfo : ObjectNotFound: (Unblock-File:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    The term 'Unblock-File' is not recognized as the name of a cmdlet, function, script file, or operable program. Check th
    e spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Agent\ConfigureAgent.ps1:13 char:67
    + Get-ChildItem -Recurse -Path $currentLocation\Agent | Unblock-File <<<< | out-null
    + CategoryInfo : ObjectNotFound: (Unblock-File:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    Cannot find an overload for "Combine" and the argument count: "3".
    At C:\Agent\ConfigureAgent.ps1:15 char:43
    + $agentLocation = [System.IO.Path]::Combine <<<< ($currentLocation, 'agent', 'vsoAgent.exe')
    + CategoryInfo : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodCountCouldNotFindBest

    Write-Error : File not found:
    At C:\Agent\ConfigureAgent.ps1:19 char:16
    + Write-Error <<<< "File not found: $agentLocation"
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell.Commands.WriteErr
    orCommand

  • User profile image
    Niner942337

    Todd Olsen : Just checking if you get that issue with Powershell V 3 or above too ?  

Add Your 2 Cents