How to export the resources based on pricing tier in Azure Subscription level?

krishna572 886 Reputation points
2023-06-11T04:01:48.1366667+00:00

For the Function Apps, we have pricing tier grouping

[enter image description here

](https://i.stack.imgur.com/Pnc1k.png)

For the APIM Services, we have pricing tier with the Group By Tier view:

[enter image description here

](https://i.stack.imgur.com/WJgxy.png)

Service Wise - I can list the Pricing based using Grouping Column but how to list the resources with Pricing Tier based in the Subscription level resources - I cannot see any option "Grouping by pricing tier/tier/plan" in the grouping drop down?

I tried Googling whether it is possible with Azure PowerShell or CLI, but no luck.

[enter image description here

](https://i.stack.imgur.com/i1Krc.png)

For the Function Apps, we have pricing tier grouping

[enter image description here

](https://i.stack.imgur.com/Pnc1k.png)

For the APIM Services, we have pricing tier with the Group By Tier view:

[enter image description here

](https://i.stack.imgur.com/WJgxy.png)

Service Wise - I can list the Pricing based using Grouping Column but how to list the resources with Pricing Tier based in the Subscription level resources - I cannot see any option "Grouping by pricing tier/tier/plan" in the grouping drop down?

I tried Googling whether it is possible with Azure PowerShell or CLI, but no luck.

[enter image description here

](https://i.stack.imgur.com/i1Krc.png)

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 19,073 Reputation points Moderator
    2023-07-05T15:58:44.95+00:00

    @krishna572 Apologies for the late response. Azure Resource Manager currently supports querying over basic fields like Resource name, ID, Type, Resource Group, Subscription and Location. To query extended properties its suggested to use Azure Resource Graph.

    Here is sample example of listing the function app resources based on pricing tier.

    resources
    | where type =~ "Microsoft.Web/sites" and ['kind'] =~ "functionapp"
    | extend  skua = properties.sku
    | summarize resources = make_list(name) by tostring(skua)
    

    Also, you can query resource graph queries using Azure PowerShell or Azure CLI. Below is sample snapshot executed in my environment.

    User's image

    Reference documents :

    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.