I'm attempting to gather a full JSON representation of my Azure resources in a given subscription, but can't figure out how I enumerate the available sub-resources for a given resource type.
For example, I can get the Microsoft.Web/sites/{name} resource, but nothing in that response tells me that Microsoft.Web/sites/{name}/config exists. Neither can I find any reference to the /config resource in the Provider object.
Azure Resource Explorer seems to be enumerating them dynamically with very little performance overhead, so I believe it's possible to do this. I just can't figure out how. Examples from NodeJS using the azure-arm-resource nom package:
// Returns a data structure, but nothing about subtypes.
let p = client.providers.get("Microsoft.Web");
// Contains the resource, but not the resources subtypes (e.g. config/appsettings
let r = client.resources.getById(resourceId, apiVersion);
I'm looking for something in the APIs that will give me an array of subtypes; in the case of Microsoft.Web/sites, that would be something like ["config", "containerlogs", "diagnostics"...] etc.