Search code examples
azurekubernetesazure-virtual-machinekubectl

Get kubernetes credentials from Azure


  • I have created a Azure container Service

orchestratorType : Kubernetes Group-Name : Mygrp DNS : MyDNs

  • Now I have to install kubectl on m/c and service , pods too
  • For this I logged into my account from azure CLI
  • I need azure kubernetes credentials for kubectl and command for taht is

az acs kubernetes get-credentials --resource-group=<cluster-resource-group> --name=<cluster-name>

  • From above Info , I know cluster-resource-group is Mygrp (or I am wrong ?) but what will be cluster-name ?

    • Or their is something I have configure for this ?

Solution

  • We can find the --name via Azure Portal:

    enter image description here