After lot of debugging, I found out that the error was in my patch Json instead of query.
If the patch is wrong, I am seeing this error. Which is very miss leading.
TAG field is required. Thats how i got to fix this issue.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have followed this documentation: https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-node-node-schedule-jobs#schedule-jobs-for-calling-a-direct-method-and-updating-a-device-twins-properties
var queryCondition = "deviceId IN ['myDeviceId']"; // i have made sure myDeviceId matches my Iothub device id.
And I get this error: ArgumentError: Null or empty query condidtion is invalid or not supported anymore. Use query condition '*' if need to run job on all devices.
I am using node.js SDK i.e., 'azure-iothub' JobClient
After lot of debugging, I found out that the error was in my patch Json instead of query.
If the patch is wrong, I am seeing this error. Which is very miss leading.
TAG field is required. Thats how i got to fix this issue.