I was creating a route table in Bicep and using an example from MSFT, see example here.
The example uses the 'contains' function which throws a warning when deploying with a suggestion to simplify the syntax. Below you can see the warning:
The warning links to the Linter rule - use safe access page.
The suggested change can be seen below. It still performs the same function - it checks if the value exists, if it does, it uses it, if not it sets the value to null.
The updated example can be found on Github here (it uses routes for Databricks as an example, but can be replaced with your own routes).
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.