question

GildasCherruel-6731 avatar image
0 Votes"
GildasCherruel-6731 asked ·

az aks create fails with: "Details: token contains an invalid number of segments"

Whenever I try to create a new k8s cluster, following the documentation: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough, I get an error since yesterday.

This used to work perfectly well, at least until several weeks ago. But now I get this:

> Finished service principal creation[##################################] 100.0000%Operation failed with status: 'Bad Request'. Details: The credentials in ServicePrincipalProfile were invalid. Please see https://aka.ms/aks-sp-help for more details. (Details: token contains an invalid number of segments)

The command I used was (besides the names) what the doc said:

 az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 1 --enable-addons monitoring --generate-ssh-keys

It seems someone else bumped into this as well: https://github.com/MicrosoftDocs/azure-docs/issues/56103

azure-kubernetes-service
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GildasCherruel-6731 Any update on the issue?
Please check the az version as suggested.

0 Votes 0 ·
MarcosMSFT-2896 avatar image
0 Votes"
MarcosMSFT-2896 answered ·

Hello,

Can you confirm the version of AzCLI you're using by running az --version?

Also, are you able to reproduce the same issue by using CloudShell?

Marcos M Martinez



·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

vdL-6230 avatar image
0 Votes"
vdL-6230 answered ·

I have the same issue. AZ version is 2.7.0.

The CloudShell behaves the same, same error message.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

After changing the location of the resource group from west europe to north europe I was able to create the aks.

0 Votes 0 ·