-
Notifications
You must be signed in to change notification settings - Fork 729
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
Extract to module #14482
Labels
Milestone
Comments
Per @StephenWeatherford it could also potentially be useful to do the reverse "take this module and inline it into the current file" |
Dupe of #8522, but this has more detail. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Make it easy to select a section of code in a bicep file and move that code into a module and replace the selected code with the instantiation of that now module.
For example, if I have a bicep file like the below:
If I highlight the storage account resource and execute an "extract to module" command, I should get something like the following:
main.bicep
storage.bicep (the command should ask me for this filename)
Note the command would have needed to notice that the
namePrefix
param was used in the resource declaration, and replicate that over to the module accordingly.The text was updated successfully, but these errors were encountered: