Files
windows-dev-box-setup-scripts/devops_azure.ps1
Yosef Durr d488050ca9 adding azure devops script and a chocolateyfest demo (#73)
* adding devops tool install commands
* personalizing demo script
2018-10-06 18:17:31 -07:00

51 lines
1.5 KiB
PowerShell

# Description: Boxstarter Script
# Author: Microsoft
# Common settings for azure devops
Disable-UAC
$ConfirmPreference = "None" #ensure installing powershell modules don't prompt on needed dependencies
# Get the base URI path from the ScriptToCall value
$bstrappackage = "-bootstrapPackage"
$helperUri = $Boxstarter['ScriptToCall']
$strpos = $helperUri.IndexOf($bstrappackage)
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
$helperUri = $helperUri.TrimStart("'", " ")
$helperUri = $helperUri.TrimEnd("'", " ")
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
$helperUri += "/scripts"
write-host "helper script base URI is $helperUri"
function executeScript {
Param ([string]$script)
write-host "executing $helperUri/$script ..."
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
}
#--- Setting up Windows ---
executeScript "FileExplorerSettings.ps1";
executeScript "SystemConfiguration.ps1";
executeScript "RemoveDefaultApps.ps1";
executeScript "CommonDevTools.ps1";
executeScript "Browsers.ps1";
executeScript "HyperV.ps1";
RefreshEnv
executeScript "WSL.ps1";
RefreshEnv
executeScript "Docker.ps1";
choco install powershell-core
choco install azure-cli
Install-Module -Force Az
choco install microsoftazurestorageexplorer
choco install terraform
# Install tools in WSL instance
write-host "Installing tools inside the WSL distro..."
Ubuntu1804 run apt install ansible -y
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula