首页 文章

在PowerShell ISE中编写/调试Azure自动化Runbook

提问于
浏览
4

我正在尝试使用PowerShell ISE为Microsoft Azure Automation编写Runbook(PowerShell工作流) . PowerShell ISE中缺少某些命令,这些命令仅在Azure自动化环境中可用 .

  • Get-AutomationVariable

  • Get-AutomationConnection

  • Get-AutomationPSCredential

  • Get-AutomationCertificate

  • Set-AutomationVariable

有一个blog post(我仍然找不到任何参考文档)关于如何使用模拟自动化活动PowerShell模块伪造(模拟)独有的Azure自动化命令,该模块可从TechNet Gallery下载 . 但是,本文要求您安装Microsoft System Center 2012 R2 Orchestrator附带的Service Management Automation(SMA)组件 .

由于我正在尝试开发Runbook for Azure Automation,因此我无需安装SMA . 如何从PowerShell ISE编写/调试Azure自动化Runbook而无需在本地安装SMA?

1 回答

相关问题