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.


2 answers

Sort by: Oldest
  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?

  2. Alex Burlachenko 26,215 Reputation points MVP Volunteer Moderator
    2026-11-24T09:57:31.5766667+00:00

    hi Bernard Brown & thx for join me at Q&A platform,

    first thing I noticed is that you're using theResourceGroup for both the resource group and the Data Factory name in your REST URI. Make sure these are actually correct.

    I'd also recommend testing the native Azure CLI command

    az datafactory trigger get-event-subscription-status \
      --resource-group "theResourceGroup" \
      --factory-name "theFactoryName" \
      --name "triggerName"
    

    Verify that your trigger is actually a BlobEventsTrigger or CustomEventsTrigger. The getEventSubscriptionStatus operation is intended for event-based triggers, not scheduled or tumbling window triggers.

    Also, the trigger's runtime state (Started/Stopped) and its Event Grid subscription status (Enabled/Disabled) are different properties. The portal may be displaying the former. If the native CLI command also returns HTTP 500, run it with the --debug parameter and capture the correlation ID. If the resource path, trigger type and permissions are correct, a persistent HTTP 500 would warrant investigation by the Azure Data Factory team.

    Best regards,

    Alex

    πŸ’¬ P.S. Did this help? Mark it as the solution: it keeps me motivated!

    βž• Follow me on Q&A for more answers

    πŸ“ And feel free to visit my blog β†’ https://ctrlaltdel.blog/

    Was this answer helpful?

    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.