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

MA, David 0 Reputation points
2024-03-27T23:14:24.8933333+00:00

hello,

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!

David
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,002 questions
0 comments No comments
{count} votes