从 Azure Web 作业调用 Powershell 脚本
Call Powershell script from Azure Web Job
我需要从 Azure Web 作业安装和调用 Powershell 脚本。 Powershell 脚本随后将调用基于 java 的命令行工具。
而且,在 Azure 环境中,我怎么知道文件(Powershell 和 Java)的路径是什么?
我在想这样的事情:
private static void CallPowershell([QueueTrigger("queueName")CloudQueueMessage, TextWriter log)
{
Process.Start("/pathToFile.ps");
}
谢谢。
运行 WebJobs 中的 PowerShell 脚本是原生的,但这里有一个 post 如何完成它。
挑战在于如何使 PowerShell 运行 成为 Java 代码。
我需要从 Azure Web 作业安装和调用 Powershell 脚本。 Powershell 脚本随后将调用基于 java 的命令行工具。
而且,在 Azure 环境中,我怎么知道文件(Powershell 和 Java)的路径是什么?
我在想这样的事情:
private static void CallPowershell([QueueTrigger("queueName")CloudQueueMessage, TextWriter log)
{
Process.Start("/pathToFile.ps");
}
谢谢。
运行 WebJobs 中的 PowerShell 脚本是原生的,但这里有一个 post 如何完成它。
挑战在于如何使 PowerShell 运行 成为 Java 代码。