Skip to content

Commit 37e22f5

Browse files
authored
Merge pull request #204531 from KrishnaG-MSFT/patch-213
(AzureCXP) Microsoft Q&A forum Question ID 918563
2 parents 794c6e6 + cee46ae commit 37e22f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/automation/automation-child-runbooks.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,16 @@ The parameters of a child runbook called inline can be of any data type, includi
3838

3939
### Runbook types
4040

41-
Currently, PowerShell 5.1 and 7.1 (preview) are supported and only certain runbook types can call each other:
41+
Currently, PowerShell 5.1 is supported and only certain runbook types can call each other:
4242

4343
* A [PowerShell runbook](automation-runbook-types.md#powershell-runbooks) and a [graphical runbook](automation-runbook-types.md#graphical-runbooks) can call each other inline, because both are PowerShell based.
4444
* A [PowerShell Workflow runbook](automation-runbook-types.md#powershell-workflow-runbooks) and a graphical PowerShell Workflow runbook can call each other inline, because both are PowerShell Workflow based.
4545
* The PowerShell types and the PowerShell Workflow types can't call each other inline. They must use `Start-AzAutomationRunbook`.
4646

47+
> [!IMPORTANT]
48+
> Executing child scripts using `.\child-runbook.ps1` is not supported in PowerShell 7.1 preview.
49+
**Workaround**: Use `Start-AutomationRunbook` (internal cmdlet) or `Start-AzAutomationRunbook` (from *Az.Automation* module) to start another runbook from parent runbook.
50+
4751
The publish order of runbooks matters only for PowerShell Workflow and graphical PowerShell Workflow runbooks.
4852

4953
When your runbook calls a graphical or PowerShell Workflow child runbook by using inline execution, it uses the name of the runbook. The name must start with `.\\` to specify that the script is in the local directory.

0 commit comments

Comments
 (0)