How can I get VSCode Bicep linter to allow sys.map functions?

Dave Hirsch 0 Reputation points
2024-11-15T16:32:12.0233333+00:00

I have a bicep deployment system, using Bicep in VS Code and the Azure CLI. My bicep module is up to date (I run az bicep upgrade every time I see it is available).

I have a need to use the sys.map function, which executes just fine; that is a valid function. My problem is the Bicep is throwing the error code BCP108 "The function "map" does not exist in the namespace "sys"." How can I get Bicep to stop throwing this error, or at least disable it? I don't see a way to use #disable-next-line because I don't know what the rule name is.

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,179 questions
Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
240 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.