You can use this online simulator tool to learn the basics of the Raspberry Pi device and how it connects with the IoT Hub. It is very simple and easy to configure and consume.
In this recipe, you will learn how a Raspberry Pi device can be used for sending device-to-cloud messages to the IoT Hub.
A web based simulator image for Raspberry Pi