Hello wewebplus,
The agent is able to successfully authenticate and connect to the Azure DevOps organization, as indicated by the successful GET request (HTTP 200) to the agent pool endpoint. However, the registration step fails during the POST request used to add the agent to the pool, which returns Forbidden.
This behavior typically occurs when the identity associated with the Personal Access Token (PAT) has permission to view or use the agent pool, but does not have sufficient permissions to register or manage agents in that pool.
Although the PAT is configured with Full Access, PAT scopes do not override Azure DevOps role-based access control (RBAC). The user who created the PAT must also have the appropriate Agent Pool permissions within the organization.
We recommend verifying the permissions for the PAT user by following these steps:
- Navigate to Azure DevOps → Organization Settings.
Select Agent Pools.
Open the agent pool being used (Pool ID 17 in your logs).
Go to Security.
Ensure the user who generated the PAT has either:
Administrator permissions on the agent pool, or
At minimum, permissions that include **Manage** and **Use**.
```Once the required permissions are granted, please try running the agent configuration again.
Additionally, please confirm the following:
The configuration is using the **organization URL** (e.g., `https://dev.azure.com/<org>`) and not a project-specific URL.
The PAT belongs to a user who is a **member of the Azure DevOps organization**.
After updating the permissions, re-running the `./config.sh` command should allow the agent to register successfully.
Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.