Skip to main content

Utilities

General purpose helpers for Bicep deployments, such as running scripts and generating values.

Community Maintained

Version0.0.1
Artifactbr:ghcr.io/anthony-c-martin/bicep-ext-utilities:0.0.1
Sourcegithub.com/anthony-c-martin/bicep-ext-utilities
Publisheranthony-c-martin
LicenceMIT
CategoryUtilities

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 typePurpose
WaitPause for a period, for example while another resource settles.
ScriptRun a script as part of the deployment.
CommandRun a single command and capture its output.
AssertFail 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.
  • Command and Script are 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.