<p>when I execute the following PowerShell command:</p>

<pre><code>.\kubectl get nodes
</code></pre>

<p>I get no nodes in response. I noticed that the config file from kubectl is empty too:</p>

<pre><code>apiVersion: v1
clusters:
- cluster:
    server: ""
  name: cl-kubernetes
contexts: []
current-context: ""
kind: Config
preferences: {}
users: []
</code></pre>

<p>When I enter the server address at the config file, I get the message that the connection was refused. I suspect that it is due to missing certificates. During another installation this (apparently) following information was created automatically, which is now missing:</p>

<p>certificate-authority-data,
contexts - cluster,
contexts - user,
current context,
users - name,
client-certificate-data,
client-key-data,
token,</p>

<p>Could that be it? If so, where do I get this information?</p>

<p>Many thanks for the help</p>

A456B123
<p>You need to use the Azure CLI first to get the credentials. Run</p>

<pre><code>az aks get-credentials
</code></pre>

<p><a href="https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-get-credentials" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-get-credentials</a></p>
