Skip to content

Latest commit

 

History

History
105 lines (80 loc) · 2.58 KB

File metadata and controls

105 lines (80 loc) · 2.58 KB
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

variables.name definition

:::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

Properties

:::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

Remarks

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.

Examples

variables:
- name: one
  value: initialValue
- name: two
  value: value2

See also