← Archive

Fixing 'No Data' Issue in Datadog when monitoring Azure Resources

Resolve the 'No Data' problem in Datadog while monitoring your Azure resources with these easy fixes. Keep your monitoring and alerting on track.

Recently I set up Datadog and the Integration for Azure via a Service Principle for a Test-Subscription. After creating the needed Monitors, which are also similar to Production, I deactivated the Test-Subscription and integrated the Production Subscription. For this Subscription Datadog “denied” delivering the status of my Azure Resources like API Service, Service Bus,…

Screenshot: Fixing 'No Data' Issue in Datadog when monitoring Azure Resources

As I found out with Datadog Support, the required “Microsoft.ResourceHealth” Provider hasn’t installed my Productive Subscription.

Screenshot 2: Fixing 'No Data' Issue in Datadog when monitoring Azure Resources

Fixing this behavior is simple, you can activate the required Azure Provider in your Azure Subscription via the Graphical User Interface (GUI) or Azure CLI.

Method 1: Graphical User-Interface (GUI)

Search in your Azure Portal for the corresponding Subscription, on the left Blade navigate to Resource providers -> Search for ‘Microsoft.ResourceHealth’.

Screenshot 3: Fixing 'No Data' Issue in Datadog when monitoring Azure Resources

The Provider will be registered, this takes a few minutes.

Screenshot 4: Fixing 'No Data' Issue in Datadog when monitoring Azure Resources

Screenshot 5: Fixing 'No Data' Issue in Datadog when monitoring Azure Resources

Method 2: Azure CLI (using Azure CLI 2.0)

Log into your Azure Portal and use the built-in Azure Cloud Shell with “Bash” or use your local Azure CLI.

az login
az provider register --namespace 'Microsoft.ResourceHealth' --wait
az provider show --n Microsoft.ResourceHealth

You can use the provider register command without the –wait suffix at the end, but then the command won’t wait until the provider registration is finished. With the provider show command, you can check if the Provider is registered successfully via CLI.

Screenshot 6: Fixing 'No Data' Issue in Datadog when monitoring Azure Resources

After the registration and about 1o0 minutes of waiting, the Metrics are transmitted correctly.

Screenshot 7: Fixing 'No Data' Issue in Datadog when monitoring Azure Resources