简体   繁体   English

TF.exe Git 权限认证问题

[英]TF.exe Git Permission Authentication Issue

I am trying to create a script that adds CreateBranch permissions to my repos in Azure DevOps .我正在尝试创建一个脚本,将CreateBranch权限添加到Azure DevOps中的我的存储库中。 I am able to do login and run my git commands from Powershell , but when it comes time to use tf.exe , I get authentication errors.我可以从Powershell登录并运行我的 git 命令,但是当需要使用tf.exe时,我会遇到身份验证错误。 This is what I have setup so far:这是我到目前为止设置的内容:

tf.exe git permission /deny:CreateBranch /group:[$project]\Contributors /collection:https://dev.azure.com/$organization/ /teamproject:$project /repository:$reponame

Here is my tf.exe.config for my proxy settings:这是我的代理设置的 tf.exe.config:

<system.net>
    <settings>
        <ipv6 enabled="true"/>
        <servicePointManager expect100Continue="false" />
    </settings>
    <defaultProxy useDefaultCredentials="true" enabled="true">
        <proxy usesystemdefault="True" />
    </defaultProxy>
</system.net>

And when I run my script, I get the following error:当我运行我的脚本时,我收到以下错误:

Setting branch policies设置分支策略

TF400324: Team Foundation services are not available from server https://dev.azure.com/ORGANIZATION . TF400324:Team Foundation 服务不可从服务器https://dev.azure.com/ORGANIZATION 获得 Technical information (for administrator): Unable to connect to the remote server技术信息(针对管理员):无法连接到远程服务器

I have been circulating Google and Bing for the past couple of days and I have not been able to fix it.在过去的几天里,我一直在传播 Google 和 Bing,但我无法修复它。 Does anyone have any ideas?有没有人有任何想法?

This kind of issue usually indicate there is some network issue which caused the connection failed.此类问题通常表明存在导致连接失败的网络问题。

An unexpected error occurred on a send.发送时发生意外错误。 Hadn't succeed to use tf command behind a proxy.没有成功在代理后面使用 tf 命令。

Please first remove the proxy setting in your environment and specify /login parameter when using that tf.exe git permission command /login:FabrikamUser@hotmail.com,FabrikamPassword请先删除您环境中的代理设置,并在使用该 tf.exe git 权限命令时指定/login参数/login:FabrikamUser@hotmail.com,FabrikamPassword

If you are using Personal Access Token, you could also specify /login:PAT Token如果您使用的是个人访问令牌,您还可以指定/login:PAT Token

You could also follow comment's suggestion directly access dev.azure.com/$organization from browser on same machine where you are running this command.您也可以按照评论的建议直接从运行此命令的同一台机器上的浏览器访问 dev.azure.com/$organization。 It will help to narrow down if issue related to your network environment or tf.exe command side.如果问题与您的网络环境或tf.exe命令端相关,这将有助于缩小范围。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM