title: Azure AKS get-credentials does not work when called inside a docker container
body: <p>I am running <em>Jenkins</em> as a dockerised master and have included Azure CLI in the image.<br />
  When the following is called<br />
  <code>az aks get-credentials --resource-group amdDevResourceGroup --name myAKSCluster</code><br />
  returns</p>
  <blockquote>
  <p>ForbiddenError: The client 'ff761a5f-3caf-4534-a007-5dde398d8dc0' with object id 'ff761a5f-3caf-4534-a007-5dde398d8dc0' does not have authorization to perform action 'Microsoft.ContainerService/managedClusters/listClusterUserCredential/action' over scope '/subscriptions/caafd4f0-659a-4da7-b613-d7ef3d5225a7/resourceGroups/amdDevResourceGroup/providers  /Microsoft.ContainerService/managedClusters/myAKSCluster' or the scope is invalid. If access was recently granted, please refresh your credentials.</p>
  </blockquote>
  <p>The same command works in the Azure shell.</p>
  <p>Any help in resolving this would be greatly appreciated</p>