This file contains 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
#!/bin/sh | |
org=https://dev.azure.com/ChrisAyersFTA | |
project=Sample | |
saName=cayersadotestsa | |
saContainer=ado | |
az extension add --name azure-devops --upgrade -y | |
az devops project list --org=$org -o table |
This file contains 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
#!/bin/bash | |
if ! command -v gh >/dev/null 2>&1; then | |
echo "Install gh first" | |
exit 1 | |
fi | |
echo "gh cli installed" | |
# This script | |
if ! gh auth status >/dev/null 2>&1; then |
This file contains 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
ACR_NAME= | |
AKS_RESOURCE_GROUP= | |
AKS_AAD_ADMIN_GROUP= | |
AKS_CLUSTER_NAME= | |
AAD_TENANT_ID= | |
VNET_SUBNET_ID= | |
VNET_SERVICE_CIDR= | |
VNET_DNS_SERVICE_IP= | |
SSH_KEY= | |
AKS_CLUSTER_IDENTITY_NAME= |
This file contains 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
#Install WinGet | |
#Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901 | |
$hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller' | |
if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") { | |
"Installing winget Dependencies" | |
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' | |
$releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest' | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 |
This file contains 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
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse); | |
public class Flags | |
{ | |
} | |
public class Settings | |
{ | |
public Flags flags { get; set; } | |
} |
This file contains 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
$sourceNugetExe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" | |
$targetPath = "C:\Program Files\nuget" | |
if (-not (Test-Path -LiteralPath $targetPath)) { | |
try { | |
New-Item -Path $targetPath -ItemType Directory -ErrorAction Stop | Out-Null #-Force | |
} | |
catch { | |
Write-Error -Message "Unable to create directory '$targetPath'. Error was: $_" -ErrorAction Stop |