Changed Service Principal Creation sequence to comply with newer CLI reqs

This commit is contained in:
Eugene Chuvyrov 2016-11-08 00:09:23 -08:00
parent 3ccbb6ca91
commit f7c6180ff7
1 changed files with 2 additions and 2 deletions

View File

@ -159,10 +159,10 @@ createServicePrincipal() {
echo "==> Creating service principal" echo "==> Creating service principal"
# Azure CLI 0.10.2 introduced a breaking change, where appId must be supplied with the -a switch # Azure CLI 0.10.2 introduced a breaking change, where appId must be supplied with the -a switch
# prior version accepted appId as the only parameter without a switch # prior version accepted appId as the only parameter without a switch
newer_syntax = false newer_syntax=false
IFS='.' read -ra azureversionsemver <<< "$azureversion" IFS='.' read -ra azureversionsemver <<< "$azureversion"
if [ ${azureversionsemver[0]} -ge 0 ] && [ ${azureversionsemver[1]} -ge 10 ] && [ ${azureversionsemver[2]} -ge 2 ]; then if [ ${azureversionsemver[0]} -ge 0 ] && [ ${azureversionsemver[1]} -ge 10 ] && [ ${azureversionsemver[2]} -ge 2 ]; then
newer_syntax = true newer_syntax=true
fi fi
if [ "${newer_syntax}" = true ]; then if [ "${newer_syntax}" = true ]; then