a.br.ravichandran
07/08/2026, 9:42 AMCommandProgramNotFound — the node can't download the script from blob, so it goes to startTaskFailed and no Nextflow tasks can execute.
I now understand that Nextflow's azurebatch executor uses az:// paths + azcopy for data movement (not blobfuse2 mounts), so the start-task isn't needed for the pipeline itself. But I want to make sure I'm not missing something before removing it.
My questions:
1. Has anyone successfully run nf-core/sarek on Azure Batch with managed identity auth (no account keys)? If so, could you share your nextflow.config structure?
2. Does your pool use a start-task, or does it boot clean with just dockerCompatible? What does your pool configuration look like?
3. Any gotchas with az:// paths for --fasta, --bwa, --germline_resource etc.? Do they resolve correctly on the compute nodes?
4. For those who ran sarek 3.5.1 specifically — did you need to pin NXF_VER to avoid the "Variable declarations cannot be mixed with config statements" error on newer Nextflow versions?
If anyone has a working config or a step-by-step doc they followed, I'd be incredibly grateful. Happy to share what I've learned so far as well.
Thanks in advance!Maxime Garcia
07/08/2026, 10:38 AMAdam Talbot
07/08/2026, 11:09 AMAdam Talbot
07/08/2026, 11:21 AM1. Has anyone successfully run nf-core/sarek on Azure Batch with managed identity auth (no account keys)? If so, could you share your nextflow.config structure?Yes see the documentation: docs.seqera.io/nextflow/azure#…
process {
executor = 'azurebatch'
machineType = 'Standard_D*s_v2'
// This is my only special tip not in the docs, I would always reserve a minimum allocation of disk
disk = "128GB"
}
workDir = 'az://<blob-container>/work'
azure {
managedIdentity {
clientId = '<user-assigned-managed-identity-client-id>'
}
storage {
accountName = '<storage-account-name>'
}
batch {
accountName = '<batch-account-name>'
location = '<batch-account-location>'
autoPoolMode = true
allowPoolCreation = true
}
}
Does your pool use a start-task, or does it boot clean with just dockerCompatible? What does your pool configuration look like?By default, Nextflow adds a startTask to download azcopy when it creates node pools. This is in the documentation here: docs.seqera.io/nextflow/azure#… under "Requirements for pre-existing named pools". You don't need azcopy if you're using fusion or installing azcopy in every task.
3. Any gotchas with az:// paths for --fasta, --bwa, --germline_resource etc.? Do they resolve correctly on the compute nodes?Not sure what you mean here? it's also documented here: docs.seqera.io/nextflow/azure#…. Just use them like any remote file in Nextflow (
<az://containerName/path/to/file>)
4. For those who ran sarek 3.5.1 specifically — did you need to pin NXF_VER to avoid the "Variable declarations cannot be mixed with config statements" error on newer Nextflow versions?Not sure, this is a Sarek specific question. Nothing should change with regards to Azure Batch here
a.br.ravichandran
07/09/2026, 10:12 AMaz:// paths.
At the moment, we have moved past the storage access issue and are encountering an error during the BWA alignment step, which we are currently investigating.
I have one additional question regarding data mirroring. While attempting to mirror reference resources from the iGenomes/AWS S3 bucket to Azure Blob Storage, we came across documentation that references the environment variables: AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEYAdam Talbot
07/09/2026, 10:14 AMa.br.ravichandran
07/09/2026, 10:26 AMAdam Talbot
07/09/2026, 10:30 AMAdam Talbot
07/09/2026, 10:31 AMAdam Talbot
07/09/2026, 10:31 AMa.br.ravichandran
07/10/2026, 10:08 AMhuman_g1k_v37_decoy.fasta.amb
human_g1k_v37_decoy.fasta.ann
human_g1k_v37_decoy.fasta.bwt
human_g1k_v37_decoy.fasta.pac
<http://human_g1k_v37_decoy.fasta.sa|human_g1k_v37_decoy.fasta.sa>
We are running Sarek with:
nextflow run nf-core/sarek -r 3.5.1 -c nextflow.config \
--input samplesheet.csv --outdir 'az://nextflow-work/results/run5' \
--tools mutect2 --aligner bwa-mem --trim_fastq \
--skip_tools baserecalibrator \
--igenomes_ignore --genome null \
--fasta 'az://nextflow-work/ref/human_g1k_v37_decoy.fasta' \
--fasta_fai 'az://nextflow-work/ref/human_g1k_v37_decoy.fasta.fai' \
--dict 'az://nextflow-work/ref/human_g1k_v37_decoy.dict' \
--bwa 'az://nextflow-work/ref/bwa' \
--germline_resource 'az://nextflow-work/ref/af-only-gnomad.raw.sites.vcf.gz' \
--germline_resource_tbi 'az://nextflow-work/ref/af-only-gnomad.raw.sites.vcf.gz.tbi'
#GRCh38
rclone sync s3anon:ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh38/Sequence/WholeGenomeFasta azblob:genomics/igenomes/Homo_sapiens/GATK/GRCh38/Sequence/WholeGenomeFasta -P
rclone sync s3anon:ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh38/Sequence/BWAIndex azblob:genomics/igenomes/Homo_sapiens/GATK/GRCh38/Sequence/BWAIndex -P
rclone sync s3anon:ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle azblob:genomics/igenomes/Homo_sapiens/GATK/GRCh38/Annotation/GATKBundle -P
# GRCh37
rclone sync s3anon:ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh37/Sequence/WholeGenomeFasta azblob:genomics/igenomes/Homo_sapiens/GATK/GRCh37/Sequence/WholeGenomeFasta -P
rclone sync s3anon:ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh37/Sequence/BWAIndex azblob:genomics/igenomes/Homo_sapiens/GATK/GRCh37/Sequence/BWAIndex -P
rclone sync s3anon:ngi-igenomes/igenomes/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle azblob:genomics/igenomes/Homo_sapiens/GATK/GRCh37/Annotation/GATKBundle -P
Questions:
1. Is Sarek expected to recreate the BWA index for every new run/batch, even when the index files already exist?
2. If we run another batch a few days later, will the indexing process be repeated?
3. Is there a specific directory structure or parameter required for Sarek to reuse prebuilt BWA indexes stored in Azure Blob Storage?
4. Has anyone successfully configured Sarek to consume existing BWA indexes from remote object storage (Azure Blob/S3) instead of generating them locally?
Any guidance would be greatly appreciated. Thanks!Maxime Garcia
07/10/2026, 10:27 AMMaxime Garcia
07/10/2026, 10:27 AMMaxime Garcia
07/10/2026, 10:29 AMa.br.ravichandran
07/10/2026, 11:22 AMMaxime Garcia
07/10/2026, 11:29 AMa.br.ravichandran
07/10/2026, 11:49 AMa.br.ravichandran
07/10/2026, 11:52 AMMaxime Garcia
07/10/2026, 12:05 PMa.br.ravichandran
07/10/2026, 12:14 PMMaxime Garcia
07/10/2026, 12:17 PMa.br.ravichandran
07/10/2026, 12:22 PMMaxime Garcia
07/10/2026, 12:35 PMa.br.ravichandran
07/10/2026, 12:42 PMMaxime Garcia
07/10/2026, 12:47 PM--bwa '<az://nextflow-work/ref/bwa_index>'