I´m running a Wordpress on Azure (webapp + MySQL in App) and recently ran into an issue accessing the database. Due to the increased amount of traffic coming into the app had to scale out the application.
That said, the "MySQL in App" was replicated but not accessible and the App Settings where updated in the wrong way.
Noticed that when accessing PHPMyAdmin I was getting two instances to choose. Therefore the app couldn´t stablish communication through the right database.
Removed the application setting for MySQL which was causing this issue and that fixed the issue.
Is not advisable to scale out when you use MySQL in app. Instead you can use Azure DB for MySQL if want to scale out. There is an option to easily migrate from "MySQL in App" to "Azure Database for MySQL"