0 votes
1 view
in Azure by (7.9k points)

In VSTS/VSO is it possible to gain access to the OAuth token from release management? The option is there in Build but I do not see it available from release. The URL below suggests that it's been implemented but the comments suggest otherwise.

https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/12980961-allow-scripts-to-access-oauth-token-in-release-man

1 Answer

0 votes
by (15.5k points)

Make sure that first you add a task for an environment. 

Once the task is added you can click on "Run on agent". This will open a a different view not available through oan of the tabs. Expand "Additional options" and check "Allow scripts to access OAuth token".

enter image description here

...