Search code examples
azure-resource-managerazure-resource-group

How can I get a list of providers used in a resource group?


Given an Azure subscription ID and resource group name, how can I get a list of all provider(s) that make up the resources in that group? E.g. if a RG contains websites and VMs, I'd get ["Microsoft.Website", "Microsoft.Compute"].


Solution

  • Apparently, the only way to do this is by using the List By Resource Group API, then parsing the resource IDs manually.