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
description: This article describes the types of runbooks that you can use in Azure Automation and considerations for determining which type to use.
4
4
services: automation
5
5
ms.subservice: process-automation
6
-
ms.date: 03/29/2023
6
+
ms.date: 04/04/2023
7
7
ms.topic: conceptual
8
8
ms.custom: references_regions
9
9
---
@@ -73,6 +73,20 @@ The following are the current limitations and known issues with PowerShell runbo
73
73
* PowerShell runbooks can't retrieve a variable asset with `*~*` in the name.
74
74
* A [Get-Process](/powershell/module/microsoft.powershell.management/get-process) operation in a loop in a PowerShell runbook can crash after about 80 iterations.
75
75
* A PowerShell runbook can fail if it tries to write a large amount of data to the output stream at once. You can typically work around this issue by having the runbook output just the information needed to work with large objects. For example, instead of using `Get-Process` with no limitations, you can have the cmdlet output just the required parameters as in `Get-Process | Select ProcessName, CPU`.
76
+
* When you use [ExchangeOnlineManagement](https://learn.microsoft.com/powershell/exchange/exchange-online-powershell?view=exchange-ps) module version: 3.0.0 or higher, you may experience errors. To resolve the issue, ensure that you explicitly upload [PowerShellGet](https://learn.microsoft.com/powershell/module/powershellget/?view=powershell-5.1) and [PackageManagement](https://learn.microsoft.com/powershell/module/packagemanagement/?view=powershell-5.1) modules as well.
77
+
* When you use [New-item cmdlet](https://learn.microsoft.com/powershell/module/microsoft.powershell.management/new-item?view=powershell-5.1), jobs might be suspended. To resolve the issue, follow the mitigation steps:
78
+
1. Consume the output of `new-item` cmdlet in a variable and **do not** write it to the output stream using `write-output` command.
79
+
- You can use debug or progress stream after you enable it from **Logging and Tracing** setting of the runbook.
1. You can also upgrade your runbooks to PowerShell 7.1 or PowerShell 7.2 where the same runbook will work as expected.
76
90
77
91
78
92
# [PowerShell 7.1 (preview)](#tab/lps71)
@@ -105,6 +119,7 @@ The following are the current limitations and known issues with PowerShell runbo
105
119
- You might encounter formatting problems with error output streams for the job running in PowerShell 7 runtime.
106
120
- When you import a PowerShell 7.1 module that's dependent on other modules, you may find that the import button is gray even when PowerShell 7.1 version of the dependent module is installed. For example, Az.Compute version 4.20.0, has a dependency on Az.Accounts being >= 2.6.0. This issue occurs when an equivalent dependent module in PowerShell 5.1 doesn't meet the version requirements. For example, 5.1 version of Az.Accounts were < 2.6.0.
107
121
- When you start PowerShell 7 runbook using the webhook, it auto-converts the webhook input parameter to an invalid JSON.
122
+
- We recommend that you use [ExchangeOnlineManagement](https://learn.microsoft.com/powershell/exchange/exchange-online-powershell?view=exchange-ps) module version: 3.0.0 or lower because version: 3.0.0 or higher may lead to job failures.
108
123
109
124
110
125
# [PowerShell 7.2 (preview)](#tab/lps72)
@@ -137,6 +152,7 @@ The following are the current limitations and known issues with PowerShell runbo
137
152
138
153
$ProgressPreference = "Continue"
139
154
```
155
+
- When you use [ExchangeOnlineManagement](https://learn.microsoft.com/powershell/exchange/exchange-online-powershell?view=exchange-ps) module version: 3.0.0 or higher, you can experience errors. To resolve the issue, ensure that you explicitly upload [PowerShellGet](https://learn.microsoft.com/powershell/module/powershellget/?view=powershell-7.3) and [PackageManagement](https://learn.microsoft.com/powershell/module/packagemanagement/?view=powershell-7.3) modules.
0 commit comments