mspnp / AzureNamingTool

The Azure Naming Tool is a .NET 8 Blazor application, with a RESTful API. The UI consists of several pages to allow the configuration and generation of Azure Resource names. The API provides a programmatic interface for the functionality.
https://aka.ms/azurenamingtool
MIT License
308 stars 604 forks source link

Windows VM names longer than 15 characters passing validation #33

Closed d-r-tet closed 8 months ago

d-r-tet commented 8 months ago

Describe the bug When generating a name for Compute/VirtualMachines - Windows (vm), the max length does not appear to be validated, which allows names longer than 15 characters to be generated successfully.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Generate'
  2. Click on 'Type to search resource types'
  3. Scroll down to 'Compute/virtualMachines - Windows (vm)'
  4. Fill out parameters and pad out instance field to make it longer than 15 characters
  5. Click Generate

Expected behavior Validation fails and error is returned indicating name is too long.

Screenshots image

Installation Method Azure Web App Using GitHub Action

Additional context

BryanSoltis commented 8 months ago

Thank you for your feedback The issue is related to the auto-complete field on the Generate page and identifying the correct resource type to validate. This will be fixed int he next release.