Hello @Shiva Shankar,
welcome to this moderated Azure community forum.
It seems you want to send a telemetry message to the IoT Hub.
in the past, I posted a blog post about this subject, HTTPS access.
In that post, the old device explorer was used.
You can generate a sas token using the new Azure IoT Explorer.
Please try this sas token together with the code example from the blog post.
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.