A script token is a key/value pair that you reference using {{..}}
delimiters. At runtime, the placeholder is replaced with the corresponding value.
This allows you to abstract and defer values until execution time. Script tokens are
defined in the ScriptTokens key in product.json
and can be used within it and any template.json
definition. Additionally, there are two system-defined script tokens documented below.
| Token Name | Value |
|---|---|
| ProductName | Automatically set to your product's name. |
| TemplateName | Set to the name of the current template being quenched (available only within the template scope). |
ReleaseVersion in your product.json
{
"ScriptTokens": {
"ReleaseVersion": "1.0.0"
}
}
Can be used in a template:
{
"VersionStampScript": "INSERT ProductVersions(Product, Version) VALUES( '{{ProductName}}', '{{ReleaseVersion}}')"
}
Product level script tokens can be overridden via appSettings or environment variables.