Azure / Azure/azure-quickstart-templates
201-vmss-linux-nat is broken
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
[201-vmss-linux-nat](https://github.com/Azure/azure-quickstart-templates/tree/master/201-vmss-linux-nat)
### Issue Details
When I try to create an instance based off the image, I get:
ERROR TYPE
The template deployment 'Microsoft.Template' is not valid according to the validation procedure. The tracking id is 'd3ce8f5a-e0a3-4513-afea-3bcc0d1a37dd'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details. (Code: InvalidTemplateDeployment)
Unfortunately, there appears to be another bug that prevents me from copy/pasting the error details, so this will be abbreviated:
Preflight validation failed. Please refer to the details for the specific errors
- asdfasdfasdf-mvssbsa is not a valid storage account name. The storage account name must be between 3 and 24 characters in length and use numbers and lower-case letters only. (CODE: AccountNameInvalid)
In short, creating the storage account breaks because it's based off the VMSS name, and the VMSS name allows "-", but the storage account does not.
Maybe other people will be smarter than me, but this caught me off guard as I spent some time figuring out the issue.
### Repro steps (*if necessary, delete otherwise*)
1. Go to https://github.com/Azure/azure-quickstart-templates/tree/master/201-vmss-linux-nat
2. Click "Deploy to Azure"
3. Choose a VMSS name with a "-". e.g. "foo-bar"
4. Get Storage Account Name error.
5.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the 201-vmss-linux-nat template linked in the issue and reproduce the deployment with a VMSS name containing a hyphen, such as foo-bar. Trace how the storage account name is derived; the issue is done when that deployment produces a valid storage account name and completes without the AccountNameInvalid error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100