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.
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
use cases
Where bicep-build fits
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
Run bicep-build
node /app/run.cjs --input ./input.txt ./outputguidance
Choosing bicep-build
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 questions
related
More Utilities tools
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.
dnsgen
Wordlist and mined-word subdomain permutation.
duckdb
In-process SQL on CSV, JSON, and Parquet. No server.
edge-tts
Microsoft Edge neural speech from text or a script file. No API key.
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.