VSTS - allow Scripts to Access OAuth Token in Release Management
In my case, this option is on Build & Realese / Task / Phase (Run on Agent) / Allow scripts to access OAuth token
or
Please Find of attachment
Found it. First need to 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".