Issue integrating Event Hub with Azure Metric Advisor

robert mcalpine 26 Reputation points


I am busy POCing event hub and Azure Metric Advisor but I'm having some difficulty connecting to to event hub via azure metric advisor.

I'm receiving the following error on my end:

Unable to fetch data from given Azure Event Hubs, please find error details below and check the given parameters. Error: Timeout on blocking read for 10000000000 NANOSECONDS ; Trace Id: 5f014560-765b-41f0-8db5-6cbb00500577 ; Timestamp: 2/9/2022 11:36:22 AM

Steps I've taken when setting up event hub:
Step 1 : Create event hub resource with Standard Plan

Step 2: Enter Networking tab and tick the following options:
in the step below it states that This setting is related to firewall only. In order to access this event hub, the trusted service must also be given explicit permissions in the Access policies section. but for the life of me i cant figure out where else to set this (cant find any setting in shared access policies either)?


Step 3: Create Event hub entity (testhub) and create a shared access policy with read/write/manage permissions (my testpolicy)

Step 4: Ingest time series data via python into the event hub (see screenshot below confirming delivery of messages)

Step 5: Create Consumer group (testgroup) for testhub

Step 6: Go into MetricsAdvisor and add datafeed with the following settings for event hub connectivity:
Connection string: Endpoint=sb://;SharedAccessKeyName=mytestpolicy;SharedAccessKey=<myaccesskey copied from my shared access policy>=;EntityPath=testhub
Consumer group : testgroup

I then proceed to to load data and then i just receive the error message stated above?

I can successfully generate events via python and push the messages up into event hub

Is there perhaps something explicit that i should be adding or doing on my end to enable a successful connection to onboard the streaming set of data?

Azure AI Metrics Advisor
Azure AI Metrics Advisor
An Azure artificial intelligence analytics service that proactively monitors metrics and diagnoses issues.
80 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
554 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,376 Reputation points Microsoft Employee

    Hello @robert mcalpine ,
    Thanks for the ask and using Microsoft Q&A platform .
    As we understand the ask here is you are havving issues connecting to Eventhub from Azure metric advisor . Please do let me know if that not accurate
    I think here the intend is connect the Azure metric advisor to EH , can you please try this seeting and let me know if that works
    Step1 : Select All networks
    Step 2 : if application select "Allow trusted Microsoft services to bypass thhis firewall"

    Are you able to get around with the error ?
    Just curiuos iif you have Event hub is on a VNET ? if thats the case then you will have to Select " virtual Network" and selectVNET from the list .

    Please do let me if you have any queries .


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators