Given an Azure resource, e.g. a storage account:
/subscriptions/.../resourceGroups/myresources/providers/Microsoft.Storage/storageAccounts/mystorageaccount
Is there any way to programmatically determine that there are child resources under it, e.g. the storage account resource would return:
/subscriptions/.../Microsoft.Storage/storageAccounts/mystorageaccount/blobServices/default
/subscriptions/.../Microsoft.Storage/storageAccounts/mystorageaccount/fileServices/default
/subscriptions/.../Microsoft.Storage/storageAccounts/mystorageaccount/queueServices/default
/subscriptions/.../Microsoft.Storage/storageAccounts/mystorageaccount/tableServices/default
I'm particularly interested in child resources that have metrics associated to them. I've dug around a bit in the preview versions of the Microsoft.Azure.Management.Monitor
and Microsoft.Azure.Management.ResourceManager
packages, but can't spot anything obvious.