[Ubuntu] Freeze Az.Accounts module for Ubuntu 20 (#1993)

* add reboot for Ubuntu20

* freeze Az.Accounts 1.9.5
This commit is contained in:
Aleksandr Chebotov
2020-11-05 23:01:06 +03:00
committed by GitHub
parent 66b931d9af
commit 567e92c4dc

View File

@@ -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