Hello @Dharmesh Joshi ,
welcome to this moderated Azure community forum.
The Azure IoT Hub is a cloud gateway to connect large amounts of devices while supporting two-way communication, with a secure identity for each device.
Next to MQTTs, the IoT Hub also supports protocols like AMQPs and HTTPs (HTTP is not recommended).
The IoT Hub is not a full MQTT broker and supports only a subset so the underlying device registration and communication work great.
Check out this blog post on the interface, the security and topics supported by the IoT Hub.
If you want to use an MQTT compliant broker, check out the full MQTT support for the Azure Event Grid.
Check out this blog post on how to connect and consume the broker.
Notice that the name-password login is not supported on this broker either. Microsoft supports logging in into the broker via certificates. This sounds complicated but this is not that hard, just follow along with the blog posts.
Perhaps name-password access will be offered in the future.
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.