<p>I am getting this error(ResourceGroupNotFound) while running this command &lt;az aks get-credentials --resource-group AKSResourceGroupName --name AKSClusterName&gt;</p>
<p>Error message :-</p>
<p>az aks get-credentials --resource-group AKSResourceGroupName --name AKSClusterName
(ResourceGroupNotFound) Resource group 'AKSResourceGroupName' could not be found.
Code: <strong>ResourceGroupNotFound</strong>
Message: Resource group 'AKSResourceGroupName' could not be found.</p>

user17784455
<p>First, please check your subscription and select correct subscription:</p>
<pre><code>az account list --output table    
az account set --subscription &lt;name or id&gt;
</code></pre>
<p>then you doing everything correct:</p>
<pre><code>az aks get-credentials --name AKSClusterName --resource-group AKSResourceGroupName
</code></pre>
