Are you aware of Cloud-based Apache JMeter Load Test task
# Cloud-based Apache JMeter Load Test
# Runs the Apache JMeter load test in cloud
- task: ApacheJMeterLoadTest@1
inputs:
#connectedServiceName: # Optional
testDrop:
loadTest: 'jmeter.jmx'
agentCount: '2'
#runDuration: '60' # Options: 60, 120, 180, 240, 300
#geoLocation: 'Default' # Optional. Options: default, australia East, australia Southeast, brazil South, central India, central US, east Asia, east US 2, east US, japan East, japan West, north Central US, north Europe, south Central US, south India, southeast Asia, west Europe, west US
#machineType: '0' # Optional. Options: 0, 2
If you want to do it all manually you can create the VMs using Azure CLI or REST API and once done you can download JMeter installation and configure it according to your test scenario.