Hello there,
The Set-PSSessionConfiguration cmdlet changes the properties of the session configurations on the local computer and not on the ADO
PowerShell context expects the user name to be the fully qualified name (domain\username or machine_name\username).
Once you use the fully qualified name format, you can able to successfully connect to the remote machine via PowerShell from the pipelines.
Use this task to execute PowerShell scripts on remote machines using PSSession and Invoke-Command for remoting. PowerShellOnTargetMachines@3 - PowerShell on target machines v3 task https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/powershell-on-target-machines-v3?view=azure-pipelines
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–