How to Access Azure Cost Data Stored in Nested Subfolders from Blob Storage in Grafana?

B, Hema 0 Reputation points
2025-11-19T08:51:49.98+00:00

I have Azure cost data stored inside a Blob Storage container. Grafana is configured to read data from this storage account and container, but I’m unable to fetch any data from the cost-data container.

The issue is that the cost files are stored in multiple nested subfolders, and Azure Storage does not allow me to move, flatten, or reorganize the folders. Because of this structure, I am also unable to generate a SAS URL that correctly points to the nested paths.

Due to these folder and SAS limitations, Grafana is unable to access or read the files.

Does anyone know how to properly access or restructure this data so that Grafana can successfully read it from Azure Blob Storage? Any guidance or best practices would be appreciated.

Azure Managed Grafana
Azure Managed Grafana
An Azure service used to deploy Grafana dashboards for analytics and monitoring solutions.
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-19T08:52:08.5666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To access your Azure cost data stored in nested subfolders within a Blob Storage container using Grafana, you can consider the following approaches:

    1. Use SAS URLs for Each Nested Path: Since Azure Storage allows generating SAS URLs for individual blobs or containers, you can create a SAS URL for each specific file or nested folder you want to access. This may require you to manually generate SAS tokens for each path, which can be cumbersome but effective.
    2. Ingest Data into a New Table: If restructuring the data is not possible, you might consider ingesting the data into a new table in Azure Data Explorer or another database service that Grafana can query. This way, you can flatten the structure and make it easier for Grafana to access the data.
    3. Use File Filters: If you can specify file filters when configuring your data ingestion, you might be able to filter the files based on their paths or extensions, allowing you to access only the relevant data without needing to reorganize the folder structure.
    4. Direct Access: If you have the necessary permissions, you can access the data directly by providing the fully qualified name to the data object, which might bypass the need to navigate through the folder structure in the Azure portal or Grafana.
    5. Review Grafana Configuration: Ensure that your Grafana configuration is set up correctly to access Azure Blob Storage. Check that the authentication method is properly configured and that the necessary permissions are granted to the Grafana instance to read from the Blob Storage.

    These approaches should help you access your Azure cost data despite the limitations posed by the folder structure and SAS URL generation.

    0 comments No comments

Your answer

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