-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bicep-generated files should include an autogenerated header #800
Comments
Discussed it at the team meeting today. The consensus appears to have template code generators use the top-level
Considerations:
|
One thing that would be nice in the case of other generators is a way to add metadata around that generator's use, like a kind of user-agent string — for example with a PowerShell-based generator, the PowerShell version used. That would help us understand where to make investments/who to optimise our generator for. Whether that is just the |
When a resource file is created in visual studio, a programming language-specific file is autogenerated for resource access. At the top is a comment that looks something like this:
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
We should have something similar for bicep - a comment that says the file was autogenerated and the bicep version.
This discourages users from modifying the bicep file directly; it also (as @alex-frankel pointed out) allows the service to potentially collect telemetry on the # of deployments using compiled templates.
The text was updated successfully, but these errors were encountered: