ventGrid to Service Bus subscription fails with internal server error in Switzerland North

Adrian Ruchti 20 Reputation points
2025-08-22T08:37:43.93+00:00

I have Azure Developer Support and need help with EventGrid subscription creation failing with internal server errors.

Environment

  • Subscription: 041e3b12-1c32-468a-8386-53833397e791
  • Region: Switzerland North
  • Resource Group: rg-lentinis-cms
  • Support Plan: Azure Developer Support (paid)

Problem Description

Cannot create EventGrid subscription from Storage System Topic to Service Bus queue using managed identity. All prerequisites are met but deployment fails consistently.

Resources Involved


System Topic: system-blob-trigger-topic (Storage Account: stdvpc564z54wcy)

Service Bus: sb-dvpc564z54wcy

Queue: ingestion-jobs (session-enabled)

Managed Identity: eg-delivery-dvpc564z54wcy-id (Principal ID: d0c10195-c424-4852-b7ac-7ea5616dbcd7)

Error Details


`{`

`"code"``: "Internal error",`

`"message"``: "The operation failed due to an internal server error. The initial state of the impacted resources (if any) are restored."`

`}`

Tracking IDs for Microsoft Support:

  • 9b58af91-2521-44a1-9ed6-8c8a8d333c9f:8/22/2025 8:03:57 AM (UTC)
  • 1a58b6b8-890b-4c16-a85e-9fa29d36d41c:8/22/2025 8:07:24 AM (UTC)
  • 153a4115-0190-401b-81fc-e77cd902abee:8/22/2025 8:10:18 AM (UTC)

Bicep Configuration Attempted


`resource`` eventSubscription 'Microsoft.EventGrid/systemTopics/eventSubscriptions@2024-06-01-preview' = {`

`name``: 'eg-to-sb-sub'`

`parent``: systemTopic`

`properties``: {`

`eventDeliverySchema``: 'CloudEventSchemaV1_0'`

`deliveryWithResourceIdentity``: {`

`identity``: {`

`type``: 'UserAssigned'`

`userAssignedIdentity``: '/subscriptions/.../userAssignedIdentities/eg-delivery-dvpc564z54wcy-id'`

` }`

`destination``: {`

`endpointType``: 'ServiceBusQueue'`

`properties``: {`

`resourceId``: '/subscriptions/.../namespaces/sb-dvpc564z54wcy/queues/ingestion-jobs'`

`deliveryAttributeMappings``: [`

` {`

`name``: 'SessionId'`

`type``: 'Dynamic'`

`properties``: {`

`sourceField``: 'id'`

` }`

` }`

` ]`

` }`

` }`

` }`

` }`

`}`

```` ``` ````

## What I've Verified

✅ Service Bus namespace exists and is accessible

✅ Queue has sessions enabled

✅ Managed Identity has "Azure Service Bus Data Sender" role

✅ Managed Identity has "Storage Blob Data Contributor" role

✅ System Topic is provisioned successfully

✅ RBAC assignments have propagated (waited 5+ minutes)

## Question

Is there a known issue with EventGrid to Service Bus integration using managed identity in Switzerland North region? The deployment works until the event subscription creation step, then fails with internal server error.

This is blocking our production deployment. Please advise on resolution or workaround.

---

*Note: I have Azure Developer Support plan but the portal directed me to Q&A for this issue type.*

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
{count} votes

1 answer

Sort by: Most helpful
  1. Adrian Ruchti 20 Reputation points
    2025-08-22T17:12:58.0933333+00:00

    @Praveen Kumar Gudipudi
    Problem solved

    Fix was to add UAMI to System Topic

    param`` systemTopicName string

    param`` location string

    param`` tags object = {}

    param`` storageAccountId string

    param`` userAssignedIdentityId string

    resource`` systemTopic 'Microsoft.EventGrid/systemTopics@2025-02-15' = {

    name``: systemTopicName

    location``: location

    identity``: {

    type``: 'UserAssigned'

    userAssignedIdentities``: {

    '``${userAssignedIdentityId}': {}

    }

    }

    properties``: {

    source``: storageAccountId

    topicType``: 'microsoft.storage.storageaccounts'

    }

    tags``: tags

    }

    output`` systemTopicName string = systemTopic.name

    output`` systemTopicId string = systemTopic.id

    You can close the ticket. Thank you for your help.
    Kind regards
    Adrian

    0 comments No comments

Your answer

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