0
votes

Im not seeing AKS from DevOps. Im trying to create a pipeline but AKS is not showing.

First of all, I created a service connection --> Azure Resource Manager --> Service Principal (Manual)

I have been working this way and I see all my AKS. I have a problem with this new one.

error

I dont know where is the problem. In DevOps I can see all my AKS except this new one

Any ideas to check?

2
Does the service principal you're using have access to the AKS resource in question?Daniel Mann
service principal has contributor accessexitista_gg

2 Answers

0
votes

In your Azure DevOps project navigate to Project Settings > Service Connections and select your Service Connection to Azure which will look something like this:

AzureDevOpsServiceConnection

Depending on how your Service Principal was set up you may be able to browse to it directly in the Azure Portal by clicking the Manage Service Principal link. There are other ways to set up a Service Connection and the method to find the Service Principal in the Azure Portal will differ, checkout the documentation here. Make a note of the Display Name for your Service Principal.

In the Azure Portal navigate to your AKS resource then navigate to the Access Control (IAM) blade and click Role Assignments. Check what Roles the Azure AD Service Principal for your Azure DevOps Service Connection has been assigned, it will need at least Contributor to make changes to your AKS cluster.

0
votes

You can use the verify connection link on the Edit service connection page to verify your connection information and check whether the Grant access permission to all pipelines option is checked.

enter image description here

In addition,here is a document on Troubleshoot Azure Resource Manager service connections you can refer to.