aztfmod / terraform-provider-azurecaf

Terraform provider for the Terraform platform engineering for Azure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve azurerm_windows_virtual_machine Resource Name Length up to 64 characters

schoenr79 opened this issue · comments

Since Azure Resource Manager (ARM) was introduced, the possible length of a windows vm resource name is up to 64 characters.

At the moment this is not possible because the naming provider does it restrict to max. of 15 characters.

Either if we use the "passthrough" or "clean_input" option it is not possible to go up to the max of 64 characters.

In the naming provider this should be increased to the maximum of 64 characters, in order to have the maximum available.

While the azurerm_windows_virtual_machine name resource is used for the host-/computername too, the max. length of 15 characters for this property should be restricted directly in referencing modules itself. It may be achievable with the substr() function of terraform

Closing as merged and released in 1.2.21