Exercise 1 – creating an AKS cluster using the Azure CLI
In this section, we will create a new AKS cluster using the Azure CLI.
You can open PowerShell and connect to your Azure account using your credentials. If you use the az
login
command line, you will be redirected to the web interface of Azure to log in to your account. Once you have logged in, you will get JSON output that includes all the information related to your subscription:
Figure 10.1 – Creating an AKS cluster using the Azure CLI
You can use the web interface of Azure Cloud Shell by going to https://shell.azure.com/.
Follow these steps to create a new AKS cluster:
- Create a new resource group.
We will start by creating a new resource group that will include our AKS cluster with the different resources that will be created with the cluster. We will use the az group create
command, as shown:
az group create --name healthcareRG --location eastus