Filters not working for Azure Consumption Rest APIs

Ananya 20 Reputation points
2025-06-26T07:10:14.17+00:00

I attempted to list resources using the Microsoft Consumption Usage Details API, but the results did not reflect the changes I made.

Here is the request I submitted: https://management.azure.com/subscriptions/{subscription_name}/providers/Microsoft.Consumption/usageDetails?api-version=2024-08-01&$expand=properties&$filter=properties/resourceName eq '{resource_name}'&$top=5.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

Accepted answer
  1. Krishna Chowdary Paricharla 2,080 Reputation points Microsoft External Staff Moderator
    2025-06-27T07:19:31.2133333+00:00

    Hello Ananya,

    Thanks for reaching out!

    • It may take 8–24 hours for usage data to update after changes are made.
    • To focus on recent data, consider adding usageStart or usageEnd filters.
    • For real-time information, use Azure Monitor, Activity Logs, or Metrics Explorer.
    • Check the spelling of resourceName or use resourceId for more consistent results.
    • For the most accurate data, use resourceId and usageEnd filters along with a stable API version.

    For your reference, please go through this following documentation:

    Usage Details - List
    Hope this helps!


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.