如何在Azure批处理中将应用程序路径传递给任务 [英] How to pass application path to task in Azure batch

查看:72
本文介绍了如何在Azure批处理中将应用程序路径传递给任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure批处理。我有一个需要在计算节点上执行的exe文件。 CreateRG.exe -args HelloRG eastUs



但是我收到一个错误消息:系统找不到指定的路径。

解决方案

作为替代方案,我能够执行Powershell脚本而不是exe



powershell C:\脚本\CreateRG.ps1 -resourceGroup MyRG-位置 eastUs


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.

解决方案

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

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

这篇关于如何在Azure批处理中将应用程序路径传递给任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆