Reputation: 1130
I'm using the Azure Insights Rest API to export monitoring data for several different resources in my Azure account.
I'm using a call to this endpoint to obtain the data:
https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}/metrics
I'm obtaining a list of all resources in my subscription by calling:
https://management.azure.com/{subscription-id}/resources
this call returns a json with a lot of entries. Every entry has got a property "type", that describes the type of the resource. For example this:
"type": "Microsoft.Compute/virtualMachines"
My problem is that only a few of those types support the reading of monitoring data via the API I use. Can anyone tell me, where to get information, which resources-types are supported by the API?
Upvotes: 2
Views: 1717
Reputation: 81
Here's a link to the list of supported resource types along w/ all of the available metrics:
https://learn.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-supported-metrics
Took a while to track down - it doesn't show up in searches, and I never saw it referenced in the Monitoring/Insights pages either. Not sure why it is so buried, it's a huge help and time saver.
Note - not sure why a list of providers was offered as an answer earlier, but it should be removed - it has nothing to do with the question being asked.
Upvotes: 2
Reputation: 13918
You can use PowerShell and Azure-cli to get the resource types list with a ease.
Login-AzureRmAccount
Get-AzureRmResourceProvider -ListAvailable
arm
then run azure provider list
Here is the entire list of resource type:
ProviderNamespace RegistrationState ResourceTypes
----------------- ----------------- -------------
Microsoft.ApiManagement Registered {service, validateServiceName, checkServiceNameAvailability...
Microsoft.AppService Registered {apiapps, appIdentities, gateways, deploymenttemplates...}
Microsoft.Automation Registered {automationAccounts, automationAccounts/runbooks, automatio...
Microsoft.Batch Registered {batchAccounts, operations, locations, locations/quotas}
Microsoft.Cache Registered {Redis, locations, locations/operationResults, checkNameAva...
Microsoft.Cdn Registered {profiles, profiles/endpoints, profiles/endpoints/origins, ...
Microsoft.ClassicCompute Registered {domainNames, checkDomainNameAvailability, domainNames/slot...
Microsoft.ClassicNetwork Registered {virtualNetworks, reservedIps, quotas, gatewaySupportedDevi...
Microsoft.ClassicStorage Registered {storageAccounts, quotas, checkStorageAccountAvailability, ...
Microsoft.CognitiveServices Registered {accounts}
Microsoft.Compute Registered {availabilitySets, virtualMachines, virtualMachines/extensi...
Microsoft.DataFactory Registered {dataFactories, dataFactories/diagnosticSettings, dataFacto...
Microsoft.Devices Registered {checkNameAvailability, operations, IotHubs}
Microsoft.DocumentDB Registered {databaseAccounts, databaseAccountNames, operations}
Microsoft.EventHub Registered {namespaces, checkNamespaceAvailability, operations}
Microsoft.HDInsight Registered {clusters, clusters/operationresults, locations}
microsoft.insights Registered {components, webtests, queries, logprofiles...}
Microsoft.KeyVault Registered {vaults, vaults/secrets, operations}
Microsoft.MachineLearning Registered {Workspaces, locations, locations/operations, locations/ope...
Microsoft.Media Registered {mediaservices, operations, checknameavailability}
Microsoft.MobileEngagement Registered {appcollections, appcollections/apps, checkappcollectionnam...
Microsoft.Network Registered {virtualNetworks, publicIPAddresses, networkInterfaces, loa...
Microsoft.NotificationHubs Registered {namespaces, namespaces/notificationHubs, checkNamespaceAva...
Microsoft.OperationalInsights Registered {workspaces, storageInsightConfigs, linkTargets, operations}
Microsoft.PowerBI Registered {workspaceCollections, locations, locations/checkNameAvaila...
Microsoft.ResourceHealth Registered {availabilityStatuses}
Microsoft.Scheduler Registered {jobcollections, operations, operationResults, flows}
Microsoft.Search Registered {searchServices, checkServiceNameAvailability, checkNameAva...
Microsoft.ServiceBus Registered {namespaces, checkNamespaceAvailability, premiumMessagingRe...
Microsoft.SiteRecovery Registered {SiteRecoveryVault}
Microsoft.Sql Registered {operations, locations, locations/capabilities, checkNameAv...
Microsoft.Storage Registered {storageAccounts, operations, usages, checkNameAvailability...
Microsoft.StreamAnalytics Registered {streamingjobs, locations, locations/quotas, streamingjobs/...
microsoft.visualstudio Registered {account, account/project}
Microsoft.Web Registered {sites/extensions, sites/slots/extensions, sites/instances,...
Sendgrid.Email Registered {accounts}
SuccessBricks.ClearDB Registered {databases, clusters}
Aspera.Transfers NotRegistered {services, operations, listCommunicationPreference, updateC...
Citrix.Cloud NotRegistered {accounts, operations, listCommunicationPreference, updateC...
Conexlink.MyCloudIT NotRegistered {accounts, operations, listCommunicationPreference, updateC...
Hive.Streaming NotRegistered {services, operations, listCommunicationPreference, updateC...
Lombiq.DotNest NotRegistered {sites, operations, listCommunicationPreference, updateComm...
Microsoft.ADHybridHealthService Registered {services, addsservices, configuration, operations...}
Microsoft.Authorization Registered {roleAssignments, roleDefinitions, classicAdministrators, p...
Microsoft.BingMaps NotRegistered {mapApis, operations, listCommunicationPreference, updateCo...
Microsoft.BizTalkServices NotRegistered {BizTalk}
Microsoft.CertificateRegistration NotRegistered {certificateOrders, certificateOrders/certificates, validat...
Microsoft.ClassicInfrastructureMigrate NotRegistered {classicInfrastructureResources}
Microsoft.ContainerService NotRegistered {containerServices, locations, locations/operations, operat...
Microsoft.ContentModerator NotRegistered {applications, operations, listCommunicationPreference, upd...
Microsoft.DataCatalog NotRegistered {catalogs, checkNameAvailability, operations, locations...}
Microsoft.DataLakeAnalytics NotRegistered {operations}
Microsoft.DataLakeStore NotRegistered {operations}
Microsoft.DevTestLab NotRegistered {labs, labs/virtualMachines, operations, locations...}
Microsoft.DomainRegistration NotRegistered {domains, domains/domainOwnershipIdentifiers, topLevelDomai...
Microsoft.DynamicsLcs NotRegistered {lcsprojects, lcsprojects/connectors, lcsprojects/clouddepl...
Microsoft.Features Registered {features, providers, operations}
Microsoft.Logic NotRegistered {workflows, locations/workflows, locations, operations...}
Microsoft.MarketplaceOrdering NotRegistered {agreements, operations}
Microsoft.OperationsManagement NotRegistered {solutions}
Microsoft.RecoveryServices NotRegistered {vaults, operations}
Microsoft.Resources Registered {tenants, locations, providers, checkresourcename...}
Microsoft.Security NotRegistered {securityStatus, securityStatuses, securityStatus/virtualMa...
Microsoft.ServerManagement NotRegistered {operations, gateways, nodes}
Microsoft.ServiceFabric NotRegistered {clusters}
microsoft.support Registered {operations, supporttickets}
NewRelic.APM NotRegistered {accounts}
Pokitdok.Platform NotRegistered {services, operations, listCommunicationPreference, updateC...
RavenHq.Db NotRegistered {databases, operations, listCommunicationPreference, update...
Raygun.CrashReporting NotRegistered {apps, operations, listCommunicationPreference, updateCommu...
Signiant.Flight NotRegistered {accounts, operations, listCommunicationPreference, updateC...
TrendMicro.DeepSecurity NotRegistered {accounts, operations, listCommunicationPreference, updateC...
U2uconsult.TheIdentityHub NotRegistered {services, operations, listCommunicationPreference, updateC...
Please refer to https://azure.microsoft.com/en-us/documentation/articles/resource-manager-supported-services/ for more info.
Upvotes: 1