Acces refused while trying to load a task into VSO using the TFS Cross Platform command line interface

Attempting to execute the following command:

tfx build tasks upload --task-path./SwapDeploymentSlots

will result in:

Error: request failed: denied (403) - access denied. [Username] requires Permission Management to complete the action. Contact your Team Foundation Server administrator for more information.

The user is a member of the Agent Pool Administrators group, as required by the TFS-CLI documentation.

Any ideas on how to solve this?

+5
source share
2 answers

Try adding the user to the Agent Pool Administrators group by completing the following steps:

  • Open your VSO account ( https://xxxxxx.visualstudio.com/ ) from the web portal.
  • Click the "Settings" button to open the "Control Panel".
  • Click the "Manage Security and Grouping" link.
  • Search for "[Agent Pools] \ Agent Pool Administrators" and select it on the "Security" tab.
  • Click the Add button on the Members tab to add the user to the group. enter image description here
+6
source

In TFS 2017 Update1 (installed in place), the steps are slightly different.

  • Open the server web portal.
  • Click "Settings" by clicking the transfer button in the upper blue menu.
  • Click on the menu item "Agent Pools".
  • Select the agent pool name that you want to process from the tree on the left.
  • Click the "Add" button to add a user (or select an existing one if one has already been added).
  • Click on the "Role" cell of the grid, then select "Administrator" from the drop-down menu.
  • Repeat steps 4,5,6 for the agent pool you need.

enter image description here

+1
source

Source: https://habr.com/ru/post/1241553/


All Articles