Author : HASSAN MD TAREQ | Updated : 2021/04/27

Azure cloudshell

Accessing Cloudshell

Initial Setup

How to Use Manifest File in Command (i.e. to deploy K8s workload)


Install chocolatey using PowerShell

# PowerShell console
Set-ExecutionPolicy Bypass -Scope Process -Force; `
  iex ((New-Object System.Net.WebClient).DownloadString(''))

# PowerShell ISE
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(''))

Upgrade Chocholatey

choco upgrade chocolatey

Check Chocholatey version

choco upgrade pkgname --noop


Install cmder using chocolatey

choco install cmder -y
# choco upgrade cmder

Open Cmder


Install kubectl using chocolatey

choco install kubernetes-cli -y
# choco upgrade kubernetes-cli

Check version

kubectl version --client


Install Helm using chocolatey

choco install kubernetes-helm -y

In Windows 10 (64-bit), helm will be installed (by chocolatey) in following folder


Add the above folder to ‘Path’ environment variable

Check Helm was istalled successfully

# you might need to restart your cmd/Cmder/Git Bash/PowerShell
helm version

Connect Cmder to Azure

Login to Azure

az aks login

Using Cmder to Interact with AKS Cluster

# if you are not logged in yet
az aks login

# get aks credential
az aks get-credentials --resource-group xyz-rg --name xyz-aks-cluster

AKS cluster Access Control

Once authenticated into AKS cluster, now execute kubectl commands

# make sure you set the correct namespace
kubectl config view --minify | grep namespace  # check namespace, for default namespace no value (empty) might be shown
kubectl config set-context --current --namespace xyz # set namespace

# Nodes
kubectl get nodes

# Pods
kubectl get pods

# Services
kubectl get svc

Installing NodeJS and NPM


Install NodeJS using chocolatey

choco install -y --force nodejs

Check version

node -v 


# install
npm i -g npm

# check version
npm -v

Installing Angular CLI


Installing Angular CLI using npm

# Global installation
npm install -g @angular/cli@
npm install -g @angular/cli@latest

# Local installation -> don't use '-g' flag
npm install @angular/cli@latest

# install specific (target) version
npm install -g @angular/cli@11.2.11

Check version

ng version

Uninstall Angular CLI

npm uninstall -g @angular/cli
npm uninstall @angular/cli
npm cache clean --force

# If you installed specific version
# i.e. version 11.2.11
npm uninstall -g @angular/cli@11.2.11
npm uninstall @angular/cli@11.2.11
npm cache clean --force