aztfmod / terraform-provider-azurecaf

Terraform provider for the Terraform platform engineering for Azure
MIT License
176 stars 94 forks source link

windows virtual machine resource name should not be limited to 15 chars #195

Closed Poil closed 2 years ago

Poil commented 2 years ago

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 (or virtual_machine_netbios_name) type that limit to 15 chars and change the azurerm_windows_virtual_machine to 64 chars

Best regards,

Poil commented 2 years ago

200