Once you completely provision the AKS, you can connect to AKS Azure as below:
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01132107/image-1-1024x187.png)
Then, we go to the folder containing the azure-kubectl, for example, cd ~.azure-kubectl
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01132008/image-1024x457.png)
Windows
For Windows users, you can open the PowerShell, then install it locally using the command:
# az aks install-cli
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01132201/image-2.png)
Then, we login to the azure by command line azure login
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01132244/image-3-1024x375.png)
Then, we connect to the cluster using Kubectl with the following example and gets credentials for the AKS cluster named myAKSCluster in myResourceGroup.az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01134935/image-4-1024x220.png)
Then, we can verify the connection to our cluster by running kubectl get nodes
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01140514/image-5.png)
Linux
Firstly, we can install az-cli for Linux by command line:
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Then, we can install aks by command line:
az aks install-cli
On Linux OS, we should use sudo before the command lin
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01140540/image-6-1024x120.png)
Then, we connect to the cluster using Kubectl with the following example and gets credentials for the AKS cluster named myAKSCluster in myResourceGroup.az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01140622/image-7-1024x229.png)
Then, we can verify the connection to our cluster by running the below command:kubectl get node
![](https://cdn.dxcloudsuite.io/wp-content/uploads/2023/06/01140738/image-9.png)