Hi @Yang Woody
Welcome to Microsoft Q&A platform and thanks for posting your query here.
Currently, it is not possible to create schemas for a schema group directly using a Bicep file because Azure does not expose an API to manage schemas programmatically via ARM/Bicep.
As an alternative:
- Use Azure SDKs (like Python, .NET, or Java) or Azure CLI to create and register schemas in your schema group.
- You can also manage schemas manually via the Azure Portal by navigating to your Event Hub namespace and adding schemas under Schema Groups.
If your workflow requires automation, combining Bicep for infrastructure deployment and an SDK/CLI for schema management is a practical solution.
For more details, you can refer to:
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.