Share via

Azure Batch not Running PowerShell File

William Donofrio (US - IFS) 96 Reputation points
2021-06-15T15:28:43.547+00:00

See Pipeline run ID c4b981c2-9b04-4ea3-937e-1e7f55e8630a. I am running the below script in Powershell though the Custom activity in Azure Data Factory.

echo "Hello World"

The connection to Azure Batch is showing successful.

Furthermore, I have tested the exact same script in a different environment without any issues.

It appears that Data Factory is not finding the script in the BLOB storage account.

Below is the error message.

Error code
2010
Troubleshooting guide
Failure type
User configuration issue
Details
Hit unexpected exception, please retry. If the problem persists, please contact Azure Support"
Source
Pipeline
Test Batch

Are you able to run a Custom activity in "Debug" mode? Do you need certain permissions setup? In one environment, I have full administrative permission but limited permissions in the one causing the error. How do I resolve this?

Azure Batch
Azure Batch

An Azure service that provides cloud-scale job scheduling and compute management.

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


Answer accepted by question author

William Donofrio (US - IFS) 96 Reputation points
2021-06-16T13:33:53.763+00:00

I changed the below settings in the pools in Azure Batch and it now works.

Publisher - microsoftwindowsserver
Offer - windowsserver
Sku - 2019-datacenter-core-smalldisk

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.