Azure / Azure/bicep-types-az

[Microsoft.Automation/automationAccounts/jobSchedules]: Poor error message if resource name incorrectly formatted

Open
#1,383 13 comments 0 reactions 0 assignees View on GitHub
Automation inaccuracy Service Attention
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

**Bicep version**
Bicep CLI version 0.3.255

**Describe the bug**

I'm trying to create an automation account + runbook + schedules + link runbook and schedules. Every thing goes well but when I add automationAccounts/jobSchedules resource, I get a 404 error:

![image](https://user-images.githubusercontent.com/286098/114300037-8de52300-9abe-11eb-8318-308f7cb1ece0.png)

Here is the bicep file, that works perfect except when I add the jobSchedules resource:

https://raw.githubusercontent.com/joanteixi/az-bicep/master/start-stop-vm/automation.bicep

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked automation.bicep file and the Microsoft.Automation/automationAccounts/jobSchedules resource, then reproduce the deployment to inspect the 404. Review how this resource name is validated or reported in the type definitions. Done means an incorrectly formatted resource name produces a useful error instead of an opaque 404.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.