Hi,
Using azure arm builder and trying to use an env var for the managed image name as follows:
variable “version” {
type = string
default = “${env(“MY_VERSION”)}”
}
source “azure-arm” “foo” {
managed_image_name = “bar${var.version}”
}
Results in the following error:
The setting managed_image_name must match the regular expression “[1][\w-._)]{0,79}$”, and not end with a ‘-’ or ‘.’.
Is it not possible to reference an env var in managed image name, or is there something I’m doing wrong?
Thanks!
-
^_\W ↩︎