Closed dazinator closed 1 year ago
Could you provide the full template for main.bicep
and modules/load-balancer.bicep
?
I tried to create a minimal reproduction but didn't run into any errors with the following templates:
main.bicep
module mod 'mod.bicep' = {
name: 'mod'
params: {
frontEndIpConfigurationName: 'frontEndIpConfigurationName'
}
}
mod.bicep
param frontEndIpConfigurationName string
The BCP037
error posted would be raised when the module has no parameter named "frontEndIpConfigurationName" and no parameters remained unspecified. Had modules/load-balancer.bicep
been saved with the new parameter when you ran into the error?
@jeskew i've updated to latest bicep version since it happened, and I can no longer reproduce. I would like to think I had checked the file was saved, however perhaps there was an issue. Happy to close for now, will reopen if it crops up again.
Bicep version
Bicep CLI version 0.11.1 **(030248df55)**
Describe the bug I moved my load balancer resource into a module, and exposed a parameter for the front end ip config name:
In
main.bicep
I included this module and set this paramNo editor warnings or errors at this point. Proceeded to deploy - resulted in an error
Renaming the parameter from
frontEndIpConfigurationName
to something else solves the problem.It seemed to me like this parameter name has some kind of special treatment in bicep.
To Reproduce As per above
Additional context