BCP338
This diagnostic occurs when Bicep can't resolve a parameter name in a Bicep parameters file.
Description
Failed to evaluate parameter <parameter-name>: <diagnostic-message>.
Level
Error
Solution
Check the value of the parameter.
Examples
The following Bicep parameters file produces the error because the 'testEnvironmentVariable' environment variable can't be found:
using 'main.bicep'
param parTest = readEnvironmentVariable('testEnvironmentVariable')
It could be because the environment variable isn't defined at the user or system level. For more information, see the readEnvironmentVariable()
function.
Next steps
To learn more about Bicep diagnostics, see Bicep core diagnostics.