Bicep diagnostic code - BCP071
This diagnostic occurs when a function is given an incorrect number of arguments. For a list of system defined functions, see Bicep functions. To define you own functions, see User-defined functions.
Description
Expected <argument-count>, but got <argument-count>.
Level
Error
Solution
Provide the correct number of arguments.
Examples
The following example raises the diagnostic because split()
expects two arguments, but three arguments were provided:
var tooManyArgs = split('a,b', ',', '?')
You can fix the diagnostic by removing the extra argument:
var tooManyArgs = split('a,b', ',', '?')
Next steps
For more information about Bicep diagnostics, see Bicep core diagnostics.