Provisioning Azure Kubernetes Service

In this section, we will provision Azure Kubernetes Service using Azure CLI. Azure Kubernetes Service can also be provisioned from the Azure portal and Azure PowerShell:

  1. Log into Azure using the following command:
az login  
  1. Select an appropriate subscription using the following command:
az account set -subscription <<xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx>>  
  1. The Azure Kubernetes Service features are available from the az aks command.
  2. Create a new resource group to host Azure Kubernetes Service using the following command:
az group create --name "akdemo" --location "west Europe"  
  1. Once the resource group is created, we can create the Kubernetes cluster using the following command:
az aks create --resource-group ...

Get Azure for Architects - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.