Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a rule to check that the name of a windows virtual machine is valid #331

Conversation

JannoTjarks
Copy link
Member

@JannoTjarks JannoTjarks commented Apr 9, 2024

Found an error in my code. Will update later and squash my commits!

Hi,

i added the rule azurerm_windows_virtual_machine_invalid_name.

It checks, if the name is a valid windows server hostname, based on this documenation:
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules#microsoftcompute
image

Based on the terraform documentation, the check is skipped, if the computer_name attribute is specified. In future this rule could be expanded or a second rule specific for computer_name could be added.
image

Thank you!

@JannoTjarks
Copy link
Member Author

@wata727 could you give me a hint, how to reconfigure the mappings of windows virtual machine so that the last check is successful?

@JannoTjarks JannoTjarks closed this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant