|
1 | 1 | ---
|
2 | 2 | title: Azure Automation extension for Visual Studio Code
|
3 | 3 | description: Learn how to use the Azure Automation extension for Visual Studio Code to author runbooks.
|
4 |
| -ms.date: 12/18/2022 |
| 4 | +ms.date: 01/06/2023 |
5 | 5 | ms.topic: how-to
|
6 | 6 | ---
|
7 | 7 |
|
8 |
| - |
9 | 8 | # Use Azure Automation extension for Visual Studio Code
|
10 | 9 |
|
11 | 10 | This article explains about the Visual Studio that you can use to create and manage runbooks. You can perform all runbook management operations such as creating runbooks, editing runbook, triggering a job, tracking recent jobs outputs, linking a schedule and asset management.
|
@@ -73,7 +72,7 @@ To run the Automation job, follow these steps:
|
73 | 72 | 1. In Automation account, select the runbook.
|
74 | 73 | 1. Right click and select **Start Automation job** to run the Automation job.
|
75 | 74 |
|
76 |
| - :::image type="content" source="media/runbook-authoring-extension-for-vscode/start-automation-job-inline.png" alt-text="Screenshot on how to run local version of job using the Azure Automation extension." lightbox="media/runbook-authoring-extension-for-vscode/start-automation-job-expanded.png"::: |
| 75 | + :::image type="content" source="media/runbook-authoring-extension-for-vscode/start-automation-job-inline.png" alt-text="Screenshot on how to run Automation job using the Azure Automation extension." lightbox="media/runbook-authoring-extension-for-vscode/start-automation-job-expanded.png"::: |
77 | 76 |
|
78 | 77 | ### Add new webhook
|
79 | 78 |
|
@@ -107,6 +106,21 @@ To add a webhook to the runbook, follow these steps:
|
107 | 106 |
|
108 | 107 | A notification appears that the variable is created, you can view the new variable in **fx Variables** option.
|
109 | 108 |
|
| 109 | +### Run local in debug mode |
| 110 | +1. In Automation account, go to **Runbooks** and select a runbook. |
| 111 | +1. In the edit pane, add the break point. |
| 112 | +1. Right click on the runbook and select **Run local in Debug Mode**. |
| 113 | + |
| 114 | + :::image type="content" source="media/runbook-authoring-extension-for-vscode/run-local-debug-mode-inline.png" alt-text="Screenshot that shows the running of local runbook in debug mode." lightbox="media/runbook-authoring-extension-for-vscode/add-new-webhook-expanded.png"::: |
| 115 | + |
| 116 | +### Compare local runbook |
| 117 | +1. In Automation account, go to **Runbooks** and select a runbook |
| 118 | +1. Right click on the runbook and select **Compare local runbook**. |
| 119 | +1. In the edit pane, you will see the information in two layouts - runbook copy and published/draft copy. |
| 120 | + >[!NOTE] |
| 121 | + >If the runbook is **InEdit** mode, you will have to select either the Compare Published content or Compare Draft content to compare. |
| 122 | + |
| 123 | + :::image type="content" source="media/runbook-authoring-extension-for-vscode/compare-local-runbook-inline.png" alt-text="Screenshot that shows how to compare local runbook." lightbox="media/runbook-authoring-extension-for-vscode/compare-local-runbook-expanded.png"::: |
110 | 124 |
|
111 | 125 | ## Next steps
|
112 | 126 |
|
|
0 commit comments