AKS Deployment Failing with "Index was outside the bounds of the array." Errors
Our AKS deployment via ARM templates using Ev2 is consistently failing with the following error:
Exception: One or more errors occurred..
InnerException Message: Index was outside the bounds of the array.
Help Link: https://aka.ms/ev2/errors/troubleshooting
Deployment Name:
Operation Id: ResourceProvidereastusnw/SecretStore/failed-operation
This started after attempting to update the cluster to AKS version 1.32.9, which also resulted in an OS update on the node pools. We also had some changes to the versions of secrets-store-csi related images, which had to be reverted. The cluster and pods seem healthy, but the service is failing due to what seem to be authentication errors on the pods. We've tried reverting the version changes in ARM, but the issue remains and we can't get the cluster deployment back into a good state.
The error message here is very vague, and it's hard to tell what the root of the problem is. How can we troubleshoot this?