Kubectl vs Azure CLI

Mat CHAN 85 Reputation points
2023-04-06T03:34:20.6733333+00:00

Folks, What's the major difference between kubectl and Azure CLI (e.g.: az aks xxxx)

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andrei Barbu 2,596 Reputation points Microsoft Employee
    2023-04-06T06:02:24.2933333+00:00

    Hello Mat CHAN,

    Azure CLI (az cli) is a command-line tool for interacting with Azure resources and managing Azure services. It allows developers and administrators to easily manage and automate Azure resources from a terminal or command prompt. "az" cli includes "az aks".

    "az aks" is a command-line interface (CLI) tool provided by Azure that allows users to create and manage Azure Kubernetes Service (AKS) clusters. It provides commands to perform operations such as creating and scaling clusters, upgrading Kubernetes versions, and managing node pools.

    "kubectl" is a CLI tool provided by Kubernetes that allows users to interact with Kubernetes clusters. It provides commands to create, inspect, update, and delete Kubernetes resources such as pods, deployments, services, and configurations. In summary, "az aks" is specific to Azure and manages the AKS cluster, while "kubectl" is specific to Kubernetes and manages resources within the AKS cluster (or any Kubernetes cluster, not only AKS).

    I hope this is helpful. If any clarification needed, let me know and I will do my best to answer.

    Please "Accept as Answer" and Upvote if it helped, so that it can help others in the community looking for help on similar topics. Thank you!

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.