I am trying to apply Azure Pipeline Agent artifact while creating an Azure VM from the pipeline using Azure Dev Test Lab Create VM Task. I have provided all the valid values in the ARM Template(organization, pat, agent name, etc) but the specified artifact is failed to apply. here is the exception info Validating parameters Preparing agent installation location Checking for previously configured agent Downloading agent package Extracting agent package contents Getting agent installer path Installing agent
ERROR: Connecting to remote server localhost failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic.
The artifact failed to apply.
Anyone has any idea on why I am getting this exception? please help me if you have any information
After configuring WinRM before installing the artifacts, the issue is resolved.