Availability Status of Azure services

Yeduguri Geethika ADM 0 Reputation points
2025-12-04T10:45:40.59+00:00

I need to retrieve Azure health status across multiple regions and subscriptions. For example, if a Virtual Machine service is deployed in 6 regions, I want to know the number of services that are up and down in each region. Additionally, the output should list the service IDs and show how many instances of each service are deployed per region not only the virtual machines

azure services : Application Gateway, Application Insights,Azure Cache for Redis,Azure Data Explorer,Azure OpenAI,Cosmos DB,Databricks,Function App,Key Vault,Kubernetes Service (AKS),MySQL Flexible Server,PostgreSQL Flexible Server,Log Analytics Workspace,Logic App,Machine Learning,Storage Account,Virtual Machine,App Service Plan
Regions needed to monitor: West US 2, West US, East US 2, East US, West Europe, Southeast Asia

Could you please help me with the questions and provide me the api which provides all the details and reach out to me if you have any questions?

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
{count} votes

1 answer

Sort by: Most helpful
  1. Suchitra Suregaunkar 4,210 Reputation points Microsoft External Staff Moderator
    2025-12-04T11:48:30.2033333+00:00

    Hello Yeduguri Geethika ADM

    Thank you for posting your query on Microsoft Q&A platform.

    You need to retrieve Azure health status across multiple regions and subscriptions for various services (e.g., VMs, Application Gateway, Cosmos DB) showing:

    • Number of services up/down per region
    • Service IDs
    • Instance counts per region

    Azure provides two key capabilities to achieve this:

    1. Inventory Resources Across Regions:

    Resources

    | where type in~ (

        'microsoft.compute/virtualmachines',

        'microsoft.network/applicationgateways',

        'microsoft.insights/components',

        'microsoft.cache/redis',

        'microsoft.kusto/clusters',

        'microsoft.openai/accounts',

        'microsoft.documentdb/databaseaccounts',

        'microsoft.databricks/workspaces',

        'microsoft.web/sites',

        'microsoft.keyvault/vaults',

        'microsoft.containerservice/managedclusters',

        'microsoft.dbformysql/flexibleservers',

        'microsoft.dbforpostgresql/flexibleservers',

        'microsoft.operationalinsights/workspaces',

        'microsoft.logic/workflows',

        'microsoft.machinelearningservices/workspaces',

        'microsoft.storage/storageaccounts',

        'microsoft.web/serverfarms'

    )

    This gives service type, region, and instance count across subscriptions.

    1. Check Health Status:

    Resource-level health: Use Azure Resource Health API Endpoint:

    GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/resources?api-version=2024-02-01
    

    This returns availabilityState for each resource (Available, Unavailable, Degraded, Unknown).

    Service-level health: Use Azure Service Health

    In the portal: Service Health → Service Issues → Impacted Resources

    Or programmatically via Events API to check outages and planned maintenance.

    1. Combine Data:

    Join Resource Graph output with Resource Health status:

    • Group by Region and Service Type
    • Aggregate counts for Healthy vs Unhealthy
    • Include Resource IDs for detailed reporting

    Automation Options:

    Azure CLI:

    az graph query for inventory + az resourcehealth show for health

    PowerShell:

    Get-AzResource + Get-AzResourceHealth

    Custom Script:

    Use Python or PowerShell to call both APIs and export to CSV/dashboard.

    Reference: https://dori-uw-1.kuma-moon.com/en-us/rest/api/resourcehealth/

    https://dori-uw-1.kuma-moon.com/en-us/azure/governance/resource-graph/samples/advanced?tabs=azure-cli

    Thanks,

    Suchitra.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.