Azure devOps 2020 RTW - 无法登录到 Azure CLI - 使用 PAT
Azure devOps 2020 RTW - Cannot login to Azure CLI - Using PAT
我正在尝试使用 Azure CLI 使用以下命令访问 Azure DevOps 服务器 2020
Link
令牌具有完全权限,我可以从同一工作站使用 Web 门户访问服务器。
从该工作站对同一服务器的 RestAPI 调用有效
出现以下错误
Creating connection with personal access token.
Failed to authenticate using the supplied token.
Command ran in 28.202 seconds (init: 0.286, invoke: 27.916)
Suppress exception:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 60, in <module>
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 53, in <module>
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 502, in get_current_account_user
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 511, in get_subscription
knack.util.CLIError: Please run 'az login' to setup account.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\decorators.py", line 74, in _wrapped_func
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\decorators.py", line 57, in _decorator
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\telemetry.py", line 522, in _get_user_azure_id
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 504, in get_current_account_user
knack.util.CLIError: There are no active accounts.
Suppress exception:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 60, in <module>
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 53, in <module>
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\decorators.py", line 74, in _wrapped_func
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\telemetry.py", line 532, in _get_azure_subscription_id
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 528, in get_subscription_id
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 511, in get_subscription
knack.util.CLIError: Please run 'az login' to setup account.
我的解决方案是
安装 Azure-Cli 测试版 - https://aka.ms/installazurecliwindowsbeta
设置以下 REQUESTS_CA_BUNDLE - PEM format
我正在尝试使用 Azure CLI 使用以下命令访问 Azure DevOps 服务器 2020 Link 令牌具有完全权限,我可以从同一工作站使用 Web 门户访问服务器。
从该工作站对同一服务器的 RestAPI 调用有效
出现以下错误
Creating connection with personal access token.
Failed to authenticate using the supplied token.
Command ran in 28.202 seconds (init: 0.286, invoke: 27.916)
Suppress exception:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 60, in <module>
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 53, in <module>
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 502, in get_current_account_user
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 511, in get_subscription
knack.util.CLIError: Please run 'az login' to setup account.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\decorators.py", line 74, in _wrapped_func
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\decorators.py", line 57, in _decorator
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\telemetry.py", line 522, in _get_user_azure_id
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 504, in get_current_account_user
knack.util.CLIError: There are no active accounts.
Suppress exception:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 60, in <module>
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-2g1ftftt\azure\cli\__main__.py", line 53, in <module>
SystemExit: 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\decorators.py", line 74, in _wrapped_func
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\telemetry.py", line 532, in _get_azure_subscription_id
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 528, in get_subscription_id
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-unpacked-wheel-_1bqfhco\azure\cli\core\_profile.py", line 511, in get_subscription
knack.util.CLIError: Please run 'az login' to setup account.
我的解决方案是
安装 Azure-Cli 测试版 - https://aka.ms/installazurecliwindowsbeta
设置以下 REQUESTS_CA_BUNDLE - PEM format