Skip to content

Commit be2fdc1

Browse files
committed
Edits to code block and error message
1 parent 4cd00ff commit be2fdc1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/automation/troubleshoot/runbooks.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ ms.custom: has-adal-ref, devx-track-azurepowershell
1212
This article describes runbook issues that might occur and how to resolve them. For general information, see [Runbook execution in Azure Automation](../automation-runbook-execution.md).
1313

1414

15-
## Start-AzAutomationRunbook fails with runbookName does not match expected pattern error message
15+
## Start-AzAutomationRunbook fails with "runbookName does not match expected pattern" error message
1616

1717
### Issue
18-
When you run `Start-AzAutomationRunbook` to start specific runbooks, it fails with the following error:
19-
20-
`runbookName does not match expected pattern '^[a-zA-Z]*-*[a-zA-Z0-9]`
18+
When you run `Start-AzAutomationRunbook` to start specific runbooks:
2119

2220
```powershell
23-
`start-azautomationRunbook -Name "Test_2" -AutomationAccountName "AutomationParent" -ResourceGroupName "AutomationAccount" `Start-AzAutomationRunbook: `runbookname`does not match expected pattern '^[a-zA-Z]*-*[a-zA-Z0-9]*$'.
21+
`start-azautomationRunbook -Name "Test_2" -AutomationAccountName "AutomationParent" -ResourceGroupName "AutomationAccount" '.
2422
```
25-
23+
It fails with the following error:
24+
25+
`Start-AzAutomationRunbook: "runbookname" does not match expected pattern '^[a-zA-Z]*-*[a-zA-Z0-9]*$'`
26+
2627
## Cause
2728

2829
Code that was introduced in [1.9.0 version](https://www.powershellgallery.com/packages/Az.Automation/1.9.0) of the Az.Automation module verifies the names of the runbooks to start and incorrectly flags runbooks with multiple "-" characters or with an "_" character in the name as invalid.

0 commit comments

Comments
 (0)