Get list of ARM Resource providers and types

Cairn 21 Reputation points
2021-04-04T13:48:58.26+00:00

Looking at the Azure documentation its possible to get a list of all the providers and offerings using either the portal, PowerShell and CLI to list providers and resource types. IS there a way to do this either using .net or via REST API's. Looking at the online docs it does not appear to offer this type of functionality.

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
255 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,446 Reputation points
    2021-04-05T10:44:36.877+00:00

    @Cairn Yes, you can. Although not listed on this doc, the Provider Resource Types - List API should help you list the resource types for a specified resource provider.

    The sample response from this API for the Microsoft.Batch resource provider namespace for one of my Subscriptions looks like the following:

       {  
         "value": [  
           {  
             "resourceType": "batchAccounts",  
             "locations": [  
               "West Europe",  
               "East US",  
               ..  
             ],  
             "apiVersions": [  
               "2021-01-01",  
               "2020-09-01",  
               ..  
             ],  
             "defaultApiVersion": "2021-01-01",  
             "apiProfiles": [  
               {  
                 "profileVersion": "2018-06-01-profile",  
                 "apiVersion": "2017-09-01"  
               }  
             ],  
             "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, SupportsLocation"  
           },  
           {  
             "resourceType": "batchAccounts/pools",  
             "locations": [  
               "West Europe",  
               "East US",  
               ..  
             ],  
             "apiVersions": [  
               "2021-01-01",  
               "2020-09-01",  
               ..  
             ],  
             "defaultApiVersion": "2021-01-01",  
             "apiProfiles": [  
               {  
                 "profileVersion": "2018-06-01-profile",  
                 "apiVersion": "2017-09-01"  
               }  
             ],  
             "capabilities": "None"  
           },  
           ..  
         ]  
       }  
    

    Further, if you want to perform other operations like list all the resource providers for a subscription, or register/unregister a subscription with/from a resource provider, check out the Providers API.