Share via


Publishing a Runbook

 

Updated: May 13, 2016

Applies To: Windows Azure Pack for Windows Server

Each runbook in Service Management Automation has a Draft and a Published version. Only the Published version is available to be run, and only the Draft version can be edited. The Published version is unaffected by any changes to the Draft version. When the Draft version should be made available, then you publish it which overwrites the Published version with the Draft version.

To Publish a Runbook Using the management portal

  1. Select the Automation workspace.

  2. At the top of the screen, select Runbooks.

  3. Locate the runbook to edit and click on its name.

  4. At the top of the screen, click Author.

  5. Click Draft.

  6. At the bottom of the screen, click Publish.

  7. Click Yes to the verification message.

To Publish a Runbook in Service Management Automation Using Windows PowerShell

You can use the Publish-SmaRunbook to publish a runbook with Windows PowerShell. The following sample commands show how to publish a runbook.

$webServer = 'https://MyServer'  
$port = 9090  
$runbookPath = 'c:\runbooks\Sample-TestRunbook.ps1'  
$runbookName = 'Test-Runbook'  
  
Publish-SmaRunbook –WebServiceEndpoint $webServer –Port $port –Name $runbookName  

See Also

Service Management Automation
Authoring Automation Runbooks
Creating or Importing a Runbook
Editing a Runbook