Support for Inline Child Scripts in PowerShell 7.2 Runbooks

Guilherme Noronha 0 Reputation points
2024-04-16T07:32:25.3133333+00:00

What is the current status of support for inline scripts in Powershell 7.2 runbooks? The current documentation lists inline scripts as "not supported", but it is unclear whether this will change or when it might change. We have several scripts that rely heavily on calling inline scripts, and creating a new job for each child script is not ideal given the existing queue. Are there any plans to add support for inline child scripts in future updates?

Executing child scripts using .\child-runbook.ps1 is not supported. Workaround: Use Start-AutomationRunbook (internal cmdlet) or Start-AzAutomationRunbook (from Az.Automation module) to start another runbook from parent runbook.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,177 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,274 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,416 Reputation points
    2024-04-16T11:29:24.03+00:00

    Hi @Guilherme Noronha ,

    Currently it's part of backlog and we don't have any ETA or timelines at this point.