Azure AKS Cost Analysis - No cost data to show

Ivica Vugrinec 25 Reputation points
2024-11-02T19:22:09.6433333+00:00

I have enabled AKS Cost Analysis via CLI.

When i list ze AKS cluster with

az aks show...

The JSON block returned shows that costAnalysis is enabled.

 "metricsProfile": {    
 "costAnalysis": {    
   "enabled": true    
 } 
  }

When i want to display the AKS Cost Analytics graphs - i get a message:

No cost data to show

Please ensure that you have the cost analysis add-on enabled on your cluster(s). If the add-on has been enabled, please make sure you have selected the correct filters

I am owner of the subscription but still no data. I followed documentation and i still have no AKS granular cost analytics.

Any advice?

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,670 questions
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,141 questions
0 comments No comments
{count} votes

Accepted answer
  1. Luis Arias 7,121 Reputation points
    2024-11-02T22:06:22.5266667+00:00

    Hello Ivica,

    It seems you’re experiencing issues with displaying AKS Cost Analysis data even after enabling it via the CLI. This can sometimes happen due to configuration requirements or other dependencies. I suggest the following possible solutions:

    • Data Processing Time: Wait up to 24 hours, as it can take some time for data to populate after enabling the feature.
    • Cluster Tier: Ensure your AKS cluster is in the Standard or Premium tier, as the Cost Analysis add-on doesn’t support the Free tier.
    • Azure Disk CSI Driver: Make sure the Azure Disk Container Storage Interface (CSI) driver is enabled.
    az aks update --resource-group <your-resource-group> --name <your-aks-cluster> --enable-disk-driver
    
    • Managed Identity: Confirm that a managed identity (system or user-assigned) is enabled on your cluster.
        az aks update --resource-group <your-resource-group> --name <your-aks-cluster> --enable-managed-identity
      
    • Region and Offer Type: Verify that your region supports Cost Analysis and that your subscription aligns with Enterprise Agreement or Microsoft Customer Agreement offers.
    • Access Permissions: Ensure you have the necessary role, such as Owner, Contributor, or Cost Management Contributor, on the subscription to view cost data.

    References:

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Regards,

    Luis

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.