EventHub Namespace Schema Registry Write Exception

Ticehurst, John 1 Reputation point
2022-11-25T00:30:02.607+00:00

This Post is similar to the question Posted by @LarryF , but the exception is slightly different.

The exception I get is
Azure.RequestFailedException: 'Authorization failed for specified action: SchemaGroupWrite,SchemaWrite. TrackingId:2a509531-1a03-4ec6-b7a8-a109e94262a7_G6S2, SystemTracker:deeventhub.servicebus.windows.net:$schemaGroups/DEAvro/schemas/com.azure.schemaregistry.samples.CustomerInvoice, Timestamp:2022-11-24T22:14:47
Status: 401 (Unauthorized)
ErrorCode: ErrorInRequest

note the SchemaWrite Violation - that's the difference.
I am an Owner and I have added the role Schema Registry Contributor (Preview), tried with Contributor as well.

I tried to create the schema automatically and added it manually - both attempts to load the scheam throw the same exception

Any suggestions on what else I can try.

Thanks,
John

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
556 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 26,136 Reputation points Microsoft Employee
    2022-11-28T20:48:16.183+00:00

    Hello @Ticehurst, John ,

    Welcome to the MS Q&A platform.

    Please correct me if my understanding is wrong. You are facing an error while creating the schema, resulting in authorization failure.

    Please check this document for creating a new schema: https://learn.microsoft.com/en-us/azure/event-hubs/create-schema-registry

    Could you please share the thread that you are referring in the question?