Bicep error/warning code - BCP082

This error or warning is similar to BCP057, it occurs when the referenced name doesn't exist, likely due to a typo. The compiler identifies and suggests a similarly named symbol.

Error/warning description

The name <name> doesn't exist in the current context. Did you mean <name>?

Solutions

Fix the typo.

Examples

The following example raises the error because substirng looks like a typo.

var prefix = substirng('1234567890', 0, 11)

You can fix the error by using substring instead:

var prefix = substring('1234567890', 0, 11)

Next steps

For more information about Bicep error and warning codes, see Bicep warnings and errors.