Failure: create EventGrid subscription for Azure Communication Service via yaml pipeline

Ben Joseph 0 Reputation points
2026-09-04T12:50:03.69+00:00

We have a yaml pipeline that attempts to create an EventGrid event within our Azure Communication Service resource. That step of the pipeline fails with the error message below. We have retried the pipeline multiple times over the last 6+ hours.

ERROR: (Internal error) The operation failed due to an internal server error. The initial state of the impacted resources (if any) are restored. Please try again in few minutes. If error still persists, report d638156d-f63c-46ff-b6e4-7adc39ff6166:9/4/2026 12:38:15 PM (UTC) to our forums for assistance or raise a support ticket .

Code: Internal error

The yaml pipeline uses an AzureCli step with the following script (partially redacted):

az eventgrid event-subscription create --name "emaildeliveryreport" --source-resource-id "/subscriptions/.../resourceGroups/.../providers/Microsoft.Communication/CommunicationServices/..." --delivery-identity-endpoint-type servicebusqueue --delivery-identity systemassigned --delivery-identity-endpoint "/subscriptions/.../resourceGroups/.../providers/Microsoft.ServiceBus/namespaces/.../queues/tsi.notification.email.deliveryreport" --included-event-types "Microsoft.Communication.EmailDeliveryReportReceived"

Azure Event Grid
Azure Event Grid

An Azure event routing service designed for high availability, consistent performance, and dynamic scale.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Ben Joseph 0 Reputation points
    2026-09-08T12:12:01.9966667+00:00

    After waiting a few more days and re-trying the failed jobs of our pipeline, it worked. We didn't make any changes. It just started working a few days later.

    Was this answer helpful?


  2. Tejaswini Billakurthi 250 Reputation points Microsoft External Staff Moderator
    2026-09-04T13:19:19.6733333+00:00

    Hello @Ben Joseph

    Thank you for reaching out to Microsoft Q & A!

    Thank you for providing the error details.

    The error returned by the az eventgrid event-subscription create command indicates that the request reached the service but failed with an internal server error during processing. Based on the information provided, it is difficult to determine whether the failure is related to the Event Grid service, the Azure Communication Service resource configuration, or the destination Service Bus configuration.

    As initial validation steps, please verify the following:

    • Ensure that the Azure Communication Service has a system-assigned managed identity enabled.
    • Confirm that the managed identity has the appropriate permissions on the target Service Bus queue (for example, Azure Service Bus Data Sender).
    • Verify that the Service Bus queue exists and that no networking restrictions, firewalls, or private endpoint configurations are preventing access.
    • Review the Azure Activity Log for any additional error details related to the subscription creation request.
    • Run the command with the --debug parameter and check whether any additional information is returned.

    Additionally, if possible, try creating an Event Grid subscription using a different endpoint type (such as a webhook) to determine whether the issue is specific to the Service Bus delivery endpoint.

    Could you also confirm:

    • Whether the Azure Communication Service managed identity is enabled?
    • Whether the required RBAC permissions have been granted on the Service Bus queue?
    • Whether the same command has worked successfully in the past?

    This information would help narrow down the root cause of the failure.Thank you for providing the error details.

    Please "Upvote the Answer" if this information helped you. This will help us and others in the community as well.

    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.