Azure / Azure/azure-powershell

Azure Automation Runbook naming issues

Open
#21,242 7 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Automation bug customer-reported needs-team-attention Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

When using powershell to manage Automation runbooks, we get the following error:
'runbookName' does not match expected pattern '^[a-zA-Z]*-*[a-zA-Z0-9]*$
I am running this on an Azure Devops pipeline using Windows-latest image
The runbooks in question have the format for example:
Invoke-ComplianceCheck-Test
This has been the case for several years and is also in line with the resource naming standard. If the standard has changed, the documentation does not reflect this. If the standard has not changed, is there a bug in the latest module?
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftautomation
Renaming these runbooks means around 200+ changes in our environment.

### Script or Debug output

_No response_

### Environment data

_No response_

### Module versions

_No response_

### Error output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the runbookName validation in the Azure PowerShell module from the Windows-latest Azure DevOps environment, using a name such as Invoke-ComplianceCheck-Test. Compare the reported pattern with the linked Microsoft Automation naming rules and determine whether the module behavior or documentation is inconsistent. Done means the discrepancy and required resolution are clearly confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.