The SonarQube/Cloud Azure extensions should work with non-Oracle JDKs such as OpenJDK or the Azul Zulu JDK (which is what is installed on MS-hosted build agents).
However, you might need to manually add the java
capability to your self-hosted build agents due to a bug in the MS build agent. See this thread for more information.