issues while Configuring Event Grid on IoT hub

Pooja Kumari 31 Reputation points
2021-09-22T07:28:45.133+00:00

Hi,

While configuring Event Grid on the IoT hub in creating event subscription > endpoint details > select an endpoint > function I am unable to get function name.

Could anyone please let me know where I am missing or doing this incorrect.

I have attached the screenshot for the reference.134176-error.jpg

Also I am following this document "https://learn.microsoft.com/en-us/learn/modules/ingest-data-into-azure-digital-twins/5-set-up-iot-hub" and in step "Configure Event Grid on your IoT hub" I am getting error.

Regrads,
Pooja Kumari

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
231 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,202 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
396 questions
{count} votes

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2021-09-24T04:05:35.657+00:00

    Hello, @Pooja Kumari Sorry for the inconvenience caused!

    I was able to repro the issue, as the error gives a more accurate reason.

    Your Azure FunctionApp is Ready, but the Function code is not ready. That means there is an issue in the Function code.

    Please make use of this piece of code: Remove the void word and use the Task

     -->   public async Task Run([EventGridTrigger] EventGridEvent eventGridEvent, ILogger log)  
    

    Please add the declaration as well:

    using System.Threading.Tasks;  
    

    134867-image.png

    Note: I have submitted a report to update the MSLearn content on the page, so please make use of the above workaround to get unblocked until it is fixed!!!

    Please comment in the below section for further help in this matter!.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.