如何使用Powershell部署Runbook PowerShell代码? [英] How to deploy Runbook PowerShell code with Powershell?

查看:126
本文介绍了如何使用Powershell部署Runbook PowerShell代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Az创建了Automation,Schedules和Runbook。

I have created Automation, Schedules and Runbook with Az.

接下来我想部署实际的PowerShell脚本,这些脚本可以实现自动化。到目前为止,我已经在Azure门户中进行了编辑。接下来我想用脚本做。还希望在部署Runbook内容后发布Runbook。

Next I would like to deploy actual PowerShell scripts that does magic for automation. So far I have done edit in Azure portal. Next I would like to do with script. Also would like to publish runbook after deploying runbook content.

Kenny_I

推荐答案

嗨Kenny

Hi Kenny

我认为您正在尝试使用自己的Powershell脚本创建Runbook并发布它。如果是,这是  < a href ="https://docs.microsoft.com/en-us/powershell/module/az.automation/?view=azps-2.1.0#automation"> link 功能$ z $ b的Az PowerShell命令可以帮助您自动创建Runbook,导入PowerShell脚本以及发布它们。

I think you were trying to create runbook with your own Powershell script and publish it.If yes, here is the link  for Az PowerShell commands that might help you to automate the process of creating runbook,import PowerShell scripts and also publish them.


这篇关于如何使用Powershell部署Runbook PowerShell代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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