Data Infrastructure Bicep ExtensionThis extension is designed to help my team and I adhere to some syntax rules. The current syntax warnings are:
There is also functionality for checking if a module used is outdated. This is done by making use of the Azure identity package, this should use any available login to authenticate with the container registry. Having access to the container registry then allows us to create a list of all repos and tags in the current file and then on file change, check the bicep module for outdated modules. When you open a .bicep file it will "prime" the repositories, this means that is running through the file and finding the latest tag for all the modules in the file, it also checks if there is a "main" version of the module. When you save the file (which vscode does more on it's own then i thought) then the file will be checked for outdated modules of modules that are not using the "main" version, if available. It also check the types (currently only fields inside type arrays or objects) and parameters for the description decorator. This is done by converting the .bicep file to a json arm template and then looking up the type of parameter in the json object, if the description os not pressent a warning will be shown. |