Skip to content

Commit 6a51cde

Browse files
committed
Updated Known issues section
1 parent ce3deba commit 6a51cde

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

articles/automation/automation-runbook-types.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Azure Automation runbook types
33
description: This article describes the types of runbooks that you can use in Azure Automation and considerations for determining which type to use.
44
services: automation
55
ms.subservice: process-automation
6-
ms.date: 03/29/2023
6+
ms.date: 04/04/2023
77
ms.topic: conceptual
88
ms.custom: references_regions
99
---
@@ -69,6 +69,20 @@ The following are the current limitations and known issues with PowerShell runbo
6969

7070
**Known issues**
7171

72+
* When you use *ExchangeOnlineManagement* module version: 3.0.0 or higher, you can experience errors. To resolve the issue, ensure that you explicitly upload *PowerShellGet* and *PackageManagement* modules.
73+
* When you use *New-item* cmdlet, jobs might be suspended. To resolve the issue, follow the mitigation steps:
74+
1. Consume the output of `new-item`cmdlet in a variable and **do not** write it to the output stream using the write-output.
75+
- You can use debug or progress stream after you enable it from **Logging and Tracing** setting of the runbook.
76+
```powershell-interactive
77+
$item = New-Item -Path ".\message.txt" -Force -ErrorAction SilentlyContinue
78+
write-debug $item # or use write-progress $item
79+
```
80+
- Alternatively, you can check if the nonempty if required to do so in the script.
81+
```powershell-interactive
82+
$item = New-Item -Path ".\message.txt" -Force -ErrorAction SilentlyContinue
83+
if($item) { write-output "File Created" }
84+
```
85+
1. You can upgrade your runbooks to PS7.1 or PS7.2 where the same runbook will work as expected.
7286
* PowerShell runbooks can't retrieve an unencrypted [variable asset](./shared-resources/variables.md) with a null value.
7387
* PowerShell runbooks can't retrieve a variable asset with `*~*` in the name.
7488
* A [Get-Process](/powershell/module/microsoft.powershell.management/get-process) operation in a loop in a PowerShell runbook can crash after about 80 iterations.
@@ -92,6 +106,7 @@ The following are the current limitations and known issues with PowerShell runbo
92106
93107
**Known issues**
94108
109+
- When you use *ExchangeOnlineManagement* module version: 3.0.0 or higher, you can experience job failures. We recommend that you use *ExchangeOnlineManagement* module version: 3.0.0 or less.
95110
- Executing child scripts using `.\child-runbook.ps1` isn't supported in this preview.
96111
**Workaround**: Use `Start-AutomationRunbook` (internal cmdlet) or `Start-AzAutomationRunbook` (from *Az.Automation* module) to start another runbook from parent runbook.
97112
- Runbook properties defining logging preference is not supported in PowerShell 7 runtime.
@@ -128,6 +143,7 @@ The following are the current limitations and known issues with PowerShell runbo
128143
129144
**Known issues**
130145
146+
- When you use *ExchangeOnlineManagement* module version: 3.0.0 or higher, you can experience errors. To resolve the issue, ensure that you explicitly upload *PowerShellGet* and *PackageManagement* modules.
131147
- Executing child scripts using `.\child-runbook.ps1` is not supported in this preview.
132148
**Workaround**: Use `Start-AutomationRunbook` (internal cmdlet) or `Start-AzAutomationRunbook` (from *Az.Automation* module) to start another runbook from parent runbook.
133149
- Runbook properties defining logging preference is not supported in PowerShell 7 runtime.

0 commit comments

Comments
 (0)