Skip to content

Commit d0b25da

Browse files
Merge pull request #274889 from SnehaSudhirG/09May-TSGUpdate
revised content
2 parents 540f720 + 41e7607 commit d0b25da

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

articles/automation/troubleshoot/runbooks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Troubleshoot Azure Automation runbook issues
33
description: This article tells how to troubleshoot and resolve issues with Azure Automation runbooks.
44
services: automation
5-
ms.date: 05/08/2024
5+
ms.date: 05/09/2024
66
ms.topic: troubleshooting
77
ms.custom: has-adal-ref, devx-track-azurepowershell
88
---
@@ -12,16 +12,16 @@ ms.custom: has-adal-ref, devx-track-azurepowershell
1212
This article describes runbook issues that might occur and how to resolve them. For general information, see [Runbook execution in Azure Automation](../automation-runbook-execution.md).
1313

1414

15-
## New functions added to custom module and reimported aren't displaying in textual and graphical PowerShell runbooks
15+
## It is no longer possible to use cmdlets from imported non-default modules in graphical PowerShell runbooks
1616

1717
### Issue
18-
After you add new functions to a custom module and reimport the module, the functions aren't getting displayed in textual and graphical PowerShell runbooks.
18+
When you import a PowerShell module you will not be able to use its cmdlets in graphical PowerShell runbooks.
1919

2020
### Cause
21-
To improve the security posture of PowerShell runbooks, the service no longer installs PowerShell modules due to which functions aren't displayed on runbook edit page in textual and graphical PowerShell runbooks.
21+
To improve the security posture of PowerShell runbooks, the service no longer processes the module manifest file to export the cmdlets and functions. This means that they cannot be used when authoring graphical PowerShell runbooks.
2222

2323
### Resolution
24-
There is no impact on execution of existing runbooks. Use Azure automation extension for VScode for authoring and editing PowerShell runbooks, that leverages GitHub Copilot to simplify runbook authoring experience. We recommend to use textual runbooks instead of graphical PowerShell runbooks to overcome this issue.
24+
There is no impact on the execution of existing runbooks. For new runbooks using non-default PowerShell modules we recommend using textual runbooks instead of graphical PowerShell runbooks to overcome this issue. You can use the Azure Automation extension for VScode for authoring and editing PowerShell runbooks, that leverages GitHub Copilot to simplify the runbook authoring experience.
2525

2626

2727
## Start-AzAutomationRunbook fails with "runbookName does not match expected pattern" error message

articles/update-manager/guidance-migration-automation-update-management-azure-update-manager.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Guidance overview on migration from Automation Update Management to
44
author: snehasudhirG
55
ms.service: azure-update-manager
66
ms.topic: conceptual
7-
ms.date: 05/06/2024
7+
ms.date: 05/09/2024
88
ms.author: sudhirsneha
99
---
1010

@@ -129,7 +129,6 @@ At a high level, you need to follow the below steps to migrate your machines and
129129

130130
### Unsupported scenarios
131131

132-
- Update schedules having Pre/Post tasks won't be migrated for now.
133132
- Non-Azure Saved Search Queries won't be migrated; these have to be migrated manually.
134133

135134
For the complete list of limitations and things to note, see the last section of this article.
@@ -146,6 +145,7 @@ Migration automation runbook ignores resources that aren't onboarded to Arc. It'
146145

147146
#### Prerequisite 2: Create User Identity and Role Assignments by running PowerShell script
148147

148+
149149
**A. Prerequisites to run the script**
150150

151151
- Run the command `Install-Module -Name Az -Repository PSGallery -Force` in PowerShell. The prerequisite script depends on Az.Modules. This step is required if Az.Modules aren't present or updated.
@@ -182,6 +182,7 @@ Migration automation runbook ignores resources that aren't onboarded to Arc. It'
182182
1. For this, the script fetches all the machines onboarded to Automation Update Management under this automation account and parse their subscription IDs to be given the required RBAC to the User Identity.
183183
1. The script gives a proper RBAC to the User Identity on the subscription to which the automation account belongs so that the MRP configs can be created here.
184184
1. The script assigns the required roles for the Log Analytics workspace and solution.
185+
1. Registration of required subscriptions to Microsoft.Maintenance and Microsoft.EventGrid Resource Providers.
185186

186187
#### Step 1: Migration of machines and schedules
187188

@@ -234,12 +235,12 @@ The migration of runbook does the following tasks:
234235

235236
The following is the behavior of the migration script:
236237

237-
- Check if a resource group with the name taken as input is already present in the subscription of the automation account or not. If not, then create a resource group with the name specified by the Cx. This resource group is used for creating the MRP configs for V2.
238-
- The script ignores the update schedules that have pre and post scripts associated with them. For pre and post scripts update schedules, migrate them manually.
238+
- Check if a resource group with the name taken as input is already present in the subscription of the automation account or not. If not, then create a resource group with the name specified by the customer. This resource group is used for creating the MRP configs for V2.
239239
- RebootOnly Setting isn't available in Azure Update Manager. Schedules having RebootOnly Setting aren't migrated.
240240
- Filter out SUCs that are in the errored/expired/provisioningFailed/disabled state and mark them as **Not Migrated**, and print the appropriate logs indicating that such SUCs aren't migrated.
241241
- The config assignment name is a string that will be in the format **AUMMig_AAName_SUCName**
242242
- Figure out if this Dynamic Scope is already assigned to the Maintenance config or not by checking against Azure Resource Graph. If not assigned, then only assign with assignment name in the format **AUMMig_ AAName_SUCName_SomeGUID**.
243+
- For schedules having pre/post tasks configured, the script will create an automation webhook for the runbooks in pre/post tasks and event grid subscriptions for pre/post maintenance events. For more information, see [how pre/post works in Azure Update Manager](tutorial-webhooks-using-runbooks.md)
243244
- A summarized set of logs is printed to the Output stream to give an overall status of machines and SUCs.
244245
- Detailed logs are printed to the Verbose Stream.
245246
- Post-migration, a Software Update Configuration can have any one of the following four migration statuses:
@@ -255,10 +256,10 @@ The below table shows the scenarios associated with each Migration Status.
255256
|---|---|---|---|
256257
|Failed to create Maintenance Configuration for the Software Update Configuration.| Non-Zero number of Machines where Patch-Settings failed to apply.| Failed to get software update configuration from the API due to some client/server error like maybe **internal Service Error**.| |
257258
| | Non-Zero number of Machines with failed Configuration Assignments.| Software Update Configuration is having reboot setting as reboot only. This isn't supported today in Azure Update Manager.| |
258-
| | Non-Zero number of Dynamic Queries failed to resolve that is failed to execute the query against Azure Resource Graph.| Software Update Configuration is having Pre/Post Tasks. Currently, Pre/Post in Preview in Azure Update Manager and such schedules won't be migrated.| |
259+
| | Non-Zero number of Dynamic Queries failed to resolve that is failed to execute the query against Azure Resource Graph.| | |
259260
| | Non-Zero number of Dynamic Scope Configuration assignment failures.| Software Update Configuration isn't having succeeded provisioning state in DB.| |
260261
| | Software Update Configuration is having Saved Search Queries.| Software Update Configuration is in errored state in DB.| |
261-
| | | Schedule associated with Software Update Configuration is already expired at the time of migration.| |
262+
| | Software Update Configuration is having pre/post tasks which have not been migrated successfully. | Schedule associated with Software Update Configuration is already expired at the time of migration.| |
262263
| | | Schedule associated with Software Update Configuration is disabled.| |
263264
| | | Unhandled exception while migrating software update configuration.| Zero Machines where Patch-Settings failed to apply.<br><br> **And** <br><br> Zero Machines with failed Configuration Assignments. <br><br> **And** <br><br> Zero Dynamic Queries failed to resolve that is failed to execute the query against Azure Resource Graph. <br><br> **And** <br><br> Zero Dynamic Scope Configuration assignment failures. <br><br> **And** <br><br> Software Update Configuration has zero Saved Search Queries.|
264265

@@ -309,7 +310,6 @@ You can also search with the name of the update schedule to get logs specific to
309310

310311
**Callouts for the migration process:**
311312

312-
- Schedules having pre/post tasks won't be migrated for now.
313313
- Non-Azure Saved Search Queries won't be migrated.
314314
- The Migration and Deboarding Runbooks need to have the Az.Modules updated to work.
315315
- The prerequisite script updates the Az.Modules to the latest version 8.0.0.
@@ -344,7 +344,7 @@ Guidance to move various capabilities is provided in table below:
344344
4 | Dynamic Update deployment schedules (Defining scope of machines using resource group, tags, etc. that is evaluated dynamically at runtime).| Same as static update schedules. | Same as static update schedules. | [Add a dynamic scope](manage-dynamic-scoping.md#add-a-dynamic-scope) | [Create a dynamic scope]( tutorial-dynamic-grouping-for-scheduled-patching.md#create-a-dynamic-scope) |
345345
5 | Deboard from Azure Automation Update management. | After you complete the steps 1, 2, and 3, you need to clean up Azure Update management objects. | | [Remove Update Management solution](../automation/update-management/remove-feature.md#remove-updatemanagement-solution) </br> | NA |
346346
6 | Reporting | Custom update reports using Log Analytics queries. | Update data is stored in Azure Resource Graph (ARG). Customers can query ARG data to build custom dashboards, workbooks etc. | The old Automation Update Management data stored in Log analytics can be accessed, but there's no provision to move data to ARG. You can write ARG queries to access data that will be stored to ARG after virtual machines are patched via Azure Update Manager. With ARG queries you can, build dashboards and workbooks using following instructions: </br> 1. [Log structure of Azure Resource graph updates data](query-logs.md) </br> 2. [Sample ARG queries](sample-query-logs.md) </br> 3. [Create workbooks](manage-workbooks.md) | NA |
347-
7 | Customize workflows using pre and post scripts. | Available as Automation runbooks. | We recommend that you try out the Public Preview for pre and post scripts on your non-production machines and use the feature on production workloads once the feature enters General Availability. |[Manage pre and post events (preview)](manage-pre-post-events.md) | |
347+
7 | Customize workflows using pre and post scripts. | Available as Automation runbooks. | We recommend that you try out the Public Preview for pre and post scripts on your non-production machines and use the feature on production workloads once the feature enters General Availability. |[Manage pre and post events (preview)](manage-pre-post-events.md) and [Tutorial: Create pre and post events using a webhook with Automation](tutorial-webhooks-using-runbooks.md) | |
348348
8 | Create alerts based on updates data for your environment | Alerts can be set up on updates data stored in Log Analytics. | We recommend that you try out the Public Preview for alerts on your non-production machines and use the feature on production workloads once the feature enters General Availability. |[Create alerts (preview)](manage-alerts.md) | |
349349

350350

0 commit comments

Comments
 (0)