You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the ./deploy.sh script makes a call to the function
function configure_defaults() {
echo "Configure azure defaults resource group: $RESOURCE_GROUP and spring $SPRING_APPS_SERVICE"
az configure --defaults group=$RESOURCE_GROUP spring=$SPRING_APPS_SERVICE location=${REGION}
}
It is surprising that the script changes the defaults settings for the az cli, it is better if the script uses the passed in args -r, -s, -g without changing defaults
az configure --defaults \
group=${RESOURCE_GROUP} \
location=${REGION} \
spring=${SPRING_APPS_SERVICE}
Personally, I think this is a bad idea and worse in the configure_defaults function mentioned above.
I prefer using a local scope for defaults with configure this file .azure/config without changing global defaults:
az configure --scope local --defaults \
group=${RESOURCE_GROUP} \
location=${REGION} \
spring=${SPRING_APPS_SERVICE}
However, this is more useful for interactive use. For scripting, as @asaikali suggested above, it's probably better to just pass in args -r, -s, -g without changing defaults.
Currently the ./deploy.sh script makes a call to the function
It is surprising that the script changes the defaults settings for the
az
cli, it is better if the script uses the passed in args-r
,-s
,-g
without changing defaultsacme-fitness-store/azure/deploy.sh
Line 30 in dd52c7f
The text was updated successfully, but these errors were encountered: