Azure Consumption - Usage Details - List (REST API) - not returning resource group location?

Sathish 21 Reputation points
2022-01-28T09:29:20.2+00:00

Azure Consumption - Usage Details - List (REST API) not returning resource group location? is there any way to get the resource group location (East US or West US) based on the resource group name? I know we can use the Resource Management - Resource Group - Get (REST API ) to return the resource group information which currently exists. Is it possible to return the details of the deleted resource group? i am trying to calculate the current cost at resource group level under a subscription using Usage Details - List (REST API), if a resource group got deleted under a subscription, we need to calculate the cost of the deleted resource group. Usage Details - List (REST API) captures only resource group name not resource group location. i have a requirement to show both resource group name and location.

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,355 questions
{count} votes

Accepted answer
  1. Monalla-MSFT 12,846 Reputation points
    2022-02-01T02:02:13.607+00:00

    @Sathish - Thanks for reaching out.

    Resource group location is not returned because the resource group itself does not emit any usage / charges.

    The resources themselves emit usage and charges and that is the information that shows up in the usage details data.

    Hope that helps.

    ------------------------------------------------------------------

    If the above response was helpful, please feel free to "Accept as Answer" so it can be beneficial to the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful