Add context menu option to generate snapshots for .bicepparam files#19024
Open
verschaevesiebe wants to merge 1 commit intoAzure:mainfrom
Open
Add context menu option to generate snapshots for .bicepparam files#19024verschaevesiebe wants to merge 1 commit intoAzure:mainfrom
verschaevesiebe wants to merge 1 commit intoAzure:mainfrom
Conversation
Contributor
Author
|
The "Generate Snapshot" command currently only uses overwrite mode (creates or updates the
I chose overwrite as the default since it's the most straightforward use case for the VS Code UI. If there's a need to also support validate mode (e.g., as a separate command), I'm happy to add that. |
Comment on lines
+63
to
+69
| tenantId: null, | ||
| subscriptionId: null, | ||
| resourceGroup: null, | ||
| location: null, | ||
| deploymentName: null, | ||
| cancellationToken: cancellationToken, | ||
| externalInputs: []); |
Member
There was a problem hiding this comment.
I think realistically we'd need a way for someone to supply these inputs, but this would result in a complex UI experience, unless we're able to save the values somewhere.
Contributor
There was a problem hiding this comment.
I think we can build a tree view for selecting scope later. It would be great if both deploy pane and the snapshot command can share the same UI.
shenglol
reviewed
Mar 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a context menu option to generate snapshots for
.bicepparamfiles in VS Code. Users can now right-click a Bicep parameters file and select "Generate Snapshot" to create a.snapshot.jsonfile, making the existingbicep snapshotCLI command accessible directly from the editor.Fixes #18861 (only UI, pattern needs to be checked with PG if feature is wanted, i would assume the generate button is already sufficient)
generate.snapshot.vsc.ui.mp4
Example Usage
Before: Users had to manually run
bicep snapshot <file>.bicepparamfrom the command line.After: Users can right-click any
.bicepparamfile in VS Code and select "Bicep: Generate Snapshot":Context Menu Locations:
Example Output:
Snapshot generation succeeded. Created file c:\path\to\file.snapshot.json
The generated
.snapshot.jsonfile will appear alongside the.bicepparamfile.Checklist
Microsoft Reviewers: Open in CodeFlow