This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-Mode | |
| { | |
| Param( | |
| $line | |
| ) | |
| $returnvalue = "" | Select-Object -Property mode, skipLogic | |
| $mode = [Mode]::BODY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Newtonsoft.Json.Linq; | |
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| namespace RMTransform | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.TeamFoundation.Build.Client; | |
| using Microsoft.TeamFoundation.Client; | |
| using System; | |
| using System.Linq; | |
| // Needs the Nuget package Microsoft.TeamFoundationServer.ExtendedClient | |
| namespace RemoveXAMLBuildController | |
| { | |
| class Program | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param | |
| ( | |
| [parameter(Mandatory = $true, HelpMessage = "Azure DevOps PAT token")] | |
| $pat, | |
| [parameter(Mandatory = $true, HelpMessage = "URL of Azure DevOps instance e.g. https://dev.aure.com/myinstance")] | |
| $url, | |
| [parameter(Mandatory = $true, HelpMessage = "Azure DevOps Agent Pool name")] | |
| $pool , | |
| [parameter(Mandatory = $true, HelpMessage = "Based name for agent to search for e.g MyAgent as part of B1MyAgent-123")] | |
| $agentBaseName , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param | |
| ( | |
| [parameter(Mandatory = $true, HelpMessage = "Azure DevOps PAT token")] | |
| $pat, | |
| [parameter(Mandatory = $true, HelpMessage = "URL of Azure DevOps instance e.g. https://dev.aure.com/myinstance")] | |
| $url, | |
| [parameter(Mandatory = $true, HelpMessage = "Azure DevOps Agent Pool name")] | |
| $pool , | |
| [parameter(Mandatory = $true, HelpMessage = "Based name for agent to search for e.g MyAgent as part of B1MyAgent-123")] | |
| $agentBaseName , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [parameter(Mandatory = $true, HelpMessage = "Name of the Lablity enviroment definition")] | |
| $mediaid , | |
| [parameter(Mandatory = $true, HelpMessage = "UNC path the VHDs are stored on")] | |
| $downloadPath | |
| ) | |
| $metadataFiles = Get-ChildItem -Path $downloadPath -filter *.metadata | |
| foreach ($file in $metadataFiles) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param | |
| ( | |
| [parameter(Mandatory = $true, HelpMessage = "Lability environment name")] | |
| $environmentName , | |
| [parameter(Mandatory = $true, HelpMessage = "An idenfication leter)] | |
| $prefix, | |
| [parameter(Mandatory = $true, HelpMessage = "Used as an index for the prefix and to calculate the IP address ")] | |
| $index, | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param | |
| ( | |
| [parameter(Mandatory = $true, HelpMessage = "Admin user name for new VM")] | |
| $AgentUser, | |
| [parameter(Mandatory = $true, HelpMessage = "Admin passworduser name for new VM")] | |
| $AgentPassword, | |
| [parameter(Mandatory = $true, HelpMessage = "Azure DevOps PAT token")] | |
| $pat, | |
| [parameter(Mandatory = $true, HelpMessage = "URL of Azure DevOps instance t register agent on e.g. https://dev.aure.com/myinstance")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param | |
| ( | |
| [Parameter(Mandatory = $true)] | |
| [string]$pat, | |
| [Parameter(Mandatory = $true)] | |
| [string]$instance, | |
| [Parameter(Mandatory = $true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| configuration BuildAgent { | |
| param ( | |
| [ValidateNotNull()] | |
| [System.Management.Automation.PSCredential]$Credential, | |
| [string]$EnvPrefix, | |
| [Int]$RetryCount = 100, | |
| [Int]$RetryIntervalSec = 30 | |
| ) |
OlderNewer