Azure virtual machines have two distinct names: resource name and host name. When you create a virtual machine in the portal, the same value is used for both names. The restrictions in the preceding table are for the host name. The actual resource name can have up to 64 characters.
ref. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules
So I think we should have a generic virtual_machine_hostname (or virtual_machine_netbios_name) type that limit to 15 chars and change the azurerm_windows_virtual_machine to 64 chars
Hi,
Azure virtual machines have two distinct names: resource name and host name. When you create a virtual machine in the portal, the same value is used for both names. The restrictions in the preceding table are for the host name. The actual resource name can have up to 64 characters. ref. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules
So I think we should have a generic
virtual_machine_hostname
(orvirtual_machine_netbios_name
) type that limit to 15 chars and change theazurerm_windows_virtual_machine
to 64 charsBest regards,