Schedule direct method job for edge module

Wegmann Silvan 20 Reputation points
2024-07-18T12:00:54.89+00:00

I followed the example from https://learn.microsoft.com/en-us/azure/iot-hub/schedule-jobs-python to create a scheduled job for calling a direct method. This somehow seems to work, as I get console output for the successful scheduling, running and completion of a job.

However in my case, the device is not just a simple device but an edge device running multiple modules. So I want to schedule a direct method call on one specific edge module.

Is this even possible? Is there some easy adaption of the given example?

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
576 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 32,736 Reputation points MVP
    2024-07-18T18:05:18.5+00:00

    Hello @Wegmann Silvan ,

    welcome to this moderated Azure community forum.

    I'm not sure if the job works on edge device modules too.

    The documentation says:

    Jobs execute device twin updates and direct methods against a set of devices at a scheduled time.

    There is no mentioning of support for Azure IoT Edge module twins.

    Using Azure IoT Edge gives you a lot of flexibility with sending telemetry, module direct methods, and module twin.

    Perhaps you can design a similar approach?


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


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.