Open MikaelEdebro opened 1 year ago
The schema appears to be different:
For windowsFunctionAppStackSchema()
:
"node_version": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{
"~12",
"~14",
"~16",
"~18",
}, false),
For linuxFunctionAppStackSchema()
:
"node_version": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{
"12",
"14",
"16",
"18",
}, false),
But needs check if this is imposed by the Azure API.
EDIT: Was introduced in #15884
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
3.75.0
Affected Resource(s)/Data Source(s)
azurerm_linux_function_app, azurerm_linux_windows_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Expected values should be equal between Windows and Linux resource. Currently Windows only accepts
~18
, and Linux accepts only18
.Actual Behaviour
Currently
azurerm_linux_function_app
accepts values without~
, like this:While on
azurerm_windows_function_app
, the value needs to be~18
:Preferably both Windows and Linux should accept the same values.
Steps to Reproduce
terraform plan
Important Factoids
I don't think so, this seems like a input validation issue
References
No response