Skip to content

Commit 0061a7f

Browse files
committed
added a new issue
1 parent 2a0ff2c commit 0061a7f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

articles/automation/troubleshoot/runbooks.md

Lines changed: 22 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,27 @@ 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 it fails with the following error -
19+
`*runbookName does not match expected pattern '^[a-zA-Z]*-*[a-zA-Z0-9]*`
20+
21+
```powershell
22+
`start-azautomationRunbook -Name "Test_2" -AutomationAccountName "AutomationParent" -ResourceGroupName "AutomationAccount" `Start-AzAutomationRunbook: `runbookname`does not match expected pattern '^[a-zA-Z]*-*[a-zA-Z0-9]*$'.
23+
```
24+
25+
## Cause
26+
27+
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.
28+
29+
## Workaround
30+
We recommend that you revert to [1.8.0 version](https://www.powershellgallery.com/packages/Az.Automation/1.8.0) of the module.
31+
32+
## Resolution
33+
We plan to deploy a fix to address this issue.
34+
1435
## Diagnose runbook issues
1536

1637
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)