-
When using PAT in configuration.json, a login dialog (AAD) appears.
Source and Target look like that in configuration.json: "Source": {
"Collection": "https://dev.azure.com/organization1/",
"Project": "origin",
"ReflectedWorkItemIDFieldName": "ReflectedWorkItemId",
"AllowCrossProjectLinking": false,
"PersonalAccessToken": "***"
},
"Target": {
"Collection": "https://dev.azure.com/organization1/",
"Project": "target",
"ReflectedWorkItemIDFieldName": "ReflectedWorkItemId",
"AllowCrossProjectLinking": false,
"PersonalAccessToken": "***"
}, |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
This tool required UI integration. PAT tokens are only supported for images. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick response and the clarification. |
Beta Was this translation helpful? Give feedback.
-
I also incorrectly thought that by passing in the password on the CLI I was passing in the token. Not sure what "images" means. Is there any environment variable or other way I can pass in the personal access token through my azure devops agent, without having to do the UI login? I also wanted to make this runnable by my azure devops agent on premise to allow long-running tasks for projects without being logged in on RDP. It is possible to enhance the tool with the parameter for |
Beta Was this translation helpful? Give feedback.
-
For PAT access to work I believe you should change AuthenticationMode from Prompt to AccessToken then there is no longer an interactive prompt... however I can't find it documented on what are the minimum PAT scopes required to use the tool. @MrHinsh is there some documentation on the correct PAT scopes required that I have missed? "Source": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/??????/",
"Project": "??????",
"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
"AuthenticationMode": "AccessToken",//<----change from Prompt to AccessToken
"AllowCrossProjectLinking": false,
"PersonalAccessToken": "???????....",
"LanguageMaps": {
"AreaPath": "Area",
"IterationPath": "Iteration"
}
} |
Beta Was this translation helpful? Give feedback.
-
@f2calv it is more likely that the documentation is missing :( |
Beta Was this translation helpful? Give feedback.
-
is there any update on this ? I am looking for some required scopes for migration |
Beta Was this translation helpful? Give feedback.
-
@kkorada Im not sure what you are asking about! @f2calv answered this one. Ill move it over to Discussions. |
Beta Was this translation helpful? Give feedback.
For PAT access to work I believe you should change AuthenticationMode from Prompt to AccessToken then there is no longer an interactive prompt... however I can't find it documented on what are the minimum PAT scopes required to use the tool. @MrHinsh is there some documentation on the correct PAT scopes required that I have missed?