In the assembly definition for VSTS, you can declare a variable and allow it to change during the queue, as in this picture 
Can I do the same for a variable in the definition of Release?
I now have a definition for Release that has an environment called Sharepoint. In this environment, I have a PowerShell task to upload an assembly artifact zip file to Sharepoint Online. To upload a file using the SharePoint API, I need the credentials of the SharePoint account that I store as a variable for this Sharepoint environment. The problem is that Microsoft requires a password change for the Sharepoint account every 90 days (this is what our IT specialists told us). Therefore, storing my credentials in a variable in the environment is not a good choice if different developers would like to request a release from this version of the definition, and my password has been changed.
Is there a way to get an interactive prompt for SharePoint credentials if the developer wants to request a release?
In addition, since we use Azure Active Directory for Office365, Sharepoint, and VSTS, I wonder if I can extract the credentials from the createdBy field returned by the release API in https://www.visualstudio.com/en-us/docs/integrate/api/rm/releases#for-a-release-definition
and use it as an account for Sharepoint Online.
source
share