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
Copy file name to clipboardExpand all lines: support/azure/automation/runbooks/powershell-job-script-cmdlets-not-working.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,21 @@
1
1
---
2
-
title: Troubleshoot runbook execution issues when using PowerShell
2
+
title: Troubleshoot Runbook Execution Issues When Using PowerShell
3
3
description: Describes some runbook execution issues that occur when you use PowerShell in Azure Automation and provides solutions to them.
4
-
ms.date: 06/10/2025
4
+
ms.date: 06/13/2025
5
5
ms.reviewer: adoyle, v-weizhu
6
6
ms.service: azure-automation
7
7
ms.custom: sap:Runbook not working as expected
8
8
---
9
9
# Troubleshoot runbook execution issues when using PowerShell in Azure Automation
10
10
11
-
This article provides guidance for diagnosing and resolving runbook execution issues that occur when using PowerShell scripts or cmdlets in Azure Automation.
11
+
This article provides guidance on diagnosing and resolving runbook execution issues that occur when using PowerShell scripts or cmdlets in Azure Automation.
12
12
13
13
> [!NOTE]
14
14
> Azure Automation enables recovery of runbooks deleted in last 29 days. You can restore a deleted runbook by running a PowerShell script as a job in your Automation account. For more information, see [Restore deleted runbook](/azure/automation/manage-runbooks#restore-deleted-runbook).
15
15
16
16
## Limitations and known issues with PowerShell runbooks
17
17
18
-
PowerShell runbooks are built on Windows PowerShell. You can edit their code directly by using the text editor in the Azure portal. You can also use an offline text editor and then [import the runbooks](/azure/automation/manage-runbooks) into Azure Automation. The PowerShell version is determined by the **Runtime version** specified.
18
+
PowerShell runbooks are built on Windows PowerShell. You can edit their code directly by using the text editor in the Azure portal. You can also use an offline text editor and then [import the runbooks](/azure/automation/manage-runbooks#import-a-runbook-) into Azure Automation. The PowerShell version is determined by the **Runtime version** specified.
19
19
20
20
**Limitations:**
21
21
@@ -38,7 +38,7 @@ PowerShell runbooks are built on Windows PowerShell. You can edit their code dir
38
38
$ProgressPreference = "Continue"
39
39
```
40
40
41
-
- When you use the [ExchangeOnlineManagement](/powershell/exchange/exchange-online-powershell) module version 3.0.0 or later, you can experience errors.
41
+
- When you use the [ExchangeOnlineManagement](/powershell/exchange/exchange-online-powershell) module version 3.0.0 or later, you might experience errors.
42
42
43
43
To resolve this issue, make sure that you explicitly upload the `PowerShellGet` and `PackageManagement` modules.
0 commit comments