.net - 如何将脚本 Powershell 调用到我的后端 .net 核心?
问题描述
如何在后端 .netcore 中调用脚本 PowerShell?例如,当我单击但我运行脚本 PowerShell 以通过模板将 VM 构建为天蓝色时?
我需要那个研讨会的解决方案。
谢谢。
。网
解决方案
Azure Functions 支持 Powershell。您所要做的就是调用 Azure Functions 端点,它将执行代码来构建 VM。
https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-powershell?tabs=portal
推荐阅读
- mysql - 在链接表中检索具有多个匹配项的记录
- pycharm - 一键运行两个脚本/配置
- angular - 如何使用 Injector.get(ActivatedRoute) 检索路由参数?
- azure - 如何使用 Runbook 执行存储在 Azure 存储中的 Powershell
- c++ - C++ - 在链表中插入而不使用节点的构造函数。可能吗?
- flutter - 获取 TextFormField 的 InputDecoration 标签的默认主题
- c# - 如何更改母版页导航栏中活动页面的链接颜色。ASP.NET
- android - MediaPlayer 在睡眠模式下几分钟后停止播放来自互联网的音乐
- assembly - IA-64 架构中的寄存器名称是什么?
- logging - 每分钟在 access.log 中打印的行数