Skip to content

Instantly share code, notes, and snippets.

View DheerajP's full-sized avatar

Dheeraj Palagiri DheerajP

View GitHub Profile
@DheerajP
DheerajP / Azure CLI commands
Last active October 28, 2021 09:47
Useful commands while working with AKS
#Switch between subscriptions
az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
#Set the context of your current AKS
az aks get-credentials -a --resource-group resourceGroupName --name aksName --overwrite-existing
#Set the context of your current Namespace in AKS
kubectl config set-context --current --namespace=nameofYourNameSpace
#Kill a pod