From 4f6ba63ac73569cc4113cffc54e45f730f13a671 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Fri, 27 Aug 2021 17:44:45 +0300 Subject: [PATCH] updates: move Install-WindowsUpdates.ps1 at the top to fix winrm timeout (#3971) --- images/win/windows2019.json | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/images/win/windows2019.json b/images/win/windows2019.json index 8ffa122f..5bb10a24 100644 --- a/images/win/windows2019.json +++ b/images/win/windows2019.json @@ -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",