Nothing gets substituted on the plan stage and later, VM gets created with tags that literally have <%=username%> as value
At same time this piece of code:
variable "prefix" {
description = "The prefix which should be used for all resources in this example"
default = "<%=instance.hostname%>"
}
variable "location" {
description = "The Azure Location (Region) in which all resources in this example should be created."
default = "<%=customOptions.location%>"
}
How are you deploying this currently? Is this a Terraform App Blueprint? Terraform Spec Instance? Or a Morpheus App Blueprint with 1 or more Terraform Spec Instances select? (Confusing I know )
I did some testing in 6.1.2 and it seems to be working for me. Not sure if this is an issue with 6.0.1 or something else. I did look through the release notes and not finding anything that looks related to this. Unfortunately i don’t have a 6.0.1 running to quickly test against.
Using your locals example below both the user variable examples produce the desired results.