Connection to MySQL Azure SaaS

Good day

Got a MySQL SaaS on Azure and having problems connecting to it during installation. The error being:

Message: host=prodmysql.mysql.database.azure.com, port=3306, user=username@prodmysql, databasename=dolibarr, SSL connection is required. Please specify SSL options and retry.

From the web server I can connect to the MySQL server using the credentials with the mysql client. Also testing with a plain php script to see if I can connect, it connects fine.

Dolibarr version is 12.0.3