Hello Bruno Neves,
I am summarizing the actions we took in the answer section so that you can go-ahead and accept the answer which will be helpful to other members who are looking for similar answers !!
-> Initially below command failed in your local system:
az aks create -g brunoneves-test -n ab-devops-test --location northeurope --nodepool-name app --node-count 1 --host-group-id /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/brunoneves-test/providers/Microsoft.Compute/hostGroups/ab-devops-test --node-vm-size Standard_DC2s_v2 --enable-managed-identity --assign-identity /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resourcegroups/brunoneves-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ab-devops-test
unrecognized arguments: --host-group-id /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/brunoneves-test/providers/Microsoft.Compute/hostGroups/ab-devops-test
-> We tested using Azure Portal CLI - it went through
-> Then you've uninstalled the CLI and reintalled latest version 2.51.0 same as 1st post.
-> Then you 've also deleted the .azure folder on your home folder
-> Later you've executed the command to create the AKS cluster and it worked.
Regards,
Shiva.