aztfmod / terraform-provider-azurecaf

Terraform provider for the Terraform platform engineering for Azure
MIT License
174 stars 93 forks source link

Improve azurerm_windows_virtual_machine Resource Name Length up to 64 characters #199

Closed schoenr79 closed 1 year ago

schoenr79 commented 1 year ago

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_virtualmachine 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

arnaudlh commented 1 year ago

Closing as merged and released in 1.2.21