简体   繁体   中英

Write/Debug Azure Automation Runbook in PowerShell ISE

I am trying to write a Runbook (PowerShell Workflow) for Microsoft Azure Automation using the PowerShell ISE. There are certain commands that are not available in the PowerShell ISE, that are exclusively available inside of the Azure Automation environment.

  • Get-AutomationVariable
  • Get-AutomationConnection
  • Get-AutomationPSCredential
  • Get-AutomationCertificate
  • Set-AutomationVariable

There is a blog post (I still can't find any reference documentation ) on how to fake (emulate) the exclusive Azure Automation commands using the Emulated Automation Activities PowerShell module, available for download from the TechNet Gallery . However, this article requires that you install the Service Management Automation (SMA) component that is included with Microsoft System Center 2012 R2 Orchestrator.

Since I am trying to develop a Runbook for Azure Automation, I do not have any need to install SMA. How do I write/debug an Azure Automation Runbook from PowerShell ISE without having to install SMA locally?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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