|
TF400813: Resource is not available for anonymous access. Client authentication is required.
Delete pipeline agent command:
It was found that the deletion could not be successful and would report an error as above. The detailed error log is as follows: [2020-09-08 13:11:34Z WARN VisualStudioServices] Basic issued token provider instance 6503226 requires an interactive prompt which is not allowed by the current settings [2020-09-08 13:11:34Z ERR VisualStudioServices] GET request to https://xx.itsvse.com/_apis/conn ... mp;lastChangeId64=8 is not authorized. Details: TF400813: Resource is not available for anonymous access. Client authentication is required. [2020-09-08 13:11:34Z INFO VisualStudioServices] Finished operation Location.GetConnectionData [2020-09-08 13:11:34Z INFO Terminal] WRITE LINE: Failed: Removing proxy from server. [2020-09-08 13:11:34Z ERR Agent] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resource is not available for anonymous access. Client authentication is required. at Microsoft.VisualStudio.Services.Common.VssHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken CancellationToken) at Microsoft.VisualStudio.Services.Common.VssHttpRetryMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync(HttpRequestMessage message, HttpCompletionOption completionOption, Object userState, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.SendAsync[T](HttpRequestMessage message, Object userState, CancelToken cancellationToken) CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.GetConnectionDataAsync(ConnectOptions GetConnectionDataAsync(ConnectOptions, connectOptions, Int64 lastChangeId, CancellationToken cancellationToken, Object userState) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.GetConnectionDataAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.WebApi.Location.VssServerDataProvider.ConnectAsync(ConnectOptions connectOptions, Int32 lastChangeId, CancellationToken cancellationToken) ConnectAsync(ConnectOptions connectOptions, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.LocationServer.ConnectAsync(VssConnection jobConnection) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.IsHostedServer(String serverUrl, ConfigurationManager.IsHostedServer(String serverUrl, VssCredentials credentials) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.UnconfigureAsync(CommandSettings ConfigurationManager.UnconfigureAsync(CommandSettings(command)) at Microsoft.VisualStudio.Services.Agent.Listener.Agent.ExecuteCommand(CommandSettings command) [2020-09-08 13:11:34Z ERR Terminal] WRITE ERROR: TF400813: Resource is not available for anonymous access. Client authentication is required. Connecting to azure devops server 2020 using vsts-agent Configuration agent client can log in via PAT, Negotiate, Integrated, Alternate.
The reason for the error is that access to the api interface does not pass authentication, which prevents the pipeline agent from being removed properly.
Solution
Open IIS Configuration Manager, find the "Azure DevOps Server" site, find the authentication function, select Windows authentication, open the "Provisioning Programs" on the right side, in the available programs, select Negotiate-> Add, OK. Add, OK, as shown in the following figure:
Re-execute the Remove Pipeline Proxy command, enter "Negotiate" as the authentication method, and enter the administrator account and password to successfully remove it, as shown below:
(End) |
Previous articleAngular 11 series (16) page parsing HTML source codeNext article:Azure DevOps 2020 (four) using Pipelines to compile jobs
|