microsoft / microsoft/vscode-azurestaticwebapps
The error message is unclear when creating a basic static web app which name is only one letter
Open
Nobody has claimed this yet.
AT-CTI
bug
- Dominant language
- TypeScript
- Stars
- 99
- Forks
- 39
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 2
Description
OS: Win10
Build Version: 20220123.1
Regression: Not a regression
Repro Steps:
- Create a basic static web app with name is only one letter, e.g. "t".
- Check whether the error message is clear.
Expect:
The error message is clear.
Actual:
The error message is unclear.

Output Details:
6:11:26 PM: Creating resource group "t" in location "Central US"...
6:11:27 PM: Successfully created resource group "t".
6:11:27 PM: Creating new static web app "t"...
6:11:27 PM: Error: "resourceGroupName" with value "t" should satisfy the constraint "Pattern": /^[-\w\._\(\)]+[^\.]$/.
More Info:
- This issue also reproduces when creating an advanced static web app with a resource group named only one letter, e.g. "t".
- This issue doesn't reproduce when creating an advanced static web app with other resource group, e.g. "test".
- Succeed to create a resource group which name is only one letter.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the one-letter static web app and resource group cases described in the issue, then trace the error handling that presents the Azure validation response. Done means the failure explains the naming problem clearly for both basic and advanced static web apps, while valid names continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, typescript, vscode
- Domain
- cloud, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100