Utilities
Compile a self-contained Bicep file to ARM JSON
bicep-build is an offline Bicep compiler node for a single self-contained source file.
v0.47.16 on Trickest
Free plan: 1 user, 3 execution slots, no card.
overview
What bicep-build does
Compile one self-contained local Bicep source file into an ARM JSON template. Module restoration is disabled; no deployment or Azure credentials are used.
Compile a supplied file with bicep build main.bicep --no-restore --stdout and return the ARM deployment template JSON. A temporary copy receives the .bicep extension, so a platform text-file name does not prevent compilation.
The source must be a nonempty regular file of at most 1 MiB. No companion modules, data files, bicep configuration or cached registry modules are supplied. Compilation has a 120-second limit and 16 MiB stdout limit. Warnings can accompany a successful template; syntax or resolution failures produce no template.
Packaged version: 0.47.16. Upstream license: MIT.
source github.com/Azure/bicep/tree/3f73e1a234fcdf3907d606504aa2ff546921da03 · v0.47.16 on Trickest
image quay.io/trickest/bicep-build:0.47.16
use cases
bicep-build use cases
Inspect generated resource declarations
Review ARM resource types and properties compiled from Bicep.
Check parameter defaults
Confirm supplied defaults appear in the generated template.
Catch compilation errors
Reject invalid syntax or unresolved modules before a deployment stage.
reference
bicep-build inputs and flags
| Name | Type | Flag | Description |
|---|---|---|---|
| input | FILE | --input | Self-contained Bicep source file, at most 1 MiB. Companion files and registry modules are not available. |
Showing key inputs. bicep-build exposes 1 inputs in total.
example
bicep-build command examples
node /app/run.cjs --input ./input.txt ./outputguidance
bicep-build vs alternatives
Use bicep-build to inspect generated ARM JSON before deployment. It uses no Azure credentials and performs no deployment. Registry modules fail when they require restoration; use a self-contained source file.
faq
bicep-build FAQ
related
More Utilities tools
dnsgen
Wordlist and mined-word subdomain permutation.
pup
CSS selectors over HTML, the jq counterpart for markup.
unfurl
Extract chosen URL parts from stdin into clean line lists.
browser-fetch
Headless Chromium render: requested URL, final URL, status, and title next to the page.
cewl
Spider a URL and return a wordlist for password crackers.
csvkit
SQL on one CSV. The table name is the file stem.
Run bicep-build yourself
The saved verifier confirmed an ARM template containing one Microsoft.Storage/storageAccounts resource, API version 2023-05-01 and the supplied storageName default. No Azure resource was deployed, and the complete template was not retained. The command shows the container entrypoint with example paths.
Facts on this page come from the live Trickest tool library.