which type should I use for creating ADO's service connection for AKS

MA, David 0 Reputation points


I want to create ADO service connection via az cmd.

What type should I set for creating azure ADO service connection for AKS via cmd 'az devops service-endpoint create --service-endpoint-configuration myfile.json'.

I set type kubernetes in the json file, but didn't work with error:

Unable to find service connection type 'kubernetes' using authentication schema 'ServicePrincipal'.

I checked the output of command: az devops service-endpoint list, and find the existed AKS did use that type as below:

"type": "kubernetes",

"url": "https://mydns-zvwnoqdd.hcp.westus2.azmk8s.io"
```Also I tried to sue type: azurermkubernetes, Kubernetes, etc. all failed.

should not I use Principal for AKS?  I did create ACR service connection successfully.

how should I use then?

Thanks a lot!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,746 questions
0 comments No comments
{count} votes