MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.01k stars 21k forks source link

Cannot create Azure Kubernetes Service connection in Azure DevOps with Azure Subscription and Service Account but works for KubeConfig #108107

Closed SiddheshDesai06 closed 1 week ago

SiddheshDesai06 commented 1 year ago

According to the answer here :- https://learn.microsoft.com/en-us/answers/questions/1048362/cannot-setup-a-kubernetes-service-connection-witho Only Local accounts are supported while creating the Azure Kubernetes Service connection, this point is not added in the Document as a limitation. The Service connection creation with Azure Subscription and Service Account fails. For Service account according to the latest version of K8. The secrets are not generated refer these SO links below:- https://stackoverflow.com/questions/75692230/secret-for-a-kubernetes-service-accounts-is-not-getting-created And for Azure Subscription it gives the error below:-

Could not find any secrets associated with the Service Account.

Refer below:- https://learn.microsoft.com/en-us/answers/questions/1051970/aks-with-kubernetes-service-connection-returns-cou

https://stackoverflow.com/questions/75672941/error-in-creating-service-connection-in-azure-devop-to-azure-kubernetes-service/ According to the answer in the above SO post The only workaround here is to use KubeConfig to create Kubernetes Service connection in Azure DevOps successfully.

Reference:- https://developercommunity.visualstudio.com/t/New-Kubernetes-service-connection-causes/10138123#T-N10138393


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

AjayBathini-MSFT commented 1 year ago

@SiddheshDesai06 Thanks for your feedback! We will investigate and update as appropriate.

SaibabaBalapur-MSFT commented 1 year ago

@SiddheshDesai06 I'm going to assign this to the document author so they can take a look at it accordingly.

@juliakm Can you please check and add your comments on this doc update request as applicable.

rayoef commented 1 year ago

reassign:MGoedtel

rayoef commented 1 month ago

unassign-reviewer:MGoedtel

prmerger-automator[bot] commented 1 month ago

Invalid command: '#unassign-reviewer'. This command is only available for PRs.

rayoef commented 1 month ago

reassign:tamram

juliakm commented 3 weeks ago

@SiddheshDesai06 Were you able to resolve this issue? There was an issue with secrets and Kubernetes that was resolved in May/June 2023. There's more context in this blog post by our product manager. Around the time this issue was filed, secrets weren't working correctly and you may have run into that error.

tamram commented 1 week ago

@SiddheshDesai06 - Since we haven't heard back from you, we're now going to close this issue. Please let us know if you need further help.

please-close