This template provides a easy way to deploy a Sonarqube docker image (alpine tag) on a Linux Web App with Azure database for MySQL.
{"comments": "this is the linux web app with the sonarquebe docker image and the db", "type": "microsoft.web/sites", "name": "[parameters('sitename')]", "apiversion": "2019-08-01", "location": "[parameters('location')]", "dependson": ["[variables('hostingplanname')]", "[variables('databasename')]"], "properties": {"siteconfig": {"linuxfxversion": "docker|sonarqube"}, "name": "[parameters('sitename')]", "serverfarmid": "[resourceid('microsoft.web/serverfarms", variables('hostingplanname'))]"}, "resources": [{"comments": "this are the generated settings for the sonar jdbc connectionstring", "name": "appsettings", "type": "config", "apiversion": "2019-08-01", "dependson": ["[resourceid('microsoft.web/sites", parameters('sitename'))]"], "tags": {"displayname": "sonarappsettings"}, "properties": {"sonarqube_jdbc_url": "[concat('jdbc:mysql://",  reference(resourceid('microsoft.dbformysql/servers",variables('servername'))).fullyqualifieddomainname , ":3306/",variables('databasename'),"?verifyservercertificate=true&usessl=true&requiressl=false&useunicode=true&characterencoding=utf8')]", "sonarqube_jdbc_username": "[variables('jdbcsonarusername')]", "sonarqube_jdbc_password": "[parameters('administratorloginpassword')]"}}]}{"apiversion": "2019-08-01", "name": "[variables('hostingplanname')]", "type": "microsoft.web/serverfarms", "location": "[parameters('location')]", "properties": {"name": "[variables('hostingplanname')]", "workersizeid": "1", "reserved": true, "numberofworkers": "1"}, "sku": {"tier": "[parameters('serviceplantier')]", "name": "[parameters('serviceplansku')]"}, "kind": "linux"} 