PyMongo Cant connect to MongoDB Atlas from Azure Container Instance

I have this same issue. I was able to confirm that if I whitelist all IPs this works so I don’t think the issue is related to a firewall, but past that, I’m not sure what else to try.