Create a service connection in AKS with Service Connector - Key Vault - BackoffLimitExceeded

KlemenVezjak-6511 0 Reputation points
2025-05-16T10:43:48.73+00:00

Hi,

Im trying to configure Azure Key Vault Secrets Store CSI Driver in AKS. I went through the process described here: https://learn.microsoft.com/en-us/azure/aks/csi-secrets-store-identity-access?tabs=azure-cli&pivots=access-with-service-connector

I get the error:

Error: Operation is not succeeded: Failed. {"code":"ExternalServiceError","message":"Execution failed. The extension operation failed with the following error: Error: [ InnerError: [Helm installation failed : : InnerError [release sc-extension failed, and has been uninstalled due to atomic being set: failed post-install: 1 error occurred:\n\t* job sc-job failed: BackoffLimitExceeded\n\n]]] occurred while doing the operation : [Create] on the config, For general troubleshooting visit: https://aka.ms/k8s-extensions-TSG.\nStatus: 200 (OK)\nErrorCode: ExtensionOperationFailed\n\nService request succeeded. Response content and headers are not included to avoid logging sensitive data.\n"}

I checked problems/solutions here: https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/extensions/cluster-extension-deployment-errors#helm-errors

So,

  • I dont have taints "NoSchedule" on my node pools
  • Private endpoint of Key Vault and AKS nodes are in the same virtual networks
  • All "*aks-secrets-store-csi-driver-**" pods are healthy and they are located on each node
  • "Microsoft.ServiceLinker" and "Microsoft.KubernetesConfiguration" are registered on the target subscription
  • Managed identity is created and has a Key Vault Certificates Officer RBAC role assigned on target Key Vault (this is deployed with PS command "az aks connection create keyvault --connection...")
  • I dont have any FW or Virtual Network Appliance to deny or control outbound network traffic

Thank you!

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,456 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KlemenVezjak-6511 0 Reputation points
    2025-05-20T07:20:47.26+00:00

    The problem was the architecture of the chosen size for the nodes. Some VM sizes have architecture ARM64, others AMD64.

    There is no container image (for this solution) for ARM64 architecture - It looks like Microsoft fell asleep on this one.

    The solution was to replace the nodes - to a type that has AMD64 architecture.

    I found a problem with Kubernetes comand: kubectl -n sc-system logs -f sc-job-dvx2p
    The response was: exec /main: exec format error

    I knew from this response that there was something deeper.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.