Hi @KURAMOTOAHUJATAIRA-3118 Greetings! Thank you for posting the question on this forum.
Inspect the Diagnostic settings of the Azure IoT Hub and verify if Direct Methods
category is enabled to be logged into the Diagnostic logs? To check this, navigate to the Diagnostic Settings under the Monitoring section of the Azure IoT Hub. If you have an existing set up that is created to log the events, Edit it to check if Direct Method is selected. Refer the below image for details.
Kindly note that the approach of your DirectMethod
implementation impacts the Category
of the event logs. For example, if you create the Direct method using the azure-iot-device.Client
class to design Direct Method, the event generated when the method is triggered will be categorized as DirectMethods
. However, if you use azure-iothub.JobClient
class to create a job, the generated event will be categorized as JobsOperations
.
Please refer the following resources for reference.
Let us know if you have any additional questions or need further clarification in the comments below.
If the response helped, please do click Accept Answer and Yes. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.