| title | BCP338 |
|---|---|
| description | Failed to evaluate parameter <parameter-name>. |
| ms.topic | reference |
| ms.date | 10/30/2025 |
| ms.custom | devx-track-bicep |
This diagnostic occurs when Bicep can't resolve a parameter name in a Bicep parameters file.
Failed to evaluate parameter <parameter-name>: <diagnostic-message>.
Error
Check the value of the parameter.
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.
To learn more about Bicep diagnostics, see Bicep core diagnostics.