Skip to content

Commit 6711ba5

Browse files
Merge pull request #226357 from SnehaSudhirG/06Feb-TSGUpdate
Added a new issue
2 parents 060864e + 1987fa2 commit 6711ba5

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

articles/automation/troubleshoot/runbooks.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Troubleshoot Azure Automation runbook issues
33
description: This article tells how to troubleshoot and resolve issues with Azure Automation runbooks.
44
services: automation
5-
ms.date: 09/16/2021
5+
ms.date: 02/06/2022
66
ms.topic: troubleshooting
77
ms.custom: has-adal-ref, devx-track-azurepowershell
88
---
@@ -11,6 +11,29 @@ ms.custom: has-adal-ref, devx-track-azurepowershell
1111

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

14+
15+
## Start-AzAutomationRunbook fails with "runbookName does not match expected pattern" error message
16+
17+
### Issue
18+
When you run `Start-AzAutomationRunbook` to start specific runbooks:
19+
20+
```powershell
21+
start-azautomationRunbook -Name "Test_2" -AutomationAccountName "AutomationParent" -ResourceGroupName "AutomationAccount"
22+
```
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+
27+
### Cause
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.
30+
31+
### Workaround
32+
We recommend that you revert to [1.8.0 version](https://www.powershellgallery.com/packages/Az.Automation/1.8.0) of the module.
33+
34+
### Resolution
35+
Currently, we are working to deploy a fix to address this issue.
36+
1437
## Diagnose runbook issues
1538

1639
When you receive errors during runbook execution in Azure Automation, you can use the following steps to help diagnose the issues:

0 commit comments

Comments
 (0)