diff --git a/plugins/nf-azure/src/main/nextflow/cloud/azure/batch/AzBatchService.groovy b/plugins/nf-azure/src/main/nextflow/cloud/azure/batch/AzBatchService.groovy index 3fab232c95..a3638fd265 100644 --- a/plugins/nf-azure/src/main/nextflow/cloud/azure/batch/AzBatchService.groovy +++ b/plugins/nf-azure/src/main/nextflow/cloud/azure/batch/AzBatchService.groovy @@ -218,7 +218,11 @@ class AzBatchService implements Closeable { protected Double computeScore(int cpus, MemoryUnit mem, Map entry) { def vmCores = entry.numberOfCores as int - double vmMemGb = (entry.memoryInMb as int) /1024 + // Azure spells it with two different spellings + int entryInMb = (entry.memoryInMB ?: entry.memoryInMb) as int + double vmMemGb = entryInMb/1024 + + println "VM: ${entry.name} cpus: $vmCores mem: $vmMemGb" if( cpus > vmCores ) { return null