Agent Name: "test agent"
Agent Pool: "Test Pool"
When I am passing these only test and Test is taking. How to make these work with spaces in commant to execute.
-vstsagent is script file variable name (Agentscript.ps1)
parameters('AgentName') is json template parameter.
Please suggest it for total command.
"commandToExecute": "[concat('powershell.exe -ExecutionPolicy Unrestricted -Command .\\Agentscript.ps1 -vstsAccount ', parameters('VSTSAccount'),' -vstsAgent ', parameters('AgentName'), '-vstsPoolName ', parameters('AgentPool'))]"