Hi ,
Thanks for reaching out to Microsoft Q&A.
azure load testing does not allow you to control or reorder the builtin JMeter classpath. The platform ships with its own JMeter runtime and embedded libraries, including the old MongoDB driver, and those cannot be removed, overridden, or reordered.
The only reliable mechanism is to avoid the conflict entirely:
Shade/relocate your MongoDB classes inside your uber jar using Maven Shade or Gradle Shadow. Relocate the com.mongodb packages to a custom namespace so that the built-in driver is never picked up.
- Do not rely on classpath order. load testing always loads its internal libs first, and you cannot change that.
In short, you cannot manage classpath ordering in azure load testing. You must relocate your dependencies to avoid conflicts with the bundled JMeter libraries.
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.