I've followed the Microsoft Ingest-iot-hub-data tutorial: https://docs.microsoft.com/en-us/azure/digital-twins/how-to-ingest-iot-hub-data?tabs=cli
and made sure that the App deployed to ingest data from IoT hub to Digital Twin has the required Azure Digital Twin data-owner access. The code used was that shown in the tutorial: IoTHubtoTwins.cs, except that:
public async void Run([EventGridTrigger] EventGridEvent eventGridEvent, ILogger log)
was changed to
public async Task Run([EventGridTrigger] EventGridEvent eventGridEvent, ILogger log)
Tha App runs on a trigger event when getting data (I've tried the simulated data in the tutorials as well as actual data from Raspberry PI).
I wasn't getting the Digital Twin to update, so monitored the App log stream and found that the function was throwing out an error related to Managed Identity.
I've checked everywhere for holes in role access, and it is all covered. It must be something else(?) I've been stuck for days on this. Thank you!