简体   繁体   English

将Powershell脚本作为微服务运行

[英]Run powershell script as microservice

Is it possible to make my powershell script, run as a microservice? 是否可以使我的powershell脚本作为微服务运行?

Param(
    $a,
    $b
)

$x = [int]$a + [int]$b

echo $x

Actually, you should take a look at Azure Functions, they achieve exactly that what you want and they support PowerShell/ 实际上,您应该看一下Azure函数,它们可以完全实现所需的功能,并且支持PowerShell /

https://david-obrien.net/2016/07/azure-functions-PowerShell/ https://david-obrien.net/2016/07/azure-functions-PowerShell/

https://azure.microsoft.com/en-us/services/functions/ https://azure.microsoft.com/zh-cn/services/functions/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM