运行 作为微服务的 powershell 脚本

Run powershell script as microservice

是否可以将我的 powershell 脚本 运行 作为微服务?

Param(
    $a,
    $b
)

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

echo $x

实际上,您应该看看 Azure Functions,它们完全符合您的要求,并且支持 PowerShell/

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

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