Skip to content

Commit a085c7d

Browse files
authored
Small spacing update to Tutorial: Create a PowerShell runbook
Updated capitalization and spacing in Tutorial: Create a PowerShell runbook doc to be more consistent with PowerShell spacing
1 parent 5ade5bb commit a085c7d

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

articles/automation/learn/automation-tutorial-runbook-textual-powershell.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: tutorial
99
---
1010
# Tutorial: Create a PowerShell runbook
1111

12-
This tutorial walks you through the creation of a [PowerShell runbook](../automation-runbook-types.md#powershell-runbooks) in Azure Automation. PowerShell runbooks are based on Windows PowerShell. You directly edit the code of the runbook using the text editor in the Azure portal.
12+
This tutorial walks you through the creation of a [PowerShell runbook](../automation-runbook-types.md#powershell-runbooks) in Azure Automation. PowerShell runbooks are based on Windows PowerShell. You can directly edit the code of the runbook using the text editor in the Azure portal.
1313

1414
> [!div class="checklist"]
1515
> * Create a simple PowerShell runbook
@@ -138,15 +138,15 @@ As shown in the example below, the Run As connection is made with the [Connect-A
138138
139139
# Wrap authentication in retry logic for transient network failures
140140
$logonAttempt = 0
141-
while(!($connectionResult) -And ($logonAttempt -le 10))
141+
while(!($connectionResult) -and ($logonAttempt -le 10))
142142
{
143143
$LogonAttempt++
144144
# Logging in to Azure...
145-
$connectionResult = Connect-AzAccount `
146-
-ServicePrincipal `
147-
-Tenant $connection.TenantID `
148-
-ApplicationId $connection.ApplicationID `
149-
-CertificateThumbprint $connection.CertificateThumbprint
145+
$connectionResult = Connect-AzAccount `
146+
-ServicePrincipal `
147+
-Tenant $connection.TenantID `
148+
-ApplicationId $connection.ApplicationID `
149+
-CertificateThumbprint $connection.CertificateThumbprint
150150
151151
Start-Sleep -Seconds 30
152152
}
@@ -168,15 +168,15 @@ As shown in the example below, the Run As connection is made with the [Connect-A
168168
169169
$connection = Get-AutomationConnection -Name AzureRunAsConnection
170170
171-
while(!($connectionResult) -And ($logonAttempt -le 10))
171+
while(!($connectionResult) -and ($logonAttempt -le 10))
172172
{
173173
$LogonAttempt++
174174
# Logging in to Azure...
175-
$connectionResult = Connect-AzAccount `
176-
-ServicePrincipal `
177-
-Tenant $connection.TenantID `
178-
-ApplicationId $connection.ApplicationID `
179-
-CertificateThumbprint $connection.CertificateThumbprint
175+
$connectionResult = Connect-AzAccount `
176+
-ServicePrincipal `
177+
-Tenant $connection.TenantID `
178+
-ApplicationId $connection.ApplicationID `
179+
-CertificateThumbprint $connection.CertificateThumbprint
180180
181181
Start-Sleep -Seconds 30
182182
}
@@ -199,15 +199,15 @@ Now that your runbook is authenticating to your Azure subscription, you can mana
199199
Disable-AzContextAutosave –Scope Process
200200
201201
$connection = Get-AutomationConnection -Name AzureRunAsConnection
202-
while(!($connectionResult) -And ($logonAttempt -le 10))
202+
while(!($connectionResult) -and ($logonAttempt -le 10))
203203
{
204204
$LogonAttempt++
205205
# Logging in to Azure...
206-
$connectionResult = Connect-AzAccount `
207-
-ServicePrincipal `
208-
-Tenant $connection.TenantID `
209-
-ApplicationId $connection.ApplicationID `
210-
-CertificateThumbprint $connection.CertificateThumbprint
206+
$connectionResult = Connect-AzAccount `
207+
-ServicePrincipal `
208+
-Tenant $connection.TenantID `
209+
-ApplicationId $connection.ApplicationID `
210+
-CertificateThumbprint $connection.CertificateThumbprint
211211
212212
Start-Sleep -Seconds 30
213213
}
@@ -234,15 +234,15 @@ Your runbook currently starts the virtual machine that you hard-coded in the run
234234
Disable-AzContextAutosave –Scope Process
235235
236236
$connection = Get-AutomationConnection -Name AzureRunAsConnection
237-
while(!($connectionResult) -And ($logonAttempt -le 10))
237+
while(!($connectionResult) -and ($logonAttempt -le 10))
238238
{
239239
$LogonAttempt++
240240
# Logging in to Azure...
241-
$connectionResult = Connect-AzAccount `
242-
-ServicePrincipal `
243-
-Tenant $connection.TenantID `
244-
-ApplicationId $connection.ApplicationID `
245-
-CertificateThumbprint $connection.CertificateThumbprint
241+
$connectionResult = Connect-AzAccount `
242+
-ServicePrincipal `
243+
-Tenant $connection.TenantID `
244+
-ApplicationId $connection.ApplicationID `
245+
-CertificateThumbprint $connection.CertificateThumbprint
246246
247247
Start-Sleep -Seconds 30
248248
}

0 commit comments

Comments
 (0)