Search code examples
azureazure-batch

How to pass application path to task in Azure batch


I am using Azure batch. I have an exe which I need to execute on compute nodes.

I am using this path in the azure portal in my task window "cmd /c %AZ_BATCH_APP_PACKAGE_MyAppCreateRG%\CreateRG.exe -args HelloRG eastUs"

But I am getting an error: The system cannot find the path specified.


Solution

  • As an alternative i am able to execute powershell script instead of exe

    powershell C:\Scripts\CreateRG.ps1 -resourceGroup "MyRG" -location "eastUs"