Started a demoscripts folder, refactored some helper scripts (#70)
* moving all recipes to dynamically find helper scripts * started to a devops_azure script * re-organizing some existing scripts * updated Readme known issues
This commit is contained in:
38
devops_azure.ps1
Normal file
38
devops_azure.ps1
Normal file
@@ -0,0 +1,38 @@
|
||||
# Description: Boxstarter Script
|
||||
# Author: Microsoft
|
||||
# Common settings for azure devops
|
||||
|
||||
Disable-UAC
|
||||
|
||||
# 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 "WSL.ps1";
|
||||
executeScript "HyperV.ps1";
|
||||
executeScript "Docker.ps1";
|
||||
executeScript "Browsers.ps1";
|
||||
|
||||
# TODO: Expand on tools/configuration options here
|
||||
# Azure CLI, Azure PS, Azure SDK, Ansible, TerraForms
|
||||
|
||||
Enable-UAC
|
||||
Enable-MicrosoftUpdate
|
||||
Install-WindowsUpdate -acceptEula
|
||||
Reference in New Issue
Block a user