Skip to content

Commit e9180cd

Browse files
Merge pull request #111476 from BethWilke/branch117
Fixing documentation task 1707212
2 parents 7477306 + 0d4ca02 commit e9180cd

11 files changed

+134
-131
lines changed

articles/automation/automation-edit-textual-runbook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ Publish-AzAutomationRunbook -Name $runbookName -AutomationAccountName $automatio
100100
* [Credentials](automation-credentials.md)
101101
* [Schedules](automation-schedules.md)
102102
* [Variables](automation-variables.md)
103-
103+
* [PowerShell cmdlet reference](https://docs.microsoft.com/powershell/module/az.automation/?view=azps-3.7.0#automation)

articles/automation/automation-faq.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,44 @@ ms.date: 02/25/2020
1414

1515
This Microsoft FAQ is a list of commonly asked questions about Azure Automation. If you have any additional questions about its capabilities, go to the discussion forum and post your questions. When a question is frequently asked, we add it to this article so that it can be found quickly and easily.
1616

17+
>[!NOTE]
18+
>This article has been updated to use the new Azure PowerShell Az module. You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. To learn more about the new Az module and AzureRM compatibility, see [Introducing the new Azure PowerShell Az module](https://docs.microsoft.com/powershell/azure/new-azureps-module-az?view=azps-3.5.0). For Az module installation instructions on your Hybrid Runbook Worker, see [Install the Azure PowerShell Module](https://docs.microsoft.com/powershell/azure/install-az-ps?view=azps-3.5.0). For your Automation account, you can update your modules to the latest version using [How to update Azure PowerShell modules in Azure Automation](automation-update-azure-modules.md).
19+
1720
## Update Management solution
1821

1922
### Can I prevent unexpected OS-level upgrades?
2023

21-
On some Linux variants, such as Red Hat Enterprise Linux, OS-level upgrades might occur through packages. This might lead to Update Management runs where the OS version number changes. Because Update Management uses the same methods to update packages that an administrator would use locally on the Linux machine, this behavior is intentional.
24+
On some Linux variants, such as Red Hat Enterprise Linux, OS-level upgrades might occur through packages. This might lead to Update Management runs in which the OS version number changes. Because Update Management uses the same methods to update packages that an administrator uses locally on a Linux machine, this behavior is intentional.
2225

2326
To avoid updating the OS version through Update Management deployments, use the **Exclusion** feature.
2427

25-
In Red Hat Enterprise Linux, the package name to exclude is redhat-release-server.x86_64.
28+
In Red Hat Enterprise Linux, the package name to exclude is `redhat-release-server.x86_64`.
2629

2730
### Why aren't critical/security updates applied?
2831

29-
When you deploy updates to a Linux machine, you can select update classifications. This option filters the updates that are applied to the machine that meet the specified criteria. This filter is applied locally on the machine when the update is deployed.
32+
When you deploy updates to a Linux machine, you can select update classifications. This option filters the updates that meet the specified criteria. This filter is applied locally on the machine when the update is deployed.
3033

31-
Because Update Management performs update enrichment in the cloud, some updates can be flagged in Update Management as having a security impact, even though the local machine doesn't have that information. As a result, if you apply critical updates to a Linux machine, there might be updates that aren't marked as having a security impact on that machine and therefore the updates aren't applied. However, Update Management might still report that machine as non-compliant because it has additional information about the relevant update.
34+
Because Update Management performs update enrichment in the cloud, you can flag some updates in Update Management as having a security impact, even though the local machine doesn't have that information. If you apply critical updates to a Linux machine, there might be updates that aren't marked as having a security impact on that machine and therefore aren't applied. However, Update Management might still report that machine as noncompliant because it has additional information about the relevant update.
3235

33-
Deploying updates by update classification doesn't work on RTM versions of CentOS. To properly deploy updates for CentOS, select all classifications to make sure updates are applied. For SUSE, selecting *only* **Other updates** as the classification can cause some security updates to also be installed if security updates related to zypper (package manager) or its dependencies are required first. This behavior is a limitation of zypper. In some cases, you might be required to rerun the update deployment. To verify, check the update log.
36+
Deploying updates by update classification doesn't work on RTM versions of CentOS. To properly deploy updates for CentOS, select all classifications to make sure updates are applied. For SUSE, selecting ONLY **Other updates** as the classification can cause some additional security updates to be installed if security updates related to zypper (package manager) or its dependencies are required first. This behavior is a limitation of zypper. In some cases, you might be required to rerun the update deployment and then verify the deployment through the update log.
3437

3538
### Can I deploy updates across Azure tenants?
3639

37-
If you have machines in another Azure tenant reporting to Update Management that you need to patch, you'll have to use the following workaround to get them scheduled. You can use the [New-AzureRmAutomationSchedule](/powershell/module/azurerm.automation/new-azurermautomationschedule) cmdlet with the `-ForUpdate` switch to create a schedule, and use the [New-AzureRmAutomationSoftwareUpdateConfiguration](/powershell/module/azurerm.automation/new-azurermautomationsoftwareupdateconfiguration
38-
) cmdlet and pass the machines in the other tenant to the `-NonAzureComputer` parameter. The following example shows how to do this:
40+
If you have machines that need patching in another Azure tenant reporting to Update Management, you must use a following workaround to get them scheduled. You can use the [New-AzAutomationSchedule](https://docs.microsoft.com/powershell/module/Az.Automation/New-AzAutomationSchedule?view=azps-3.7.0) cmdlet with the `ForUpdateConfiguration` parameter specified to create a schedule. You can use the [New-AzAutomationSoftwareUpdateConfiguration](https://docs.microsoft.com/powershell/module/Az.Automation/New-AzAutomationSoftwareUpdateConfiguration?view=azps-3.7.0) cmdlet and pass the machines in the other tenant to the `NonAzureComputer` parameter. The following example shows how to do this.
3941

4042
```azurepowershell-interactive
4143
$nonAzurecomputers = @("server-01", "server-02")
4244
4345
$startTime = ([DateTime]::Now).AddMinutes(10)
4446
45-
$sched = New-AzureRmAutomationSchedule -ResourceGroupName mygroup -AutomationAccountName myaccount -Name myupdateconfig -Description test-OneTime -OneTime -StartTime $startTime -ForUpdate
47+
$sched = New-AzAutomationSchedule -ResourceGroupName mygroup -AutomationAccountName myaccount -Name myupdateconfig -Description test-OneTime -OneTime -StartTime $startTime -ForUpdateConfiguration
4648
47-
New-AzureRmAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg -AutomationAccountName <automationAccountName> -Schedule $sched -Windows -NonAzureComputer $nonAzurecomputers -Duration (New-TimeSpan -Hours 2) -IncludedUpdateClassification Security,UpdateRollup -ExcludedKbNumber KB01,KB02 -IncludedKbNumber KB100
49+
New-AzAutomationSoftwareUpdateConfiguration -ResourceGroupName $rg -AutomationAccountName <automationAccountName> -Schedule $sched -Windows -NonAzureComputer $nonAzurecomputers -Duration (New-TimeSpan -Hours 2) -IncludedUpdateClassification Security,UpdateRollup -ExcludedKbNumber KB01,KB02 -IncludedKbNumber KB100
4850
```
4951

5052
## Next steps
5153

52-
If your question isn't answered here, you can refer to the following forum for additional questions and answers.
54+
If your question isn't answered here, you can refer to the following sources for additional questions and answers.
5355

5456
- [Azure Automation](https://social.msdn.microsoft.com/Forums/home?forum=azureautomation&filter=alltypes&sort=lastpostdesc)
55-
56-
For general feedback about the Update Management solution, please visit the [feedback forum](https://feedback.azure.com/forums/905242-update-management).
57+
- [Feedback forum](https://feedback.azure.com/forums/905242-update-management)

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The runbook that you have created is still in Draft mode. It needs to be publish
9494
1. Click **All Logs** to open the Streams pane for the runbook job. You should only see `Hello World` in the output stream.
9595

9696
Note that the Streams pane can show other streams for a runbook job, such as Verbose and Error streams, if the runbook writes to them.
97-
1. Close the Streams pane and the Job pane to return to the **MyFirstRunbook-Graphical** page.
97+
1. Close the Streams pane and the Job pane to return to the MyFirstRunbook-Graphical page.
9898
1. To view all the jobs for the runbook, select **Jobs** under **Resources**. The Jobs page lists all the jobs created by your runbook. You should see only one job listed, since you have only run the job once.
9999
1. Click the job name to open the same Job pane that you viewed when you started the runbook. Use this pane to view the details of any job created for the runbook.
100100

@@ -120,7 +120,7 @@ Now that you have a variable to hold the subscription ID, you can configure the
120120
>[!NOTE]
121121
>For PowerShell runbooks, `Add-AzAccount` and `Add-AzureRMAccount` are aliases for `Connect-AzAccount`. Note that these aliases are not available for your graphical runbooks. A graphical runbook can only use `Connect-AzAccount`itself.
122122
123-
1. Navigate to your runbook and select **Edit** on the **MyFirstRunbook-Graphical** page.
123+
1. Navigate to your runbook and select **Edit** on the MyFirstRunbook-Graphical page.
124124
1. You don't need the `Write Hello World to output` entry any more. Just click the ellipsis and select **Delete**.
125125
1. In the Library control, expand **ASSETS**, then **Connections**. Add `AzureRunAsConnection` to the canvas by selecting **Add to canvas**.
126126
1. Rename `AzureRunAsConnection` to `Get Run As Connection`.
@@ -135,7 +135,7 @@ Now that you have a variable to hold the subscription ID, you can configure the
135135

136136
* **Data source** -- select **Activity output**.
137137
* Data source list -- select **Get Automation Connection**.
138-
* **Field path** -- type `ApplicationId`. You are specifying the name of the property for the field path because the activity outputs an object with multiple properties.
138+
* **Field path** -- type `ApplicationId`. You're specifying the name of the property for the field path because the activity outputs an object with multiple properties.
139139

140140
1. Click **CERTIFICATETHUMBPRINT**, and on the Parameter Value page, make the following settings and then click **OK**.
141141

@@ -179,7 +179,7 @@ Now you must add a `Start-AzVM` activity to start a virtual machine. You can pic
179179

180180
Your runbook currently starts the VM in the resource group that you specified for the `Start-AzVM` cmdlet. The runbook will be more useful if you specify both name and resource group when the runbook is started. Let's add input parameters to the runbook to provide that functionality.
181181

182-
1. Open the graphical editor by clicking **Edit** on the **MyFirstRunbook-Graphical** pane.
182+
1. Open the graphical editor by clicking **Edit** on the MyFirstRunbook-Graphical page.
183183
1. Select **Input and output** and then **Add input** to open the Runbook Input Parameter pane.
184184
1. Make the following settings in the provided fields and then click **OK**.
185185
* **Name** -- specify `VMName`.
@@ -237,7 +237,7 @@ You can now modify the runbook so that it only attempts to start the VM if it is
237237
1. For the first `Write-Output` control, click **Parameters** and change the **Label** value to **Notify VM Started**.
238238
1. For **InputObject**, change **Data source** to **PowerShell expression**, and type in the expression `$VMName successfully started.`.
239239
1. On the second `Write-Output` control, click **Parameters** and change the **Label** value to **Notify VM Start Failed**.
240-
1. For **InputObject**, change **Data source** to **PowerShell expression**, and type in the expression `$VMName could not start.`.
240+
1. For **InputObject**, change **Data source** to **PowerShell expression**, and type in the expression `$VMName could not start`.
241241
1. Create links from `Start-AzVM` to `Notify VM Started` and `Notify VM Start Failed`.
242242
1. Select the link to `Notify VM Started` and change **Apply condition** to true.
243243
1. For the **Condition expression**, type `$ActivityOutput['Start-AzVM'].IsSuccessStatusCode -eq $true`. This `Write-Output` control now only runs if the VM starts successfully.
@@ -252,4 +252,6 @@ You can now modify the runbook so that it only attempts to start the VM if it is
252252
253253
* To learn more about graphical authoring, see [Graphical authoring in Azure Automation](automation-graphical-authoring-intro.md).
254254
* To get started with PowerShell runbooks, see [My first PowerShell runbook](automation-first-runbook-textual-powershell.md).
255-
* To get started with PowerShell Workflow runbooks, see [My first PowerShell workflow runbook](automation-first-runbook-textual.md).
255+
* To get started with PowerShell Workflow runbooks, see [My first PowerShell workflow runbook](automation-first-runbook-textual.md).
256+
* For a PowerShell cmdlet reference, see [Az.Automation](https://docs.microsoft.com/powershell/module/az.automation/?view=azps-3.7.0#automation
257+
).

articles/automation/automation-first-runbook-textual-powershell.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Before you publish the runbook to make it available in production, you should te
7171
2. Click **Start** to start the test. This should be the only enabled option.
7272
3. Note that a [runbook job](automation-runbook-execution.md) is created and its status is displayed in the pane.
7373

74-
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.
74+
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.
7575

7676
4. When the runbook job completes, the Test pane displays its output. In this case, you see `Hello World`.
7777

@@ -85,15 +85,15 @@ The runbook that you have created is still in Draft mode. It needs to be publish
8585

8686
1. Click **Publish** to publish the runbook and then **Yes** when prompted.
8787
1. Scroll left to view the runbook on the Runbooks page, and note that the **Authoring Status** value is set to **Published**.
88-
1. Scroll back to the right to view the pane for **MyFirstRunbook-PowerShell**.
88+
1. Scroll back to the right to view the page for **MyFirstRunbook-PowerShell**.
8989

9090
The options across the top allow you to start the runbook now, schedule a future start time, or create a [webhook](automation-webhooks.md) so that the runbook can be started through an HTTP call.
9191
1. Select **Start** and then **Yes** when prompted to start the runbook.
9292
1. A Job pane is opened for the runbook job that has been created. Although you can close this pane, leave it open right now so that you can watch the job's progress. The job status is shown in **Job Summary**, and possible statuses are as described for testing the runbook.
9393

9494
![Job Summary](media/automation-first-runbook-textual-powershell/job-pane-status-blade-jobsummary.png)
9595

96-
1. Once the runbook status shows `Completed`, click **Output** to open the Output page, where you can see `Hello World` displayed.
96+
1. Once the runbook status shows Completed, click **Output** to open the Output page, where you can see `Hello World` displayed.
9797

9898
![Job Output](media/automation-first-runbook-textual-powershell/job-pane-status-blade-outputtile.png)
9999

@@ -104,7 +104,7 @@ The runbook that you have created is still in Draft mode. It needs to be publish
104104

105105
![All Logs](media/automation-first-runbook-textual-powershell/job-pane-status-blade-alllogstile.png)
106106

107-
1. Close the Streams pane and the Job pane to return to the **MyFirstRunbook-PowerShell** page.
107+
1. Close the Streams pane and the Job pane to return to the MyFirstRunbook-PowerShell page.
108108
1. Under **Details**, click **Jobs** to open the Jobs page for this runbook. This page lists all the jobs created by your runbook. You should only see one job listed, since you have only run the job once.
109109

110110
![Job List](media/automation-first-runbook-textual-powershell/runbook-control-job-tile.png)
@@ -145,7 +145,7 @@ As shown in the example below, the Run As connection is made with the [Connect-A
145145
146146
Get-AzVM -ResourceGroupName myResourceGroup -AzContext $AzureContext
147147
```
148-
1. Open the textual editor by clicking **Edit** on the **MyFirstRunbook-PowerShell** page.
148+
1. Open the textual editor by clicking **Edit** on the MyFirstRunbook-PowerShell page.
149149
1. You don't need the `Write-Output` line any longer. Just go ahead and delete it.
150150
1. Type or copy and paste the following code, which handles the authentication with your Automation Run As account.
151151

@@ -176,7 +176,7 @@ As shown in the example below, the Run As connection is made with the [Connect-A
176176

177177
## Step 6 - Add code to start a virtual machine
178178

179-
Now that your runbook is authenticating to your Azure subscription, you can manage resources. Let's add a command to start a virtual machine. You can pick any virtual machine in your Azure subscription, and just hardcode that name in the runbook for now.
179+
Now that your runbook is authenticating to your Azure subscription, you can manage resources. Let's add a command to start a virtual machine. You can pick any virtual machine in your Azure subscription, and just hard-code that name in the runbook for now.
180180

181181
1. To your runbook script, add the [Start-AzVM](https://docs.microsoft.com/powershell/module/Az.Compute/Start-AzVM?view=azps-3.5.0) cmdlet to start the virtual machine. As shown below, the cmdlet starts a virtual machine with the name `VMName` and with a resource group named `ResourceGroupName`.
182182

@@ -206,7 +206,7 @@ Now that your runbook is authenticating to your Azure subscription, you can mana
206206

207207
## Step 7 - Add an input parameter
208208

209-
Your runbook currently starts the virtual machine that you hardcoded in the runbook. The runbook will be more useful if you specify the virtual machine when the runbook is started. Let's add input parameters to the runbook to provide that functionality.
209+
Your runbook currently starts the virtual machine that you hard-coded in the runbook. The runbook is more useful if you specify the virtual machine when the runbook is started. Let's add input parameters to the runbook to provide that functionality.
210210

211211
1. In the textual editor, modify the `Start-AzVM` cmdlet to use variables for the parameters `VMName` and `ResourceGroupName`.
212212

@@ -246,6 +246,8 @@ Your runbook currently starts the virtual machine that you hardcoded in the runb
246246
## Next steps
247247

248248
* For more information on PowerShell, including language reference and learning modules, see the [PowerShell Docs](/powershell/scripting/overview).
249+
* For a PowerShell cmdlet reference, see [Az.Automation](https://docs.microsoft.com/powershell/module/az.automation/?view=azps-3.7.0#automation
250+
).
249251
* To get started with graphical runbooks, see [My first graphical runbook](automation-first-runbook-graphical.md).
250252
* To get started with PowerShell Workflow runbooks, see [My first PowerShell Workflow runbook](automation-first-runbook-textual.md).
251253
* To know more about runbook types and their advantages and limitations, see [Azure Automation runbook types](automation-runbook-types.md).

0 commit comments

Comments
 (0)