Created
May 20, 2020 14:42
-
-
Save kingnebby/6107cfb027a53ebde7a706e7c96d93e3 to your computer and use it in GitHub Desktop.
Updated with env vars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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