From 567e92c4dc955fe8d19390b241f5e3467bb7d7e8 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Thu, 5 Nov 2020 23:01:06 +0300 Subject: [PATCH] [Ubuntu] Freeze Az.Accounts module for Ubuntu 20 (#1993) * add reboot for Ubuntu20 * freeze Az.Accounts 1.9.5 --- images/linux/scripts/installers/azpowershell.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/images/linux/scripts/installers/azpowershell.sh b/images/linux/scripts/installers/azpowershell.sh index 13253b5f..f18492c5 100644 --- a/images/linux/scripts/installers/azpowershell.sh +++ b/images/linux/scripts/installers/azpowershell.sh @@ -18,6 +18,10 @@ pwsh -Command "Update-Module -Name PowerShellGet -Force" # Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli) for version in ${versions[@]}; do pwsh -Command "Save-Module -Name Az -LiteralPath /usr/share/az_$version -RequiredVersion $version -Force -Verbose" + if isUbuntu20; then + rm -rf "/usr/share/az_$version/Az.Accounts" + pwsh -Command "Save-Module -Name Az.Accounts -LiteralPath /usr/share/az_$version -RequiredVersion 1.9.5 -Force -Verbose" + fi done # Run tests to determine that the software installed as expected