Loading Credentials
How to extract K8s credentials from azure
Loading creds
#=============================================
# Set the variables for your environment
$app = "app"
$env = "dev"
$zone = "z1"
$prefix = "$($app)$($env)$($zone)
$rg = "$prefix-core-rg"
$aks = "$prefix-core-aks"
# Load credentials for the cluster
az aks get-credentials --resource-group $rg --name $aks
kubectl config set-context --current --namespace=$ns
#=============================================
# Az commandline - set active subscription
az account set --subscription $subscription_id
az aks browse --resource-group $rg --name $aks
#=============================================Last updated