You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/automation/automation-edit-textual-runbook.md
+13-14Lines changed: 13 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.service: automation
6
6
ms.component: process-automation
7
7
author: georgewallace
8
8
ms.author: gwallace
9
-
ms.date: 04/02/2018
9
+
ms.date: 08/01/2018
10
10
ms.topic: conceptual
11
11
manager: carmonm
12
12
---
@@ -58,34 +58,33 @@ Use the following procedure to open a runbook for editing in the textual editor.
58
58
59
59
## To edit an Azure Automation runbook using Windows PowerShell
60
60
61
-
To edit a runbook with Windows PowerShell, you use the editor of your choice and save it to a .ps1 file. You can use the [Get-AzureAutomationRunbookDefinition](http://aka.ms/runbookauthor/cmdlet/getazurerunbookdefinition) cmdlet to retrieve the contents of the runbook and then [Set-AzureAutomationRunbookDefinition](http://aka.ms/runbookauthor/cmdlet/setazurerunbookdefinition) cmdlet to replace the existing draft runbook with the modified one.
61
+
To edit a runbook with Windows PowerShell, you use the editor of your choice and save it to a .ps1 file. You can use the [Export-AzureRmAutomationRunbook](/powershell/module/AzureRM.Automation/Export-AzureRmAutomationRunbook) cmdlet to retrieve the contents of the runbook and then [Import-AzureRmAutomationRunbook](/powershell/module/AzureRM.Automation/import-azurermautomationrunbook) cmdlet to replace the existing draft runbook with the modified one.
62
62
63
63
### To Retrieve the Contents of a Runbook Using Windows PowerShell
64
64
65
65
The following sample commands show how to retrieve the script for a runbook and save it to a script file. In this example, the Draft version is retrieved. It is also possible to retrieve the Published version of the runbook although this version cannot be changed.
### To Change the Contents of a Runbook Using Windows PowerShell
79
77
80
78
The following sample commands show how to replace the existing contents of a runbook with the contents of a script file. Note that this is the same sample procedure as in [To import a runbook from a script file with Windows PowerShell](automation-creating-importing-runbook.md).
0 commit comments