I can create a session locally by using mongo shell and remotely by using vscode mongo plugin(Azure Cosmos DB).
But with PHP Mongo driver, it doesn't work:
MongoDB \ Driver \ Exception \ RuntimeException (11002)
Could not generate UUID for logical session id, we need a cryptography library like libcrypto, Common Crypto, or CNG
This error message is reported by php. No errors occurs on monogo.log