Skip to content

Commit 4642513

Browse files
authored
Merge pull request #108146 from BethWilke/task123
Fixing images
2 parents d1b90bc + 8341f83 commit 4642513

26 files changed

+13
-7
lines changed

articles/automation/automation-first-runbook-graphical.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ Before you publish the runbook to make it available in production, you should te
7272

7373
The job status starts as `Queued`, indicating that the job is waiting for a runbook worker in the cloud to become available. The status changes to `Starting` when a worker claims the job. Finally, the status becomes `Running` when the runbook actually starts to run.
7474

75-
1. When the runbook job completes, the Test pane displays its output. In this case, you see `Hello World`.<br> ![Hello World](media/automation-first-runbook-graphical/runbook-test-results.png)
75+
1. When the runbook job completes, the Test pane displays its output. In this case, you see `Hello World`.
76+
77+
![Hello World](media/automation-first-runbook-graphical/runbook-test-results.png)
7678
1. Close the Test pane to return to the canvas.
7779

7880
## Step 4 - Publish and start the runbook
@@ -152,9 +154,9 @@ Now that you have a variable to hold the subscription ID, you can configure the
152154
1. The `Set-AzContext` cmdlet has multiple parameter sets, and you need to select one before providing parameter values. Click **Parameter Set** and then select **SubscriptionId**.
153155
1. The parameters for this parameter set are displayed on the Activity Parameter Configuration page. Click **SubscriptionID**.
154156
1. On the Parameter Value page, select **Variable Asset** for the **Data source** field and select **AzureSubscriptionId** from the source list. When finished, click **OK** twice.
155-
1. Hover over `Login to Azure` until a circle appears on the bottom of the shape. Click the circle and drag the arrow to `Specify Subscription Id`.
157+
1. Hover over `Login to Azure` until a circle appears on the bottom of the shape. Click the circle and drag the arrow to `Specify Subscription Id`. Your runbook should look like the following at this point.
156158

157-
Your runbook should look like the following at this point: <br>![Runbook authentication configuration](media/automation-first-runbook-graphical/runbook-auth-config.png)
159+
![Runbook authentication configuration](media/automation-first-runbook-graphical/runbook-auth-config.png)
158160

159161
## Step 7 - Add activity to start a virtual machine
160162

@@ -168,9 +170,9 @@ Now you must add a `Start-AzVM` activity to start a virtual machine. You can pic
168170
1. Select **Name**. Choose **PowerShell expression** for the **Data source** field. For the VM that you use to start this runbook, type in the machine name surrounded with double quotes. Click **OK**.
169171
1. Select **ResourceGroupName**. Use the value **PowerShell expression** for the **Data source** field, and type in the name of the resource group surrounded with double quotes. Click **OK**.
170172
1. Click **Test pane** so that you can test the runbook.
171-
1. Click **Start** to begin the test. Once it completes, make sure that the VM has started.
173+
1. Click **Start** to begin the test. Once it completes, make sure that the VM has started. Your runbook should look like the following at this point.
172174

173-
Your runbook should look like the following at this point: <br>![Runbook authentication configuration](media/automation-first-runbook-graphical/runbook-startvm.png)
175+
![Runbook authentication configuration](media/automation-first-runbook-graphical/runbook-startvm.png)
174176

175177
## Step 8 - Add additional input parameters
176178

@@ -224,7 +226,9 @@ You can now modify the runbook so that it only attempts to start the VM if it is
224226
$StatusOut
225227
```
226228
227-
1. Create a link from `Get Status` to `Start-AzVM`.<br> ![Runbook with Code Module](media/automation-first-runbook-graphical/runbook-startvm-get-status.png)
229+
1. Create a link from `Get Status` to `Start-AzVM`.
230+
231+
![Runbook with Code Module](media/automation-first-runbook-graphical/runbook-startvm-get-status.png)
228232
1. Select the link and, in the Configuration pane, change **Apply condition** to **Yes**. Note that the link becomes a dashed line, indicating that the target activity only runs if the condition resolves to true.
229233
1. For **Condition expression**, type `$ActivityOutput['Get Status'] -eq "Stopped"`. `Start-AzVM` now only runs if the VM is stopped.
230234
1. In the Library control, expand **Cmdlets** and then **Microsoft.PowerShell.Utility**.
@@ -237,7 +241,9 @@ You can now modify the runbook so that it only attempts to start the VM if it is
237241
1. Select the link to `Notify VM Started` and change **Apply condition** to true.
238242
1. For the **Condition expression**, type `$ActivityOutput['Start-AzVM'].IsSuccessStatusCode -eq $true`. This `Write-Output` control now only runs if the VM starts successfully.
239243
1. Select the link to `Notify VM Start Failed` and change **Apply condition** to true.
240-
1. For the **Condition expression** field, type `$ActivityOutput['Start-AzVM'].IsSuccessStatusCode -ne $true`. This `Write-Output` control now only runs if the VM is not successfully started. Your runbook should look like the following image: <br> ![Runbook with Write-Output](media/automation-first-runbook-graphical/runbook-startazurermvm-complete.png)
244+
1. For the **Condition expression** field, type `$ActivityOutput['Start-AzVM'].IsSuccessStatusCode -ne $true`. This `Write-Output` control now only runs if the VM is not successfully started. Your runbook should look like the following image.
245+
246+
![Runbook with Write-Output](media/automation-first-runbook-graphical/runbook-startazurermvm-complete.png)
241247
1. Save the runbook and open the Test pane.
242248
1. Start the runbook with the VM stopped, and the machine should start.
243249
11.9 KB
Loading
2.73 KB
Loading
-1.19 KB
Loading
1.51 KB
Loading
2.79 KB
Loading
-2.44 KB
Loading
-18.1 KB
Loading
8.95 KB
Loading
6.73 KB
Loading

0 commit comments

Comments
 (0)