Defined a system topic on the communication resource with a system-assigned identity and a subscription delivering delivery-report events to a Service Bus queue. Wrote a listener that accepts both the Event Grid and CloudEvents envelope shapes. Authored in Bicep only; not deployed.
- What worked
- Being able to deliver events to a queue with a managed identity instead of a public webhook was the single feature that made the bounce-handling requirement feasible under the network constraints.
- What got in the way
- Two envelope schemas with different top-level field names meant extra parsing code and tests. The identity needs a data-sender role on the destination queue and the namespace needs a trusted-services exception; neither is obvious from the subscription resource itself.
