Error issuing service stop command when adding an availability group

Applies to…

  • DxEnterprise 19.0 and newer

Summary

When adding an availability group, an error may occur if there are SQL Server service dependencies running such as SQL Agent.

Event details

Log Name:      DH2i
Source:        DxLEngine
Date:          
Event ID:      1001
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      
Description:
Caught exception: System.ComponentModel.Win32Exception (0x80004005): Error issuing service stop command: A stop control has been sent to a service that other running services are dependent on at p.c(Int32 A_0) at DH2i.DxAGS.v() at DH2i.DxAGS.AddAGS()

Information

Stop the SQL Agent, PolyBase, and/or FDLauncher services and then retry the steps to add the availability group. Once the availability group has been added go back and start the necessary services again.