TF400813: 资源不可用于匿名访问。需要进行客户端身份验证。
Delete pipeline agent command:
If it is found that the deletion cannot be successful, an error will be reported 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 tohttps://xx.itsvse.com/_apis/conn ... mp;lastChangeId64=8is not authorized. Details: TF400813: Resources are 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: The agent is being removed from the server [2020-09-08 13:11:34Z ERR Agent] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: TF400813: Resources are 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) 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, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Location.Client.LocationHttpClient.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, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.LocationServer.ConnectAsync(VssConnection jobConnection) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.IsHostedServer(String serverUrl, VssCredentials credentials) at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.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: The resource is not available for anonymous access. Client authentication is required. Use vsts-agent to connect to Azure DevOps Server 2020 to configure the proxy client, and you can log in through PAT, Negotiate, Integrated, and Alternate.
The reason for the error isThe access API interface failed to pass authentication, resulting in the pipeline agent not being able to delete normally。
solution
Open IIS Configuration Manager, find the "Azure DevOps Server" site, find the authentication function, select Windows Authentication, open "Provider" on the right, and select Negotiate-> Add among the available programs, OK, as shown in the figure below:
Run the Delete Pipeline Agent command again, enter "Negotiate" as the authentication method, enter the administrator account and password, and you can successfully delete it, as shown in the figure below:
(End)
|