locked
Streaming to an Event Hub RRS feed

  • Question

  • I have an Event Hub created in Azure and am struggling to find out how to send data to the Hub.  I am trying to capture CISCO CMX data, which has a component to send data to a URL/IP/MAC address.  How do I determine what the URL is for my Event Hub.  I have the primary connection Endpoint=sb://name.servicebus.windows.net/;SharedAccessKeyName=name;SharedAccessKey=*****

    • Edited by jdb09 Monday, April 30, 2018 6:46 PM
    Monday, April 30, 2018 6:28 PM

Answers

  • Hello jdb09,

    The URL maybe like this: https://[your-namespace].servicebus.windows.net/[your-event-hub]/messages?api-version=2014-01

    If you want to send data to event hub you need create send policy for your SAS token:

    Here is tutorial about how to generate SAS token using send policy key that created in above step.

    The following is a sample of HTTP request sends an event to event hub:

    POST https://your-namespace.servicebus.windows.net/your-event-hub/messages?timeout=60&api-version=2014-01 HTTP/1.1  
    Authorization: SharedAccessSignature sr=your-namespace.servicebus.windows.net&sig=your-sas-key&se=1403736877&skn=RootManageSharedAccessKey  
    Content-Type: application/atom+xml;type=entry;charset=utf-8  
    Host: your-namespace.servicebus.windows.net  
    
    { "DeviceId":"dev-01", "Temperature":"37.0" }

    Best regards,

    Rita


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.



    Tuesday, May 1, 2018 3:31 AM