You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
13
13
14
14
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
16
16
17
17
### 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.
19
19
20
20
### 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.
22
22
23
23
### 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 runbooksto 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.
25
25
26
26
27
27
## Start-AzAutomationRunbook fails with "runbookName does not match expected pattern" error message
Copy file name to clipboardExpand all lines: articles/update-manager/guidance-migration-automation-update-management-azure-update-manager.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Guidance overview on migration from Automation Update Management to
4
4
author: snehasudhirG
5
5
ms.service: azure-update-manager
6
6
ms.topic: conceptual
7
-
ms.date: 05/06/2024
7
+
ms.date: 05/09/2024
8
8
ms.author: sudhirsneha
9
9
---
10
10
@@ -129,7 +129,6 @@ At a high level, you need to follow the below steps to migrate your machines and
129
129
130
130
### Unsupported scenarios
131
131
132
-
- Update schedules having Pre/Post tasks won't be migrated for now.
133
132
- Non-Azure Saved Search Queries won't be migrated; these have to be migrated manually.
134
133
135
134
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'
146
145
147
146
#### Prerequisite 2: Create User Identity and Role Assignments by running PowerShell script
148
147
148
+
149
149
**A. Prerequisites to run the script**
150
150
151
151
- 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'
182
182
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.
183
183
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.
184
184
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.
185
186
186
187
#### Step 1: Migration of machines and schedules
187
188
@@ -234,12 +235,12 @@ The migration of runbook does the following tasks:
234
235
235
236
The following is the behavior of the migration script:
236
237
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.
239
239
- RebootOnly Setting isn't available in Azure Update Manager. Schedules having RebootOnly Setting aren't migrated.
240
240
- 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.
241
241
- The config assignment name is a string that will be in the format **AUMMig_AAName_SUCName**
242
242
- 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)
243
244
- A summarized set of logs is printed to the Output stream to give an overall status of machines and SUCs.
244
245
- Detailed logs are printed to the Verbose Stream.
245
246
- 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.
255
256
|---|---|---|---|
256
257
|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**.||
257
258
|| 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.|||
259
260
|| Non-Zero number of Dynamic Scope Configuration assignment failures.| Software Update Configuration isn't having succeeded provisioning state in DB.||
260
261
|| 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.||
262
263
||| Schedule associated with Software Update Configuration is disabled.||
263
264
||| 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.|
264
265
@@ -309,7 +310,6 @@ You can also search with the name of the update schedule to get logs specific to
309
310
310
311
**Callouts for the migration process:**
311
312
312
-
- Schedules having pre/post tasks won't be migrated for now.
313
313
- Non-Azure Saved Search Queries won't be migrated.
314
314
- The Migration and Deboarding Runbooks need to have the Az.Modules updated to work.
315
315
- 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:
344
344
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) |
345
345
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 |
346
346
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)| |
348
348
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) | |
0 commit comments