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
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).
13
13
14
14
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
16
16
17
17
### 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:
21
19
22
20
```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]*$'.
`Start-AzAutomationRunbook: "runbookname" does not match expected pattern '^[a-zA-Z]*-*[a-zA-Z0-9]*$'`
26
+
26
27
## Cause
27
28
28
29
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