<p>I'm trying to follow <a href="https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/azure.md" rel="nofollow noreferrer">this guide</a> to setting up a K8s cluster with external-dns' Azure DNS provider. 
The guide states that:</p>

<blockquote>
  <p>When your Kubernetes cluster is created by ACS, a file named <code>/etc/kubernetes/azure.json</code> is created to store the Azure credentials for API access. Kubernetes uses this file for the Azure cloud provider.</p>
</blockquote>

<p>When I create a cluster using aks (e.g. <code>az aks create --resource-group myResourceGroup --name myK8sCluster --node-count 1 --generate-ssh-keys</code>) this file doesn't exist.</p>

<p>Where do the API credentials get stored when using AKS?</p>

<p>Essentially I'm trying to work out where to point this command:</p>

<p><code>kubectl create secret generic azure-config-file --from-
file=/etc/kubernetes/azure.json</code></p>

<p>From what I can see when using AKS the <code>/etc/kubernetes/azure.json</code> doesn't get created. As an alternative I followed the instructions for use with non Azure hosted sites and created a service principal (<a href="https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/azure.md#optional-create-service-principal" rel="nofollow noreferrer">https://github.com/kubernetes-incubator/external-dns/blob/master/docs/tutorials/azure.md#optional-create-service-principal</a>)</p>

<p>Creating the service principal produces some json that contains most of the detail. This can be used to manually create the azure.json file and the secret can be created from it.</p>
