Agent v2.164.0
Log: Agent_20200101-215536-utc.log
TFS version: 17.153.29522.3 (AzureDevOps2019.Update1.1)
I tried enable all type auth in iis

I looked at all the links that I found in Google: #1500 #2214 #1839 #759 #2565
What am I doing wrong?
I am having the exact same issue. If I use negotiate and pass in a username and password the agent installs correctly however if I use a pat it gives:
TF400813: Resource not available for anonymous access. Client authentication required.
https://developercommunity.visualstudio.com/solutions/802663/view.html
Use "https://[servername]/[organizationname]"
@alexanderwieland's solution worked for me. Bizarre that it works without the collection/org name on a Negotiate but not with a PAT...and that there's no obvious documentation of this.
https://developercommunity.visualstudio.com/solutions/802663/view.html
Use "https://[servername]/[organizationname]"
@alexanderwieland,
OMG!! It's work, many thanks!
I had the same issue with an OnPrem Azure DevOps Server 2019 Update 1 and tried different things, but my college finally noticed, that the UI was missing an important part.
The fix: Our Azure DevOps Service account needed __write__ permissions on this directory:
C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys
@alexanderwieland What a life saver. Great answer!
Most helpful comment
https://developercommunity.visualstudio.com/solutions/802663/view.html
Use "https://[servername]/[organizationname]"