Skip to content

Instantly share code, notes, and snippets.

@kingnebby
Created May 20, 2020 14:42
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 kingnebby/6107cfb027a53ebde7a706e7c96d93e3 to your computer and use it in GitHub Desktop.
Save kingnebby/6107cfb027a53ebde7a706e7c96d93e3 to your computer and use it in GitHub Desktop.
Updated with env vars
# AZ_SUB_ENV => the azure subscription env suffix
# AZ_AKS_ENV => the azure kubernetes service env suffix
env-az-setup() {
echo "Setting Subscription: $AZ_SUB_ENV"
az account set --subscription umbrellaCorp-crankshaft-$AZ_SUB_ENV;
echo "Getting Kubectl Creds: dev"
az aks get-credentials --resource-group crankshaft-aks-$AZ_AKS_ENV-rg --name crankshaft-aks-$AZ_AKS_ENV;
helm list;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment