-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hello I am using this task to deploy my service in an azure vm and getting the following error
[server]: Attempting to locate [ExampleService]
2024-05-14T05:26:47.0754716Z [servername]: ***dentified [Example Service] installation directory [Path of service directory]
2024-05-14T05:26:47.0767834Z [servername]: Copying [C:\azagent\A1_work\8\drop\XXX] to [Path of service directory]
2024-05-14T05:26:48.7505135Z [servername]: Starting [ExampleService]
2024-05-14T05:26:56.9634504Z ##[error][servername]: Service responded with [7]. See https://docs.microsoft.com/en-us/windows/desktop/cimwin32prov/startservice-method-in-class-win32-service for details.
2024-05-14T05:26:57.0267148Z ##[section]Finishing: Deploy Windows Service
The task appears as follows:
- task: MDSolutions.WindowsServiceManagerWindowsServiceManager.WindowsServiceManager.WindowsServiceManager@4
displayName: 'Deploy Windows Service'
inputs:
DeploymentType: DeploymentGroup
ServiceName: '$(ServiceName)'
ArtifactPath: '$(System.DefaultWorkingDirectory)/XXXX'
InstallService: true
InstallationPath: '$(System.DefaultWorkingDirectory)/XXX/ExampleServicehost.exe'
RunAsUsername: username
RunAsPassword: password
InstallTopShelfService: true