PowerShell

Create VSTS Build Definitions using PowerShell

Posted on

For my current project assignment I was asked to share a PowerShell script which creates VSTS build + phase dynamically. To make this blog short let me show a simple build definitions sample. With no wait here is the code $Token = “Personal Access Token” $Authentication = [Text.Encoding]::ASCII.GetBytes(“:$Token”) $Authentication = [System.Convert]::ToBase64String($Authentication) $Headers = @{ Authorization […]