question

IanPlamondon-6110 avatar image
0 Votes"
IanPlamondon-6110 asked JayaC-MSFT edited

Issues with DataDog Intergration and Function App Functions

Please help!

I have an Azure AD tenant, and I've connected the logging from AAD to my event hub, logs are collecting there nicely.

I'm following the DD directions in the link below:

https://docs.datadoghq.com/integrations/azure_active_directory/

Which takes me to the following link:

https://docs.datadoghq.com/integrations/azure/?tab=manualinstallation#log-collection

I'm fine until I get to the below area:

  • Add a new function to your function app using the Event Hub trigger template.

  • Select a new/existing function app from the function apps list.

  • Select Functions from the functions menu and click Add.

  • Select Azure Event Hub trigger from the templates menu and click New.

  • Select your namespace and Event Hub for Event Hub connection and click OK. Click Create Function.

I've created a function app just fine. When I try to create the function from the template, I the drop down box there isn't an event hub connection to select.

Please Help!

Regards,

Ian


78999-event-hub-setup.png
79012-event-hub.png


azure-functions
event-hub-setup.png (117.4 KiB)
event-hub.png (94.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered JayaC-MSFT edited

Hello @IanPlamondon-6110 , did you create the application setting with the event hub connection string ? (check the below links and look for app Service settings / app settings. After adding it, restart the app and try again)
https://thegreenerman.medium.com/trigger-azure-functions-on-event-hub-1e1df0402ba4

https://technology.amis.nl/cloud/serverless-computing-with-azure-functions-interaction-with-event-hub/

Please let me know if this helps.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I did create a new shared access policy with the connection string previously, and it's the one that I used to connect my Azure AD instance to the event hub.

The 2nd guide looks like where I need to be. I'm at the "In Azure Function App" step, and when I go to the functional app and try to add a connection string, event hub isn't an option in the dropdown menu.

79246-connection-string.png


0 Votes 0 ·

Hello @IanPlamondon-6110, in the function app first go to the Configuration -> Add New Application ( not connection string) setting:

82696-image.png

Then Add the settings and save it. Now go to "Functions" and try to add Event hub Trigger from the template , you will find something similar :
82620-image.png

Please let me know if it helps. If yes, please "Accept the answer" and "Up-vote" so that it helps others in the community.


0 Votes 0 ·
image.png (243.2 KiB)
image.png (85.5 KiB)