I suggest you to try the following steps
Login azure cli: az login
Create an Azure ResourceGroup: az group create –name RG-K8S –location eastus
Refresh the registration of the Microsoft.ContainerService resource provider: az provider register –namespace Microsoft.ContainerService
Create aks cluster: az aks create --resource-group RG-K8S --name AKSTest --node-count 1 --enable-addons monitoring --generate-ssh-keys
Hope, this helps !
----------
--please don't forget to upvote
and Accept as answer
if the reply is helpful--