Configure a simple Azure Batch Job with Azure Data Factory

Published 04-08-2021 11:32 PM 1,080 Views
Microsoft

Azure Batch:

You can use Batch to run large-scale parallel and high-performance computing (HPC) applications efficiently in the cloud. It's a platform service that schedules compute-intensive work to run on a managed collection of virtual machines (VMs). It can automatically scale compute resources to meet the needs of your jobs.

With the Batch service, you define Azure compute resources to execute your applications in parallel, and at scale. You can run on-demand or scheduled jobs. You don't need to manually create, configure, and manage an HPC cluster, individual VMs, virtual networks, or a complex job and task-scheduling infrastructure.

 

Azure Data Factory:

Data Factory is a cloud-based data integration service that orchestrates and automates the movement and transformation of data. You can use Data Factory to create managed data pipelines that move data from on-premises and cloud data stores to a centralized data store. An example is Azure Blob storage. You can use Data Factory to process/transform data by using services such as Azure HDInsight and Azure Machine Learning. You also can schedule data pipelines to run in a scheduled manner (for example, hourly, daily, and weekly). You can monitor and manage the pipelines at a glance to identify issues and take action.

 

Configure Batch job with ADF:

In this article, we will be looking into the steps involved in configuring a simple batch job with Azure data factory using the Azure portal.

We will be using an *.exe file and execute it in Azure data factory pipeline using Azure Batch.
This example does not require any additional tools or application to be pre-installed for the execution.

 

Create a Batch account:

  1. In the Azure portal, select Create a resource > Compute > Batch Service.
  2. In the Resource group field, select Create new and enter a name for your resource group.
  3. Enter a value for Account name. This name must be unique within the Azure Location selected. It can contain only lowercase letters and numbers, and it must be between 3-24 characters.
  4. Under Storage account, select an existing storage account or create a new one.
  5. Do not change any other settings. Select Review + create, then select Create to create the Batch account.

When the Deployment succeeded message appears, go to the Batch account that you created.
Public documentation for creating a Batch account.

 

Create a Pool with compute nodes:

  1. In the Batch account, select Pools > Add.
  2. Enter a Pool ID called mypool.
  3. In Operating System, select the following settings (you can explore other options).

Setting

Value

Image Type

Marketplace

Publisher

microsoftwindowsserver

Offer

windowsserver

Sku

2019-datacenter-core-smalldisk

  1. Scroll down to enter Node Size and Scale settings. The suggested node size offers a good balance of performance versus cost for this quick example.

Setting

Value

Node pricing tier

Standard A1

Target dedicated nodes

2

  1. Keep the defaults for remaining settings, and select OK to create the pool.

Batch creates the pool immediately, but it takes a few minutes to allocate and start the compute nodes. During this time, the pool's Allocation state is Resizing. You can go ahead and create a job and tasks while the pool is resizing.

After a few minutes, the allocation state changes to Steady, and the nodes start. To check the state of the nodes, select the pool and then select Nodes. When a  node's state is Idle, it is ready to run tasks.

Public documentation for creating a Batch pool.

 

Create Azure Data Factory:

  1. Go to the Azure portal.
  2. From the Azure portal menu, select Create a resource.
  3. Select Integration, and then select Data Factory.
  4. On the Create Data Factory page, under Basics tab, select your Azure Subscription in which you want to create the data factory.
  5. For Resource Group, take one of the following steps:
    1. Select an existing resource group from the drop-down list.
    2. Select Create new, and enter the name of a new resource group.
  6. For region, select the same region as the Batch account to avoid additional charges due to communication between different datacenters.
  7. For Name, provide a name for your ADF and kindly note that the name must be universally unique.
    sathishkumartlb_19-1617873894913.png

     

  8. For version, select v2.
  9. Select Next: Git configuration, and then select Configure Git later check box.
  10. Select Review + create and select Create after the validation is passed. After the creation is complete, select Go to resource to navigate to the Data Factory page.
  11. Below is an example of how a Azure Data Factory overview page looks like.
    sathishkumartlb_20-1617873894931.png

     

  12. Now click on ‘Author & Monitor’ to open the ADF workspace.
  13. Before the next step, download the helloworld.exe file from the here and upload it to one of the containers in your storage account which is being used with the Batch account.

Public documentation for creation of Azure Data Factory.

 

Configure a pipeline in ADF:

  1. In the left-hand side options, click on ‘Author’.
  2. Now click on the ‘+’ icon next to the ‘Filter resource by name’ and select ‘Pipeline’.

sathishkumartlb_2-1617872494914.png

 

 

  1. Now select ‘Batch Services’ under the ‘Activities’.

sathishkumartlb_3-1617872494936.png

 

 

  1. Change the name of the pipeline to the desired one.
  2. Drag and drop the custom activity in the work area.

sathishkumartlb_4-1617872494961.png

 

 

  1. Under the General section, enter a Name.
  2. Next, select Azure Batch and select the existing Azure Batch Linked Service or create a new one.
  3. To create an Azure Batch Linked Service, click on the + New. Enter the details as provided in the below screenshot.

sathishkumartlb_5-1617872494972.png

 

 

  1. Create a Storage Linked service name too, by selecting the + New in the dropdown.
  2. Enter the required details to create a storage linked service name, test the connection to check if it succeeds and click on create.

sathishkumartlb_6-1617872494984.png

 

  1. Now, select the storage linked service name in the Azure Batch linked service and click on create.
  2.  Next, click on settings and enter the command you want to execute (in this example, we will execute a simple helloworld.exe file which will print ‘Hello World’).
  3. So, in the command line type ‘(filename).exe’

sathishkumartlb_7-1617872495012.png

 

 

  1. Select the storage account linked service which we created, under the Resource Linked service.
  2. Under the Folder path, select the location of the container where the ‘helloworld.exe’ file is present by clicking on Browse storage.

sathishkumartlb_8-1617872495057.png

 

 

  1. Then click on Validate to check for any errors in the configuration.
  2. Finally, click on Debug to run the pipeline while will create a job in the Azure batch pool and execute the command line as a task.

Note: We are currently checking the pipeline without publishing it. So once the pipeline succeeds make sure to click on Publish All else all these configuration will be lost.

 

Check the Job status in Azure Batch:

  1. Navigate to the corresponding Batch account and click on Jobs.
  2. Click on the recently created Job and open the task which had run under it.
  3. Check for the successful Job completion by opening the stdout.txt file which will contain the output.

sathishkumartlb_9-1617872495097.png

 

 

  1. The output is displayed in the stdout.txt file for us.

sathishkumartlb_10-1617872495134.png

 

 

  1. We have now configured a simple Batch job using ADF pipeline and verified the output successfully.

Thank you for following the steps, I hope the blog was useful and kindly provide any comments based on your view or if any additional information needs to be included.

You can also try out a different execution of Azure batch with Azure Data Factory using a python script file.

%3CLINGO-SUB%20id%3D%22lingo-sub-2260759%22%20slang%3D%22en-US%22%3EConfigure%20a%20simple%20Azure%20Batch%20Job%20with%20Azure%20Data%20Factory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260759%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EAzure%20Batch%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20Batch%20to%20run%20large-scale%20parallel%20and%20high-performance%20computing%20(HPC)%20applications%20efficiently%20in%20the%20cloud.%20It's%20a%20platform%20service%20that%20schedules%20compute-intensive%20work%20to%20run%20on%20a%20managed%20collection%20of%20virtual%20machines%20(VMs).%20It%20can%20automatically%20scale%20compute%20resources%20to%20meet%20the%20needs%20of%20your%20jobs.%3C%2FP%3E%0A%3CP%3EWith%20the%20Batch%20service%2C%20you%20define%20Azure%20compute%20resources%20to%20execute%20your%20applications%20in%20parallel%2C%20and%20at%20scale.%20You%20can%20run%20on-demand%20or%20scheduled%20jobs.%20You%20don't%20need%20to%20manually%20create%2C%20configure%2C%20and%20manage%20an%20HPC%20cluster%2C%20individual%20VMs%2C%20virtual%20networks%2C%20or%20a%20complex%20job%20and%20task-scheduling%20infrastructure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAzure%20Data%20Factory%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EData%20Factory%20is%20a%20cloud-based%20data%20integration%20service%20that%20orchestrates%20and%20automates%20the%20movement%20and%20transformation%20of%20data.%20You%20can%20use%20Data%20Factory%20to%20create%20managed%20data%20pipelines%20that%20move%20data%20from%20on-premises%20and%20cloud%20data%20stores%20to%20a%20centralized%20data%20store.%20An%20example%20is%20Azure%20Blob%20storage.%20You%20can%20use%20Data%20Factory%20to%20process%2Ftransform%20data%20by%20using%20services%20such%20as%20Azure%20HDInsight%20and%20Azure%20Machine%20Learning.%20You%20also%20can%20schedule%20data%20pipelines%20to%20run%20in%20a%20scheduled%20manner%20(for%20example%2C%20hourly%2C%20daily%2C%20and%20weekly).%20You%20can%20monitor%20and%20manage%20the%20pipelines%20at%20a%20glance%20to%20identify%20issues%20and%20take%20action.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EConfigure%20Batch%20job%20with%20ADF%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIn%20this%20article%2C%20we%20will%20be%20looking%20into%20the%20steps%20involved%20in%20configuring%20a%20simple%20batch%20job%20with%20Azure%20data%20factory%20using%20the%20Azure%20portal.%3C%2FP%3E%0A%3CP%3EWe%20will%20be%20using%20an%20*.exe%20file%20and%20execute%20it%20in%20Azure%20data%20factory%20pipeline%20using%20Azure%20Batch.%3CBR%20%2F%3EThis%20example%20does%20not%20require%20any%20additional%20tools%20or%20application%20to%20be%20pre-installed%20for%20the%20execution.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECreate%20a%20Batch%20account%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EIn%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAzure%20portal%3C%2FA%3E%2C%20select%26nbsp%3B%3CSTRONG%3ECreate%20a%20resource%3C%2FSTRONG%3E%26nbsp%3B%26gt%3B%26nbsp%3B%3CSTRONG%3ECompute%3C%2FSTRONG%3E%26nbsp%3B%26gt%3B%26nbsp%3B%3CSTRONG%3EBatch%20Service%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EIn%20the%26nbsp%3B%3CSTRONG%3EResource%20group%3C%2FSTRONG%3E%26nbsp%3Bfield%2C%20select%26nbsp%3B%3CSTRONG%3ECreate%20new%3C%2FSTRONG%3E%26nbsp%3Band%20enter%20a%20name%20for%20your%20resource%20group.%3C%2FLI%3E%0A%3CLI%3EEnter%20a%20value%20for%26nbsp%3B%3CSTRONG%3EAccount%20name%3C%2FSTRONG%3E.%20This%20name%20must%20be%20unique%20within%20the%20Azure%26nbsp%3B%3CSTRONG%3ELocation%3C%2FSTRONG%3E%26nbsp%3Bselected.%20It%20can%20contain%20only%20lowercase%20letters%20and%20numbers%2C%20and%20it%20must%20be%20between%203-24%20characters.%3C%2FLI%3E%0A%3CLI%3EUnder%26nbsp%3B%3CSTRONG%3EStorage%20account%3C%2FSTRONG%3E%2C%20select%20an%20existing%20storage%20account%20or%20create%20a%20new%20one.%3C%2FLI%3E%0A%3CLI%3EDo%20not%20change%20any%20other%20settings.%20Select%26nbsp%3B%3CSTRONG%3EReview%20%2B%20create%3C%2FSTRONG%3E%2C%20then%20select%26nbsp%3B%3CSTRONG%3ECreate%3C%2FSTRONG%3E%26nbsp%3Bto%20create%20the%20Batch%20account.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EWhen%20the%26nbsp%3B%3CSTRONG%3EDeployment%20succeeded%3C%2FSTRONG%3E%26nbsp%3Bmessage%20appears%2C%20go%20to%20the%20Batch%20account%20that%20you%20created.%3CBR%20%2F%3EPublic%20documentation%20for%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbatch%2Fbatch-account-create-portal%23create-a-batch-account%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ecreating%20a%20Batch%20account%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECreate%20a%20Pool%20with%20compute%20nodes%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EIn%20the%20Batch%20account%2C%20select%26nbsp%3B%3CSTRONG%3EPools%3C%2FSTRONG%3E%26nbsp%3B%26gt%3B%26nbsp%3B%3CSTRONG%3EAdd%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EEnter%20a%26nbsp%3B%3CSTRONG%3EPool%20ID%3C%2FSTRONG%3E%26nbsp%3Bcalled%26nbsp%3B%3CEM%3Emypool%3C%2FEM%3E.%3C%2FLI%3E%0A%3CLI%3EIn%26nbsp%3B%3CSTRONG%3EOperating%20System%3C%2FSTRONG%3E%2C%20select%20the%20following%20settings%20(you%20can%20explore%20other%20options).%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20width%3D%22426%22%3E%0A%3CTHEAD%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3ESetting%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22255%22%3E%3CP%3E%3CSTRONG%3EValue%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTHEAD%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3EImage%20Type%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22255%22%3E%3CP%3EMarketplace%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3EPublisher%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22255%22%3E%3CP%3Emicrosoftwindowsserver%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3EOffer%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22255%22%3E%3CP%3Ewindowsserver%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3E%3CP%3E%3CSTRONG%3ESku%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22255%22%3E%3CP%3E2019-datacenter-core-smalldisk%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EScroll%20down%20to%20enter%26nbsp%3B%3CSTRONG%3ENode%20Size%3C%2FSTRONG%3E%26nbsp%3Band%26nbsp%3B%3CSTRONG%3EScale%3C%2FSTRONG%3E%26nbsp%3Bsettings.%20The%20suggested%20node%20size%20offers%20a%20good%20balance%20of%20performance%20versus%20cost%20for%20this%20quick%20example.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CTABLE%20width%3D%22435%22%3E%0A%3CTHEAD%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22236%22%3E%3CP%3E%3CSTRONG%3ESetting%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22198%22%3E%3CP%3E%3CSTRONG%3EValue%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTHEAD%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22236%22%3E%3CP%3E%3CSTRONG%3ENode%20pricing%20tier%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22198%22%3E%3CP%3EStandard%20A1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22236%22%3E%3CP%3E%3CSTRONG%3ETarget%20dedicated%20nodes%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22198%22%3E%3CP%3E2%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EKeep%20the%20defaults%20for%20remaining%20settings%2C%20and%20select%26nbsp%3B%3CSTRONG%3EOK%3C%2FSTRONG%3E%26nbsp%3Bto%20create%20the%20pool.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EBatch%20creates%20the%20pool%20immediately%2C%20but%20it%20takes%20a%20few%20minutes%20to%20allocate%20and%20start%20the%20compute%20nodes.%20During%20this%20time%2C%20the%20pool's%26nbsp%3B%3CSTRONG%3EAllocation%20state%3C%2FSTRONG%3E%26nbsp%3Bis%26nbsp%3B%3CSTRONG%3EResizing%3C%2FSTRONG%3E.%20You%20can%20go%20ahead%20and%20create%20a%20job%20and%20tasks%20while%20the%20pool%20is%20resizing.%3C%2FP%3E%0A%3CP%3EAfter%20a%20few%20minutes%2C%20the%20allocation%20state%20changes%20to%26nbsp%3B%3CSTRONG%3ESteady%3C%2FSTRONG%3E%2C%20and%20the%20nodes%20start.%20To%20check%20the%20state%20of%20the%20nodes%2C%20select%20the%20pool%20and%20then%20select%26nbsp%3B%3CSTRONG%3ENodes%3C%2FSTRONG%3E.%20When%20a%20%26nbsp%3Bnode's%20state%20is%26nbsp%3B%3CSTRONG%3EIdle%3C%2FSTRONG%3E%2C%20it%20is%20ready%20to%20run%20tasks.%3C%2FP%3E%0A%3CP%3EPublic%20documentation%20for%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbatch%2Fquick-create-portal%23create-a-pool-of-compute-nodes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ecreating%20a%20Batch%20pool%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECreate%20Azure%20Data%20Factory%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EGo%20to%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fportal.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAzure%20portal%3C%2FA%3E.%3C%2FLI%3E%0A%3CLI%3EFrom%20the%20Azure%20portal%20menu%2C%20select%26nbsp%3B%3CSTRONG%3ECreate%20a%20resource%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3ESelect%26nbsp%3B%3CSTRONG%3EIntegration%3C%2FSTRONG%3E%2C%20and%20then%20select%26nbsp%3B%3CSTRONG%3EData%20Factory%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EOn%20the%26nbsp%3B%3CSTRONG%3ECreate%20Data%20Factory%3C%2FSTRONG%3E%26nbsp%3Bpage%2C%20under%26nbsp%3B%3CSTRONG%3EBasics%3C%2FSTRONG%3E%26nbsp%3Btab%2C%20select%20your%20Azure%26nbsp%3B%3CSTRONG%3ESubscription%3C%2FSTRONG%3E%26nbsp%3Bin%20which%20you%20want%20to%20create%20the%20data%20factory.%3C%2FLI%3E%0A%3CLI%3EFor%26nbsp%3B%3CSTRONG%3EResource%20Group%3C%2FSTRONG%3E%2C%20take%20one%20of%20the%20following%20steps%3A%3COL%3E%0A%3CLI%3ESelect%20an%20existing%20resource%20group%20from%20the%20drop-down%20list.%3C%2FLI%3E%0A%3CLI%3ESelect%26nbsp%3BCreate%20new%2C%20and%20enter%20the%20name%20of%20a%20new%20resource%20group.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EFor%20region%2C%20select%20the%20same%20region%20as%20the%20Batch%20account%20to%20avoid%20additional%20charges%20due%20to%20communication%20between%20different%20datacenters.%3C%2FLI%3E%0A%3CLI%3EFor%20Name%2C%20provide%20a%20name%20for%20your%20ADF%20and%20kindly%20note%20that%20the%20name%20must%20be%20universally%20unique.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_19-1617873894913.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271039i7AB3684901430E74%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_19-1617873894913.png%22%20alt%3D%22sathishkumartlb_19-1617873894913.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3EFor%20version%2C%20select%20v2.%3C%2FLI%3E%0A%3CLI%3ESelect%26nbsp%3B%3CSTRONG%3ENext%3A%20Git%20configuration%3C%2FSTRONG%3E%2C%20and%20then%20select%26nbsp%3B%3CSTRONG%3EConfigure%20Git%20later%3C%2FSTRONG%3E%26nbsp%3Bcheck%20box.%3C%2FLI%3E%0A%3CLI%3ESelect%26nbsp%3B%3CSTRONG%3EReview%20%2B%20create%3C%2FSTRONG%3E%20and%20select%26nbsp%3B%3CSTRONG%3ECreate%3C%2FSTRONG%3E%26nbsp%3Bafter%20the%20validation%20is%20passed.%20After%20the%20creation%20is%20complete%2C%20select%26nbsp%3B%3CSTRONG%3EGo%20to%20resource%3C%2FSTRONG%3E%26nbsp%3Bto%20navigate%20to%20the%26nbsp%3B%3CSTRONG%3EData%20Factory%3C%2FSTRONG%3E%26nbsp%3Bpage.%3C%2FLI%3E%0A%3CLI%3EBelow%20is%20an%20example%20of%20how%20a%20Azure%20Data%20Factory%20overview%20page%20looks%20like.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_20-1617873894931.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271040i2C3C6B7229D14319%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_20-1617873894931.png%22%20alt%3D%22sathishkumartlb_20-1617873894931.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3ENow%20click%20on%20%E2%80%98Author%20%26amp%3B%20Monitor%E2%80%99%20to%20open%20the%20ADF%20workspace.%3C%2FLI%3E%0A%3CLI%3EBefore%20the%20next%20step%2C%20download%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fsathishkumar-tlb%2FADF-with-batch-file%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehelloworld.exe%20file%20from%20the%20here%3C%2FA%3E%20and%20upload%20it%20to%20one%20of%20the%20containers%20in%20your%20storage%20account%20which%20is%20being%20used%20with%20the%20Batch%20account.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EPublic%20documentation%20for%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fquickstart-create-data-factory-portal%23create-a-data-factory%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ecreation%20of%20Azure%20Data%20Factory%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EConfigure%20a%20pipeline%20in%20ADF%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EIn%20the%20left-hand%20side%20options%2C%20click%20on%20%E2%80%98Author%E2%80%99.%3C%2FLI%3E%0A%3CLI%3ENow%20click%20on%20the%20%E2%80%98%2B%E2%80%99%20icon%20next%20to%20the%20%E2%80%98Filter%20resource%20by%20name%E2%80%99%20and%20select%20%E2%80%98Pipeline%E2%80%99.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_2-1617872494914.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271017i1F372891EA4588B7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_2-1617872494914.png%22%20alt%3D%22sathishkumartlb_2-1617872494914.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3ENow%20select%20%E2%80%98Batch%20Services%E2%80%99%20under%20the%20%E2%80%98Activities%E2%80%99.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_3-1617872494936.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271019iD6D6940A6076397E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_3-1617872494936.png%22%20alt%3D%22sathishkumartlb_3-1617872494936.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EChange%20the%20name%20of%20the%20%3CSTRONG%3Epipeline%3C%2FSTRONG%3E%20to%20the%20desired%20one.%3C%2FLI%3E%0A%3CLI%3EDrag%20and%20drop%20the%20%3CSTRONG%3Ecustom%3C%2FSTRONG%3E%20activity%20in%20the%20work%20area.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_4-1617872494961.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271020iB1AA0792E484020B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_4-1617872494961.png%22%20alt%3D%22sathishkumartlb_4-1617872494961.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3EUnder%20the%20%3CSTRONG%3EGeneral%3C%2FSTRONG%3E%20section%2C%20enter%20a%20%3CSTRONG%3EName%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3ENext%2C%20select%20%3CSTRONG%3EAzure%20Batch%3C%2FSTRONG%3E%20and%20select%20the%20existing%20Azure%20Batch%20Linked%20Service%20or%20create%20a%20new%20one.%3C%2FLI%3E%0A%3CLI%3ETo%20create%20an%20Azure%20Batch%20Linked%20Service%2C%20click%20on%20the%3CSTRONG%3E%20%2B%20New%3C%2FSTRONG%3E.%20Enter%20the%20details%20as%20provided%20in%20the%20below%20screenshot.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_5-1617872494972.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271018i5FF00775697B30B9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_5-1617872494972.png%22%20alt%3D%22sathishkumartlb_5-1617872494972.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%229%22%3E%0A%3CLI%3ECreate%20a%20%3CSTRONG%3EStorage%20Linked%20service%20name%3C%2FSTRONG%3E%20too%2C%20by%20selecting%20the%20%3CSTRONG%3E%2B%20New%3C%2FSTRONG%3E%20in%20the%20dropdown.%3C%2FLI%3E%0A%3CLI%3EEnter%20the%20required%20details%20to%20create%20a%20storage%20linked%20service%20name%2C%20test%20the%20connection%20to%20check%20if%20it%20succeeds%20and%20click%20on%20%3CSTRONG%3Ecreate%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_6-1617872494984.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271021i32C748EA8E2CF4C2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_6-1617872494984.png%22%20alt%3D%22sathishkumartlb_6-1617872494984.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2211%22%3E%0A%3CLI%3ENow%2C%20select%20the%20storage%20linked%20service%20name%20in%20the%20Azure%20Batch%20linked%20service%20and%20click%20on%20%3CSTRONG%3Ecreate%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3BNext%2C%20click%20on%20%3CSTRONG%3Esettings%3C%2FSTRONG%3E%20and%20enter%20the%20command%20you%20want%20to%20execute%20(in%20this%20example%2C%20we%20will%20execute%20a%20simple%20helloworld.exe%20file%20which%20will%20print%20%E2%80%98Hello%20World%E2%80%99).%3C%2FLI%3E%0A%3CLI%3ESo%2C%20in%20the%20command%20line%20type%20%E2%80%98(filename).exe%E2%80%99%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_7-1617872495012.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271022iB027159220971AB6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_7-1617872495012.png%22%20alt%3D%22sathishkumartlb_7-1617872495012.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2214%22%3E%0A%3CLI%3ESelect%20the%20storage%20account%20linked%20service%20which%20we%20created%2C%20under%20the%20%3CSTRONG%3EResource%20Linked%20service%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EUnder%20the%20%3CSTRONG%3EFolder%20path%3C%2FSTRONG%3E%2C%20select%20the%20location%20of%20the%20container%20where%20the%20%E2%80%98helloworld.exe%E2%80%99%20file%20is%20present%20by%20clicking%20on%20%3CSTRONG%3EBrowse%20storage%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_8-1617872495057.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271023i624CFF3FA5B922C3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_8-1617872495057.png%22%20alt%3D%22sathishkumartlb_8-1617872495057.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2216%22%3E%0A%3CLI%3EThen%20click%20on%20%3CSTRONG%3EValidate%3C%2FSTRONG%3E%20to%20check%20for%20any%20errors%20in%20the%20configuration.%3C%2FLI%3E%0A%3CLI%3EFinally%2C%20click%20on%20%3CSTRONG%3EDebug%3C%2FSTRONG%3E%20to%20run%20the%20pipeline%20while%20will%20create%20a%20job%20in%20the%20Azure%20batch%20pool%20and%20execute%20the%20%3CSTRONG%3Ecommand%20line%3C%2FSTRONG%3E%20as%20a%20%3CSTRONG%3Etask%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3ENote%3A%20We%20are%20currently%20checking%20the%20pipeline%20without%20publishing%20it.%20So%20once%20the%20pipeline%20succeeds%20make%20sure%20to%20click%20on%20%3CSTRONG%3EPublish%20All%3C%2FSTRONG%3E%20else%20all%20these%20configuration%20will%20be%20lost.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECheck%20the%20Job%20status%20in%20Azure%20Batch%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ENavigate%20to%20the%20corresponding%20Batch%20account%20and%20click%20on%20%3CSTRONG%3EJobs%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EClick%20on%20the%20recently%20created%20Job%20and%20open%20the%20task%20which%20had%20run%20under%20it.%3C%2FLI%3E%0A%3CLI%3ECheck%20for%20the%20successful%20Job%20completion%20by%20opening%20the%20%3CSTRONG%3Estdout.txt%3C%2FSTRONG%3E%20file%20which%20will%20contain%20the%20output.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_9-1617872495097.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271024i0E896B1FFB0FC981%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_9-1617872495097.png%22%20alt%3D%22sathishkumartlb_9-1617872495097.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EThe%20output%20is%20displayed%20in%20the%20stdout.txt%20file%20for%20us.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sathishkumartlb_10-1617872495134.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F271025i0F9ED82FD4C4B5D2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22sathishkumartlb_10-1617872495134.png%22%20alt%3D%22sathishkumartlb_10-1617872495134.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EWe%20have%20now%20configured%20a%20simple%20Batch%20job%20using%20ADF%20pipeline%20and%20verified%20the%20output%20successfully.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThank%20you%20for%20following%20the%20steps%2C%20I%20hope%20the%20blog%20was%20useful%20and%20kindly%20provide%20any%20comments%20based%20on%20your%20view%20or%20if%20any%20additional%20information%20needs%20to%20be%20included.%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20try%20out%20a%20different%20execution%20of%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbatch%2Ftutorial-run-python-batch-azure-data-factory%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20batch%20with%20Azure%20Data%20Factory%20using%20a%20python%20script%20file%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Apr 08 2021 02:34 AM
Updated by: