Skip to main content

Run a command

Runs a single command and captures its output.

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

targetScope = 'local'

extension utilities

resource sayHello 'Command' = {
command: 'gh auth status'
}

output stdout string? = sayHello.stdOut

View on GitHub