Skip to main content

Assert a condition

Fails the deployment when a condition is not met.

Requires the Utilities extension to be registered in bicepconfig.json — see Installation.

targetScope = 'local'

extension utilities

resource assert 'Assert' = {
name: 'This should fail!'
condition: false
}

View on GitHub