Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.24 KB

azure.md

File metadata and controls

53 lines (35 loc) · 1.24 KB

Azure

DevOps Bash tools for Azure, AKS, VMs etc

HariSekhon/DevOps-Bash-tools

Install Azure CLI

Follow the install doc or paste this to run an automated install script which auto-detects and handles Mac or Linux:

git clone https://github.com/HariSekhon/DevOps-Bash-tools
bash-tools/install/install_azure_cli.sh

Then authenticate using one of the documented methods eg:

az login

Set up access to AKS - Azure Kubernetes Service

First set up your Azure CLI as above.

Run the aks_kube_creds.sh script from the DevOps-Bash-tools repo's azure directory.

This will find and configure all your kubernetes clusters in the current project.

az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
kubectl config get-contexts

switch to the cluster you want:

kubectl config use-context <name>
kubectl get pods --all-namespaces

Then see Kubernetes for configs, scripts and .envrc.

Partial port from private Knowledge Base page 2017+