Error while running DSC configuration
Ankita-Chaudhari opened this issue · comments
Hi,
I am using this module to install the VSTS agent. Find my configuration file below :
Configuration VSTSAgentInstall
{
Import-DscResource -ModuleName 'VSTSDsc'
node 'localhost'
{
VSTSAgent VSTSAgentInstall #ResourceName
{
DestinationPath = "C:\Agent"
PAT = "Personal Access Token"
Pool = "Default"
AgentUri = "https://vstsagentpackage.azureedge.net/agent/2.133.3/vsts-agent-win-x64-2.133.3.zip"
AccountUri = "https://XXXX.visualstudio.com"
}
}
}
When I run the above configuration file I get the following error :
Cannot find a process with the name "Agent.Listener". Verify the process name and call the cmdlet again.
+ CategoryInfo : ObjectNotFound: (Agent.Listener:) [], CimException
+ FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand
+ PSComputerName : localhost
Cannot find a process with the name "AgentService". Verify the process name and call the cmdlet again.
+ CategoryInfo : ObjectNotFound: (AgentService:) [], CimException
+ FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand
+ PSComputerName : localhost
The PowerShell DSC resource '[VSTSAgent]VSTSAgentInstall' with SourceInfo '::8::9::VSTSAgent' threw one or more non-terminating
errors while running the Test functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational.
Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName : localhost
The zip file do not get downloaded in the mentioned destination path. I am not sure how to resolve this issue. Could you please help me understand and resolve it.
Thanks in advance