I am trying to run the Apache jMeter on azure VM using PowerShell in VSTS pipeline. The problem is azure VM is newly created and there is no JDK installed by default. As jMeter requires 'java' so it throws below error.
C:\apache-jmeter-5.2.1\bin>jmeter -n -t C:\User-search.jmx -l C:\
Not able to find Java executable or version. Please check your Java installation.
errorlevel=2
I need to install the java before running the jMeter. Is there any way to install java remotely using Powershell?
Or if there is any windows azure VM image available with pre-installed java?