Azure Resource Type friendly display name

2020-09-08T06:45:14.27+00:00

What I am looking for is the human readable name, not the technical one. The value in the property resourceType would show as Microsoft.Compute/virtualMachines instead of Virtual machine which is what the portal shows in the TYPE column. Is there an API or Constants file somewhere that maps the technical name with the user friendly value that the portal shows?

I am trying to output some information about Azure resources, and would like to display the same value that the Azure Portal has in the TYPE column for a list of Resources in a Resource Group. This is with the ARM APIs (using C#).

I'm not having a lot of fun finding mappings for this.

ie: Microsoft.Compute/virtualMachines shows as Virtual machine.

or

Microsoft.Sql/server shows as SQL server;

Does anyone how to query to map resourceTypes into the friendly display names shown in the Azure Portal?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,812 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 17,641 Reputation points
    2020-09-11T08:40:42.19+00:00

    @Ch Vamsi Krishna (Tata Consultancy Services Limi) AFAIK, Querying ARM API to retrieve friendly display names is not possible. I would recommend you to navigate here and share your feedback or suggestions about ARM API directly with the responsible Azure feature team and clicking the vote button of your suggestion to raise visibility and priority on it.

    Here are few options to get friendly display names.

    1) Refer this is a document which lists the resource provider along with friendly display names.

    2) Use Azure Resource Graph Explorer to get the list of resources along with friendly display names from portal. Kindly make sure that formatted results is turned off to view friendly display names.
    25609-image.png