<p>when I run the <code>az aks get-credentials --resource-group ResourceName --name Clustername --admin</code> to connect to the cluster using azure CLI. This command return the clustername in lowercase, whereas the clustername in Azure portal is in Uppercase. Do anyone have idea why it returns the clustername in lowercase?</p>

khaleel
<p>That's because a cluster name in Kubernetes has to be an <code>RFC 1035</code> compliant DNS name. This puts a restriction for your cluster name to only include lowercase letters. My guess is, Azure Kubernetes Service lets you create clusters with upper case names for convenience, in the Console, but keep in mind inside Kubernetes itself, the cluster name will <em>always</em> be lower case letters. That's what you're getting from your command line.</p>
