{"action":"closed","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/vsts-docs/issues/2757","repository_url":"https://api.github.com/repos/MicrosoftDocs/vsts-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/vsts-docs/issues/2757/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/vsts-docs/issues/2757/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/vsts-docs/issues/2757/events","html_url":"https://github.com/MicrosoftDocs/vsts-docs/issues/2757","id":390627461,"node_id":"MDU6SXNzdWUzOTA2Mjc0NjE=","number":2757,"title":"How to reference variables","user":{"login":"hferentschik","id":296354,"node_id":"MDQ6VXNlcjI5NjM1NA==","avatar_url":"https://avatars0.githubusercontent.com/u/296354?v=4","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"vtbassmatt","id":714283,"node_id":"MDQ6VXNlcjcxNDI4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/714283?v=4","gravatar_id":"","url":"https://api.github.com/users/vtbassmatt","html_url":"https://github.com/vtbassmatt","followers_url":"https://api.github.com/users/vtbassmatt/followers","following_url":"https://api.github.com/users/vtbassmatt/following{/other_user}","gists_url":"https://api.github.com/users/vtbassmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/vtbassmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtbassmatt/subscriptions","organizations_url":"https://api.github.com/users/vtbassmatt/orgs","repos_url":"https://api.github.com/users/vtbassmatt/repos","events_url":"https://api.github.com/users/vtbassmatt/events{/privacy}","received_events_url":"https://api.github.com/users/vtbassmatt/received_events","type":"User","site_admin":false},"assignees":[{"login":"vtbassmatt","id":714283,"node_id":"MDQ6VXNlcjcxNDI4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/714283?v=4","gravatar_id":"","url":"https://api.github.com/users/vtbassmatt","html_url":"https://github.com/vtbassmatt","followers_url":"https://api.github.com/users/vtbassmatt/followers","following_url":"https://api.github.com/users/vtbassmatt/following{/other_user}","gists_url":"https://api.github.com/users/vtbassmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/vtbassmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtbassmatt/subscriptions","organizations_url":"https://api.github.com/users/vtbassmatt/orgs","repos_url":"https://api.github.com/users/vtbassmatt/repos","events_url":"https://api.github.com/users/vtbassmatt/events{/privacy}","received_events_url":"https://api.github.com/users/vtbassmatt/received_events","type":"User","site_admin":false},{"login":"andyjlewis","id":14275472,"node_id":"MDQ6VXNlcjE0Mjc1NDcy","avatar_url":"https://avatars2.githubusercontent.com/u/14275472?v=4","gravatar_id":"","url":"https://api.github.com/users/andyjlewis","html_url":"https://github.com/andyjlewis","followers_url":"https://api.github.com/users/andyjlewis/followers","following_url":"https://api.github.com/users/andyjlewis/following{/other_user}","gists_url":"https://api.github.com/users/andyjlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjlewis/subscriptions","organizations_url":"https://api.github.com/users/andyjlewis/orgs","repos_url":"https://api.github.com/users/andyjlewis/repos","events_url":"https://api.github.com/users/andyjlewis/events{/privacy}","received_events_url":"https://api.github.com/users/andyjlewis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-12-13T11:05:05Z","updated_at":"2019-01-04T14:49:17Z","closed_at":"2019-01-04T14:49:17Z","author_association":"NONE","body":"The [variables sections](https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=example#variables) describes how variables can be defined, but it does not show how they then can be referenced later on (neither is there a link to where variables references would be described).\r\n\r\nApart of knowing the syntax on how to reference variables (I have seen {{}} as well as ${}, not sure what the difference is), I am wondering whether there are restrictions on where variables can be used. When and how are they substituted?\r\n\r\n---\r\n#### Document Details\r\n\r\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\r\n\r\n* ID: 7458d5b2-1bb7-7d87-7ce6-2b0c430b0155\r\n* Version Independent ID: edf5bbd3-a3f0-5426-e985-31290f8afd05\r\n* Content: [YAML schema - Azure Pipelines](https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=example)\r\n* Content Source: [docs/pipelines/yaml-schema.md](https://github.com/MicrosoftDocs/vsts-docs/blob/master/docs/pipelines/yaml-schema.md)\r\n* Product: **devops**\r\n* GitHub Login: @erickson-doug\r\n* Microsoft Alias: **macoope**"}}
{"actor":{"display_login":"vtbassmatt"}}