Hello @Tanish Sidana
welcome to this moderated Azure community forum.
to connect a device to the Azure IoT Hub, you need a couple of things:
- An Azure subscription
- A (free) IoT Hub
- A device registration on the IoT Hub
- An esp8266 device
- An application on the device
Check out this list of embedded device SDKs with samples:
It should be evident that you need programming skills to program an embedded device like the esp8266.
Notice that the esp8266 is a fairly old model. If you can consider using a more modern esp32, you have much more choice in programming languages and tooling. For example, you can program with the .Net Nanoframework as seen in this blog post. All you need is VS Code and knowledge about the C# programming language.
If you need basic training on how to set up an IoT Hub and how to register a device, check out this collection of free training modules like this introduction to the IoT Hub.
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.