Here is the sample configuration I have done for one of the cameras in my network.
Note: I am using Azure Event grid as MQTT broker in this case.

When we try to test the connection, all the while we are getting an error in connecting to broker.
Need your assistance in resolving this issue.