Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
trondb
New Member

Calling Custom App endpoint for Eventstream in Fabric from Postman

I've created an Custom App endpoint for my eventstream and can easily call this from Power Automate/Logic App. 

 

However, I've some issues calling the same Event Hub endpoint from e.g., Postman seems to be harder.

 

Does anyone have a sample/tutorial/guide on how to push data from Postman to my Eventstream eventhub endpoint?

1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @trondb ,

You can try the following:
1. Generate SAS Token for Authentication. 
Event Hubs require a SAS (Shared Access Signature) token for authentication. You can generate this token using Azure PowerShell or Azure CLI.
Authenticate access to Azure Event Hubs with shared access signatures - Azure Event Hubs | Microsoft...
2. Configure Postman Request.
In Postman, you'll need to set up your request with the correct HTTP method (typically POST for sending events), the URL of your Event Hub endpoint, and headers. The most crucial header will be Authorization, where you'll paste the SAS token generated in step 1.
3. Set Request Body.
The body of your request should contain the event data you wish to send to the Event Hub. Ensure the body is correctly formatted (usually as JSON) and matches the schema expected by your Eventstream.

The following links may be helpful:
Azure Event Hubs documentation | Microsoft Learn
Stream real-time events from a custom app to a Microsoft Fabric KQL database - Microsoft Fabric | Mi...

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
trondb
New Member

Great input. Turns out I forgot to add /messages to end of the URL. Works great!

v-junyant-msft
Community Support
Community Support

Hi @trondb ,

You can try the following:
1. Generate SAS Token for Authentication. 
Event Hubs require a SAS (Shared Access Signature) token for authentication. You can generate this token using Azure PowerShell or Azure CLI.
Authenticate access to Azure Event Hubs with shared access signatures - Azure Event Hubs | Microsoft...
2. Configure Postman Request.
In Postman, you'll need to set up your request with the correct HTTP method (typically POST for sending events), the URL of your Event Hub endpoint, and headers. The most crucial header will be Authorization, where you'll paste the SAS token generated in step 1.
3. Set Request Body.
The body of your request should contain the event data you wish to send to the Event Hub. Ensure the body is correctly formatted (usually as JSON) and matches the schema expected by your Eventstream.

The following links may be helpful:
Azure Event Hubs documentation | Microsoft Learn
Stream real-time events from a custom app to a Microsoft Fabric KQL database - Microsoft Fabric | Mi...

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Update Carousel

Fabric Monthly Update - April 2024

Check out the April 2024 Fabric update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors