| title | variables.name definition |
|---|---|
| description | Define variables using name and full syntax. |
| ms.date | 04/02/2026 |
| monikerRange | <=azure-pipelines |
| author | juliakm |
| ms.author | jukullam |
:::moniker range="<=azure-pipelines"
Define variables using name and full syntax.
:::moniker-end
:::moniker range="<=azure-pipelines"
variables:
- name: string # Required as first property. Variable name.
value: string # Variable value.
readonly: boolean # Whether a YAML variable is read-only; default is false.:::moniker-end
:::moniker range="<=azure-pipelines"
Definitions that reference this definition: variables
:::moniker-end
:::moniker range="<=azure-pipelines"
name string. Required as first property.
Variable name.
:::moniker-end
:::moniker range="<=azure-pipelines"
value string.
Variable value.
:::moniker-end
:::moniker range="<=azure-pipelines"
readonly boolean.
Whether a YAML variable is read-only; default is false.
:::moniker-end
If you want to reference a variable group and define variables in the same variables section, you must use define your variables using name and full syntax.
variables:
- name: one
value: initialValue
- name: two
value: value2