Open Cost giving an error to download the price list

Kartik Hegde
0
Reputation points
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"}
Sign in to answer