Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
https://learn.microsoft.com/en-us/rest/api/fabric/core/connections/create-connection?tabs=HTTP
There's no examples for eventhubs. No creationMethod seems to be supported for type EventHub.
Is it possible to give the eventhub connection string when we are specifying the source in Eventstream? We have a large number of eventhubs to configure but on the same eventhub namespace but the eventhub is tied in to the dataConnection.
Solved! Go to Solution.
No we went to use direct data streams with Event House but have to create the connections manually. Not solved but hope to hear about this functionality on the roadmap for Fabric.
Also, we are completely blocked now because the eventstream creation ui pulldown to select the eventhub can only show 70 eventhubs but we have 100's of eventhubs in our namespace.Select an Event Hub only shows 70/200
Hi @bbates22 ,
Thanks for the detailed follow-up.
Currently, creating Eventstreams via REST API requires a valid dataConnectionId. Event Hub connections must be pre-created in the Fabric portal. The Copilot suggestion to use a connection string directly in the source block is not supported, which is why the Eventstream is created without a source and no error is shown.
The Event Hub dropdown in the portal is limited to showing 70 hubs, which is a known UI limitation and has been shared with the product team.
Recommended approach:
Manually create the necessary Event Hub connections in the portal. Use the returned dataConnectionIds in your Eventstream creation API calls.
We recommend upvoting this as a feature request on the Microsoft Fabric Feedback Portal to help prioritize a long-term solution.
If this solution worked for you, kindly mark it as Accept as Solution and feel free to give a Kudos, it would be much appreciated!
Thank you.
Hi @bbates22 ,
May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
Thank you.
Hi @bbates22,
We wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If my answer resolved your query, please mark it as "Accept Answer" and give Kudos if it was helpful.
If you need any further assistance, feel free to reach out.
Thank you for being a valued member of the Microsoft Fabric Community Forum!
No we went to use direct data streams with Event House but have to create the connections manually. Not solved but hope to hear about this functionality on the roadmap for Fabric.
Hi @bbates22,
Thank you so much for the update, and we truly appreciate you for sharing your experience.
You're absolutely right as of now, creating Event Hub connections programmatically via REST API isn’t supported. We understand the added effort required when working with hundreds of Event Hubs, and it’s great to hear that you’re using direct data streams with Eventhouse as a workaround in the meantime.
Thanks again for engaging with the community, and we hope to see this functionality become available in future releases.
Regards,
Sahasra.
Hi @bbates22,
Since we haven't heard back from you yet, I'd like to confirm if you've successfully resolved this issue or if you need further help?
If you've already resolved the issue, you can mark the helpful reply as a "solution" so others know that the question has been answered and help other people in the community. Thank you again for your cooperation!
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Hi @v-sgandrathi 
Do you have a working example of adding a source to eventstream for a NEW eventhub. Copilot has this:
POST https://fabric.microsoft.com/v1/workspaces/<workspaceId>/eventstreams
Content-Type: application/json
Authorization: Bearer <your_token>
{
    "name": "MyEventStream",
    "source": {
        "type": "EventHub",
        "namespace": "<your_eventhub_namespace>",
        "eventHubName": "<your_eventhub_name>",
        "authentication": {
            "type": "ConnectionString",
            "value": "<your_eventhub_connection_string>"
        }
    },
    "destination": {
        "type": "Lakehouse",
        "path": "/data/events",
        "table": "<your_table_name>"
    }
} There's no documentation of this call. We tried and it makes only an empty eventstream with no source and doesn't return an error or explanation.
The documentation has Create eventstream.
https://learn.microsoft.com/en-us/rest/api/fabric/eventstream/items/create-eventstream?tabs=HTTP
but it requires a working dataConnectionId
{
  "sources": [
    {
      "id": "d2438762-f31a-459c-bd89-066658feb076”,
      "name": "sdata-stream",
      "type": "AzureEventHub",
      "properties": {
        "dataConnectionId": "61abb01d-9eab-44e2-b87f-17586b04173a”,
        "consumerGroupName": "eventhouse",
        "inputSerialization": {
          "type": "Json",
          "properties": {
            "encoding": "UTF8"
          }
        }
      }
    }
  ],HI @bbates22 ,
Currently, the creationMethod parameter in this API does not support the EventHub type. This limitation means that creating new Event Hub connections via the REST API in Microsoft Fabric is not possible at the moment.
When configuring an Eventstream in Microsoft Fabric, you can directly specify the Event Hub connection string. This allows you to connect to different Event Hubs within the same namespace by providing the relevant connection string for each.
At this time, Event Hub connections need to be manually configured through the Fabric portal. REST API support for Event Hub creation is not yet available.
If you would like to see REST API support for Event Hub connections in Microsoft Fabric, we encourage you to submit your feedback via the Microsoft Feedback Portal.
Fabric Ideas - Microsoft Fabric Community
If my response was helpful, consider clicking "Accept as Solution" and give us "Kudos" so that other community members can find it easily. Let me know if you need any more assistance!
Thankyou.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Fabric update to learn about new features.