Move azpowershell versions to toolset

This commit is contained in:
Maksim Petrov
2020-06-28 21:03:34 +03:00
parent 3b86a377ee
commit 52610e17ba
3 changed files with 34 additions and 1 deletions

View File

@@ -12,7 +12,8 @@ source $HELPER_SCRIPTS/os.sh
if isUbuntu20 ; then
versions=$(pwsh -Command '(Find-Module -Name Az).Version')
else
versions=(1.0.0 1.6.0 2.3.2 2.6.0 2.8.0 3.1.0 3.5.0 3.8.0 4.3.0)
toolsetJson="$INSTALLER_SCRIPT_FOLDER/toolset.json"
versions=$(cat $toolsetJson | jq -r '.azureModules[] | select(.name | contains("Az")) | .versions[]')
fi
# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)