updates: move Install-WindowsUpdates.ps1 at the top to fix winrm timeout (#3971)

This commit is contained in:
Aleksandr Chebotov
2021-08-27 17:44:45 +03:00
committed by GitHub
parent 3b94fc1d86
commit 4f6ba63ac7

View File

@@ -129,9 +129,17 @@
],
"execution_policy": "unrestricted"
},
{
"type": "powershell",
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1"
],
"elevated_user": "{{user `install_user`}}",
"elevated_password": "{{user `install_password`}}"
},
{
"type": "windows-restart",
"restart_timeout": "10m"
"restart_timeout": "30m"
},
{
"type": "powershell",
@@ -239,24 +247,16 @@
"{{ template_dir }}/scripts/Installers/Install-GoogleCloudSDK.ps1",
"{{ template_dir }}/scripts/Installers/Install-CodeQLBundle.ps1",
"{{ template_dir }}/scripts/Installers/Install-BizTalkBuildComponent.ps1",
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1"
]
},
{
"type": "powershell",
"scripts": [
"{{ template_dir }}/scripts/Installers/Install-WindowsUpdates.ps1",
"{{ template_dir }}/scripts/Installers/Disable-JITDebugger.ps1",
"{{ template_dir }}/scripts/Installers/Configure-DynamicPort.ps1",
"{{ template_dir }}/scripts/Installers/Configure-GDIProcessHandleQuota.ps1",
"{{ template_dir }}/scripts/Installers/Configure-Shell.ps1",
"{{ template_dir }}/scripts/Installers/Enable-DeveloperMode.ps1"
],
"elevated_user": "{{user `install_user`}}",
"elevated_password": "{{user `install_password`}}"
]
},
{
"type": "windows-restart",
"restart_timeout": "30m"
"restart_timeout": "10m"
},
{
"type": "powershell",