Hello @OJB1 ,
it seems you want to explore Cloud-To-Device (C2D) communication.
Azure IoT supports both D2C and C2D communication out-of-the-box with the Device SDKs for different development languages.
If you are interested in C#, check out this blog post.
There you found examples of both Desired properties and Direct methods, two popular but different ways to communicate.
Desired properties are values set in the Device Twin, a document in the IoT Hub where devices check for changes if they connect to the cloud. So this is great for not-always-connected devices.
The Direct Method needs a live connection. The advantage is that you can expect an actual answer from the device or a time-out.
It also demonstrated commands. These are 'function calls' like direct methods but the device can pick them up later if they are not connected yet. Hence, no result is returned.
If you are interested in more training, please check out the MS Learn IoT-related modules and learning paths.
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.
Thank you so much for your help :)