Problems Checking a Trigger's Event Grid Subscription Status

Bernard Brown 100 Reputation points
2026-11-23T12:45:07.7333333+00:00

Hi,

I've been trying check the status of my triggers in Azure Data Factory and I've been unable to do it. I've been running this command:

az rest --method post --uri "https://management.azure.com/subscriptions/xxId/resourceGroups/theResourceGroup/providers/Microsoft.DataFactory/factories/theResourceGroup/triggers/triggerName/getEventSubscriptionStatus?api-version=2018-06-01" -o json

and I've been receiving this result:
Internal Server Error({

"error": {

"code": "InternalServerError",

"message": "InternalServerError executing request",

"target": "triggerName",

"details": null

}

})

I can see the status in the portal, but I'm not understanding why I continue to receive this error. Any idea on why I can't get this to work?

Thanks

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-23T12:45:48.7433333+00:00

    Replace the value after /factories/ with the Data Factory name, not the resource-group name.

    Your current URI contains:

    .../resourceGroups/[Resource Group] Group]/providers/Microsoft.DataFactory/
    factories/theResourceGroup/triggers/triggerName/...
    

    The documented path requires:

    .../resourceGroups/[Resource Group] Group]/providers/Microsoft.DataFactory/
    factories/{factoryName}/triggers/{triggerName}/getEventSubscriptionStatus
    

    The API version 2018-06-01 and the POST operation are correct.^1^

    Corrected Azure CLI command

    az rest --method post \
      --uri "https://management.azure.com/subscriptions/[Subscription ID]/resourceGroups/[Resource Group] Group]/providers/Microsoft.DataFactory/factories/theFactoryName/triggers/triggerName/getEventSubscriptionStatus?api-version=2018-06-01" \
      --output json
    

    Replace:

    • xxId with the subscription ID.
    • theResourceGroup with the resource-group name.
    • theFactoryName with the actual Data Factory resource name.
    • triggerName with the event-trigger name.

    If the request succeeds, it returns the event subscription status. An event trigger cannot be started until that status is Enabled.^2^

    Supported verification alternative

    The Az PowerShell module exposes the same operation directly:

    Get-AzDataFactoryV2TriggerSubscriptionStatus `
      -ResourceGroupName "theResourceGroup" `
      -DataFactoryName "theFactoryName" `
      -Name "triggerName"
    

    Expected output resembles:

    TriggerName  Status
    -----------  -------
    triggerName  Enabled
    

    If the corrected REST URI and the PowerShell cmdlet both return an internal server error while the portal still displays the status, capture the request timestamp and correlation/request ID from verbose output and open an Azure support request. To expose additional REST diagnostics, run the corrected command with --verbose.


    References

    1. DataFactoryTriggerResource.GetEventSubscriptionStatus Method-Definition
    2. Get-AzDataFactoryV2TriggerSubscriptionStatus-Description
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.