使用 azure-devops-migration-tools 我无法将其连接到目标集合。
我正在从本地 tfs 服务器迁移到云 Azure DevOps。
我正在观察的问题:
[18:24:07 INF] TfsMigrationClient::GetDependantTfsCollection:AuthenticationMode(AccessToken)
[18:24:07 INF] TfsMigrationClient::GetDependantTfsCollection: Connecting with AccessToken
[18:24:07 INF] MigrationClient: Connecting to https://dev.azure.com/brands/
[18:24:07 ERR] Unable to configure store
Microsoft.TeamFoundation.TeamFoundationServerUnauthorizedException: TF30063: You are not authorized to access https://dev.azure.com/brands/. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
我的经理不久前使用过这个,并认为他记得当您运行它时会出现一个弹出窗口,要求您提供凭据 - 我从来没有收到任何类型的弹出窗口。我已经重新启动并清除了缓存。
它似乎正在寻找访问令牌。我确实在目标 Azure DevOps 帐户中生成了一个 - 在这种情况下我在哪里/如何使用它?
是否有不同的设置方法可以访问目的地或要求我输入密码?
我在 Powershell 中启动该工具
.\migration.exe execute -c configuration.json
我的 configuration.json 的内容 -
{
"Version": "11.9",
"LogLevel": "Verbose",
"TelemetryEnableTrace": false,
"workaroundForQuerySOAPBugEnabled": false,
"Source": {
"$type": "TfsTeamProjectConfig",
"Collection": "http://tgi-dev-004.10.local:8080/tfs/Ten_Projects/",
"Project": "TenSuite",
"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
"AllowCrossProjectLinking": false
},
"Target": {
"$type": "TfsTeamProjectConfig",
"Collection": "https://dev.azure.com/brands/",
"Project": "10e",
"ReflectedWorkItemIDFieldName": "Custom.ReflectedWorkItemId",
"AllowCrossProjectLinking": false
},
"WorkItemTypeDefinition": {
"sourceWorkItemTypeName": "targetWorkItemTypeName"
},
"GitRepoMapping": null,
"Processors": [
{
"$type": "WorkItemMigrationConfig",
"ReplayRevisions": true,
"PrefixProjectToNodes": false,
"UpdateCreatedDate": true,
"UpdateCreatedBy": true,
"UpdateSourceReflectedId": false,
"BuildFieldTable": false,
"AppendMigrationToolSignatureFooter": false,
"OrderBit": "[System.ChangedDate] desc",
"Enabled": true,
"LinkMigration": true,
"AttachmentMigration": true,
"AttachmentWorkingPath": "c:\\temp\\WorkItemAttachmentWorkingFolder\\",
"FixHtmlAttachmentLinks": true,
"WorkItemCreateRetryLimit": 5,
"PauseAfterEachWorkItem": false,
"FilterWorkItemsThatAlreadyExistInTarget": true,
"AttachmentMazSize": 480000000
}
]
}