# Automating my nextflow pipeline running on Azure batch

**URL:** <https://community.seqera.io/t/automating-my-nextflow-pipeline-running-on-azure-batch/429>\
**Category:** Ask for help\
**Tags:** azure-batch, platform\
**Created:** [January 25, 2024, 6:37am UTC](https://community.seqera.io/t/automating-my-nextflow-pipeline-running-on-azure-batch/429 "2024-01-25T06:37:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naveen\_Rajan](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/naveen_rajan/32/388_2.png) [@Naveen\_Rajan](https://community.seqera.io/u/Naveen_Rajan)\
**Post date:** [January 25, 2024, 6:37am UTC](https://community.seqera.io/t/automating-my-nextflow-pipeline-running-on-azure-batch/429/1 "2024-01-25T06:37:50Z")

</div>

Hello everyone

i have been running my nextflow pipeline in Azure batch with sample fastq files stored in a ADLS storage container

Now i just need to automate this pipeline for the event whenever new samples are loaded in container specific directory

Can anyone guide me on this

---

<div class="post-metadata">

**Author:** ![Adam\_Talbot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/adam_talbot/32/62_2.png) [@Adam\_Talbot](https://community.seqera.io/u/Adam_Talbot)\
**Post date:** [January 26, 2024, 9:25am UTC](https://community.seqera.io/t/automating-my-nextflow-pipeline-running-on-azure-batch/429/2 "2024-01-26T09:25:58Z")

</div>

The easiest way to do this would be with an Azure Function. You can configure an Azure Function to trigger once a file lands in Azure Blob storage, then kick off a Seqera platform hook (or indeed, any other API). It’s essentially free overheads and you will only pay for the very brief runtime which should be a few milliseconds.

Check out the Azure documentation for a Function triggered by a blob storage event here: [Azure Blob storage trigger for Azure Functions | Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger) and the documentation for a Tower hook here: [https://docs.seqera.io/platform/23.3.0/pipeline-actions/overview#tower-launch-hooks](https://docs.seqera.io/platform/23.3.0/pipeline-actions/overview#tower-launch-hooks).
