liveBook · Manning

Azure CLI

As explained in Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

Azure CLI is Microsoft's cross-platform command-line interface for creating, configuring, and managing Azure resources.

Azure CLI is a terminal tool for creating and configuring Azure resources and connecting local tools to cloud infrastructure. Its practical role here is preparing kubectl to manage a Kubernetes cluster running on Azure. section 6.1 section 6.12

A typical Azure CLI workflow is:

  • Install the CLI for your platform and verify it with az --version. section 6.10.1
  • Authenticate with az login, then inspect and select the active Azure subscription. section 6.10.2
  • Check region-specific Kubernetes versions with az aks get-versions and choose one currently available. section 7.6
  • Download cluster credentials with az aks get-credentials so kubectl can access the Azure Kubernetes cluster. section 6.1 section 6.12
  • Retrieve container registry details with az acr show and az acr credential show, using table output when readability matters. section 7.9.6

Authenticate and select a subscription

Run az login, inspect the current account with az account show, list available subscriptions with az account list, and set the intended subscription with az account set --subscription=<subscription-id>. Verify the choice again with az account show before performing resource operations. section 6.10.2

Table 6.1 New tools in chapter 6 (view table figure)

Tool

Version

Purpose

Kubernetes

1.25.12

Kubernetes is the computing platform that we use to host our microservices in production.

Kubectl

1.27.2

Kubectl is the command-line tool for interacting with a Kubernetes cluster.

Azure CLI

2.51.0

We’ll use the Azure CLI to configure kubectl for access to our Kubernetes cluster.

Use the tool table to compare Azure CLI with Kubernetes and kubectl, including their stated versions and production roles. section 6.1

How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it

How deep it goes
Provides installation, authentication, subscription management, version discovery, credentials, and registry commands without detailing CLI internals.
Examples
Uses az login, subscription commands, AKS version queries, credential downloads, and container registry inspection.
What it assumes
Assumes an Azure account and terminal access, while teaching installation, login, subscription selection, and command verification.
What you can do after
Operate Azure resources and configure kubectl for authenticated access to an Azure Kubernetes cluster.
How it connects
Connects Azure accounts and resources with Kubernetes, kubectl, Terraform, Docker, and container registries.

Also explained in

Compare how 4 books explain Azure CLI →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.