Azure - Prefix on Environment Variables

  • which versions are you using: Community Edition Version 8.9.9 (build 56886)
  • how is SonarQube deployed: Docker on Azure
  • what are you trying to achieve: Update to 9.9

Currently have cleared the installation & installed up to 8.9.9. Had an issue passing the Environment Variables which I worked around via modification to the run.sh.

Azure adds an immutable prefix to the Environment Variables.

SONAR_JDBC_USERNAME becomes SQLAZURECONNSTR_SONAR_JDBC_USERNAME

To make it work, I had to manually pull them into the sq_opts by matching on this value instead.

This seems to have been deprecated in 9.9+ - is there a way around this to configure the DB connection?

Hi,

Welcome to the community!

While you can’t run SonarQube on Azure App Service, we’re not familiar with that particular variable rename.

BTW, you should not stop at 9.9. At this point, 9.9 is 2 years old, and very much EOL. 2025.1 LTA is the latest version and current LTA. Once you get to 9.9 you should continue your migration path to 2025.1 LTA.

 
HTH,
Ann