Open Cost giving an error to download the price list

Kartik Hegde 0 Reputation points
2025-03-13T14:08:41.76+00:00

Issue Summary

We are experiencing an issue with OpenCost in our Azure Kubernetes Service (AKS) cluster. After enabling OpenCost using the command az aks update --resource-group <resource-group> --name <cluster-name> --enable-cost-analysis, the OpenCost pod is throwing an error related to pricing data download from the Azure API.

Error Message

The error message indicates a failure to refresh the token for the pricing data request due to multiple user-assigned identities existing in the subscription. The specific error is:

"Error in pricing download query from API...  Failed to download pricing data: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions//providers/Microsoft.Commerce/RateCard?...  StatusCode=400 -- Original Error: adal: Refresh request failed. Status Code = '400'.  Response body: {"error":"invalid_request","error_description":"Multiple user assigned identities exist, please specify the clientId / resourceId of the identity in the token request"}
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,311 questions
{count} votes

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.