Example,
az deployment group create \
--parameters 'params.bicepparam' \
--parameters foo='inline value'
Here we can't do any validation for parameter foo
using validate-params
command (which can only use --template
argument value) but can with build-params
command (which can use either using
declaration or --template
argument value)
Example,
Following would be possible:
az deployment group create \
--template 'main.bicep'
--parameters 'params.bicepparam' \
--parameters foo='inline value' bar='another value'
--parameters param2.json
--parameters '{ //inline stringified json }'
But following won't be possible:
az deployment group create \
--template 'main.bicep'
--parameters param2.json
--parameters foo='inline value'
--parameters 'params.bicepparam' \
--parameters bar='another value'
--parameters '{ //inline stringified json }'
In other words, we would need to enforce the following:
.bicepparam
file will always be provided first (only one file allowed)- all other (none
.bicepparam
) parameters would be combined and then validated as the.bicepparam
file is being built