Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/Bicep.Cli/Commands/RootCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,28 @@ bicep jsonrpc --pipe /path/to/pipe.sock
bicep jsonrpc --socket 9853
bicep jsonrpc --stdio

{exeName} snapshot [options] <file>
[Experimental] Generates or validates a deployment snapshot from a .bicepparam file.

Arguments:
<file> The input .bicepparam file

Options:
--mode <mode> Sets the snapshot mode. Valid values are ( Overwrite | Validate ).
Overwrite: Generates a new snapshot and saves it to <file>.snapshot.json.
Validate: Compares the generated snapshot against an existing snapshot file.
--tenant-id <id> The tenant ID to use for the deployment.
--subscription-id <id> The subscription ID to use for the deployment.
--resource-group <name> The resource group name to use for the deployment.
--location <location> The location to use for the deployment.
--deployment-name <name> The deployment name to use.

Examples:
bicep snapshot params.bicepparam
bicep snapshot params.bicepparam --mode Overwrite
bicep snapshot params.bicepparam --mode Validate
bicep snapshot params.bicepparam --subscription-id 00000000-0000-0000-0000-000000000000 --resource-group my-rg

"; // this newline is intentional

io.Output.Writer.Write(output);
Expand Down
Loading