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: 10/06/2023
6
+
ms.date: 11/07/2023
7
7
ms.topic: conceptual
8
8
ms.custom: references_regions, devx-track-python
9
9
---
@@ -73,7 +73,6 @@ The following are the current limitations and known issues with PowerShell runbo
73
73
74
74
* Runbooks taking dependency on internal file paths such as `C:\modules` might fail due to changes in service backend infrastructure. Change runbook code to ensure there are no dependencies on internal file paths and use [Get-ChildItem](/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.3) to get the required directory.
75
75
*`Get-AzStorageAccount` cmdlet might fail with an error: *The `Get-AzStorageAccount` command was found in the module `Az.Storage`, but the module could not be loaded*.
76
-
* Completed jobs might show a warning message: *Both Az and AzureRM modules were detected on this machine. Az and AzureRM modules cannot be imported in the same session or used in the same script or runbook*. This is just a warning message and does not impact job execution.
77
76
* PowerShell runbooks can't retrieve an unencrypted [variable asset](./shared-resources/variables.md) with a null value.
78
77
* PowerShell runbooks can't retrieve a variable asset with `*~*` in the name.
79
78
* A [Get-Process](/powershell/module/microsoft.powershell.management/get-process) operation in a loop in a PowerShell runbook can crash after about 80 iterations.
@@ -126,12 +125,11 @@ The following are the current limitations and known issues with PowerShell runbo
126
125
> Currently, PowerShell 7.2 (preview) runtime version is supported for both Cloud and Hybrid jobs in all Public regions except Australia Central2, Korea South, Sweden South, Jio India Central, Brazil Southeast, Central India, West India, UAE Central, and Gov clouds.
127
126
128
127
- For the PowerShell 7 runtime version, the module activities aren't extracted for the imported modules.
129
-
-*PSCredential* runbook parameter type isn't supported in PowerShell 7 runtime version.
130
128
- PowerShell 7.x doesn't support workflows. For more information, see [PowerShell workflow](/powershell/scripting/whats-new/differences-from-windows-powershell#powershell-workflow) for more details.
131
129
- PowerShell 7.x currently doesn't support signed runbooks.
132
130
- Source control integration doesn't support PowerShell 7.2 (preview). Also, PowerShell 7.2 (preview) runbooks in source control get created in Automation account as Runtime 5.1.
133
131
- Currently, PowerShell 7.2 (preview) runbooks are only supported from Azure portal. Rest API and PowerShell aren't supported.
134
-
- Az module 8.3.0 is installed by default and can't be managed at the automation account level. Use custom modules to override the Az module to the desired version.
132
+
- Az module 8.3.0 is installed by default and can't be managed at the automation account level for PowerShell 7.2 (preview). Use custom modules to override the Az module to the desired version.
135
133
- The imported PowerShell 7.2 (preview) module would be validated during job execution. Ensure that all dependencies for the selected module are also imported for successful job execution.
136
134
- PowerShell 7.2 module management is not supported through `Get-AzAutomationModule` cmdlets.
137
135
- Azure runbook doesn't support `Start-Job` with `-credential`.
@@ -142,13 +140,7 @@ The following are the current limitations and known issues with PowerShell runbo
142
140
-`Get-AzStorageAccount` cmdlet might fail with an error: *The `Get-AzStorageAccount` command was found in the module `Az.Storage`, but the module could not be loaded*.
143
141
- Executing child scripts using `.\child-runbook.ps1` is not supported in this preview.
144
142
**Workaround**: Use `Start-AutomationRunbook` (internal cmdlet) or `Start-AzAutomationRunbook` (from *Az.Automation* module) to start another runbook from parent runbook.
**Workaround**: Explicitly set the preference at the start of the runbook as following -
147
-
```
148
-
$VerbosePreference = "Continue"
149
143
150
-
$ProgressPreference = "Continue"
151
-
```
152
144
- When you use [ExchangeOnlineManagement](/powershell/exchange/exchange-online-powershell?view=exchange-ps&preserve-view=true) module version: 3.0.0 or higher, you can experience errors. To resolve the issue, ensure that you explicitly upload [PowerShellGet](/powershell/module/powershellget/) and [PackageManagement](/powershell/module/packagemanagement/) modules.
0 commit comments