Utilities
General purpose helpers for Bicep deployments, such as running scripts and generating values.
Community Maintained
| Version | 0.0.1 |
| Artifact | br:ghcr.io/anthony-c-martin/bicep-ext-utilities:0.0.1 |
| Source | github.com/anthony-c-martin/bicep-ext-utilities |
| Publisher | anthony-c-martin |
| Licence | MIT |
| Category | Utilities |
Installation
Register the extension in bicepconfig.json:
{
"experimentalFeaturesEnabled": {
"localDeploy": true,
"ociEnabled": true
},
"implicitExtensions": [],
"extensions": {
"utilities": "br:ghcr.io/anthony-c-martin/bicep-ext-utilities:0.0.1"
}
}
Then reference it from your Bicep file:
extension utilities
Overview
A collection of general purpose helpers for local deployments. The extension needs no configuration:
extension utilities
| Resource type | Purpose |
|---|---|
Wait | Pause for a period, for example while another resource settles. |
Script | Run a script as part of the deployment. |
Command | Run a single command and capture its output. |
Assert | Fail the deployment when a condition is not met. |
Example
targetScope = 'local'
extension utilities
resource settle 'Wait' = {
duration: 'PT30S'
}
resource version 'Command' = {
command: 'git'
arguments: ['rev-parse', '--short', 'HEAD']
}
output commit string = version.stdout
Notes
- These resources run commands on the machine performing the deployment, with that machine's privileges. Treat their inputs as you would any other script input.
CommandandScriptare not idempotent by nature — they execute on every deployment.
Samples
4 example Bicep files are available under Samples.
Resource types
This extension exposes 4 resource types, documented under Reference.
Reference generated from ghcr.io/anthony-c-martin/bicep-ext-utilities:0.0.1 on 2026-08-23.