Skip to content

Instantly share code, notes, and snippets.

@burkeholland
Created October 30, 2019 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burkeholland/9ae516ba59decf56aa9c807862e8eda0 to your computer and use it in GitHub Desktop.
Save burkeholland/9ae516ba59decf56aa9c807862e8eda0 to your computer and use it in GitHub Desktop.
# Make sure the subscription is set to Ignite The Tour
az account set --subscription cd400f31-6f94-40ab-863a-673192a3c0d0
# Reset the ApiUrl and APIShoppingCart Application Settings to default "broken" values
echo "Setting East US back to a broken state..."
az webapp config appsettings set -g apps50-frontend -n tailwindtraders-website-eastus-apps50-frontend --settings ApiUrl=http://AKS_BACKEND_ENDPOINT/webbff/v1 --output none
az webapp config appsettings set -g apps50-frontend -n tailwindtraders-website-eastus-apps50-frontend --settings ApiUrlShoppingCart=http://AKS_BACKEND_ENDPOINT/cart-api --output none
# Reset the ApiUrl and APIShoppingCart Application Settings to default "broken" values
echo "Setting Australia East back to a broken state..."
az webapp config appsettings set -g apps50-frontend -n tailwindtraders-website-auseast-apps50-frontend --settings ApiUrl=http://AKS_BACKEND_ENDPOINT/webbff/v1 --output none
az webapp config appsettings set -g apps50-frontend -n tailwindtraders-website-auseast-apps50-frontend --settings ApiUrlShoppingCart=http://AKS_BACKEND_ENDPOINT/cart-api --output none
echo "Finished reset"
echo "Here are the current App Settings for East US..."
az webapp config appsettings list -g apps50-frontend -n tailwindtraders-website-eastus-apps50-frontend --out table
echo " "
echo "Here are the current App Settings for Australia East..."
az webapp config appsettings list -g apps50-frontend -n tailwindtraders-website-auseast-apps50-frontend --out table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment