Suggestion: Refactor: extract a property into a parameter ("create parameter") #14535
Labels
devdiv
Related to Bicep tooling efforts in DevDiv
enhancement
New feature or request
story: refactoring
Milestone
Is your feature request related to a problem? Please describe.
I often start to write a bicep template by creating a resource (manually or exported from existing resource) and then add parameters and potential logic from there.
Adding parameters is a tedious and time consuming task.
Describe the solution you'd like
It would be really nice to be able to create a parameter from any property in my template by for example right-clicking and choosing "create parameter" or by setting the cursor on a property and use a command for "create parameter".
I would expect the parameter to have the same name and type as the property (maybe even a resource derived type if that feature is enabled) as the property and have a default value of what is currently assigned to the property.
The property should then have the parameter reference as a value.
If the property has a description in the type definition I would also expect the parameter to have the same description.
The text was updated successfully, but these errors were encountered: