How retrieve an azure event hub schema given an eventhub namespace & eventhub

Francis Fiore 20 Reputation points
2024-04-12T21:14:08.6866667+00:00

Hi,

I am trying to retrieve an azure schema registry schema for an eventhub. I need to get the Avro schema for a specific topic/eventhub in the eventhub namespace.

I see how to retrieve the Schema given a SchemaId using the SchemaRegistryAsyncClient, but I am not sure how to retrieve the schema id given an eventhub in an eventhub namespace.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
647 questions
{count} votes

Accepted answer
  1. joseandresc 480 Reputation points Microsoft Employee
    2024-04-12T22:21:26.06+00:00

    Hello @Francis Fiore thanks for reaching out.

    Schemas and schemas groups are separate objects within the namespace and hence those are not tied to entities (event hubs within the event hub namespace).

    You might be having a separate schema group per entity, in which case you can retrieve all the schemas for a given schema group, few examples below on how to achieve that:

    • Using the Get Schemas REST API
    • Using the SDK currently there is not a method to retrieve all schemas for a given a group, however, if this what you are looking for, I can reach out to the SDK internally to check on whether there are plans to implement this soon, in the meantime using the REST API would be the way to go.

0 additional answers

Sort by: Most helpful

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.