You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a config that ensures two services (Databaseengine and SQLServerAgent) are running under the given service account. However, noticed couple of observations
Validation of SQLServerAgent always fails . I learnt that there is a known bug . Do you know when this will be fixed. Are there any alternative resource to validate SQLServerAgent service?
Sporadically, I have noticed these two services are not running though they were set to Automatiic . I am under impression restartservice = $true would restart the service if it is stopped. If not , can you please redirect me to the resource which would help to restart the service if it is not running.
@nabrond recently got a PR merged that fixed bugs. Please test the dev-version if that solves your problem. If not, please open a new issue with the problem you are seeing.
RestartService does only restart the service if a change was needed. It does not monitor if the service is running. The parameter description is a bit confusing here, I will get that fixed. Currently only the Service resource make sure a service is always started.
I have a config that ensures two services (Databaseengine and SQLServerAgent) are running under the given service account. However, noticed couple of observations
Validation of SQLServerAgent always fails . I learnt that there is a known bug . Do you know when this will be fixed. Are there any alternative resource to validate SQLServerAgent service?
Sporadically, I have noticed these two services are not running though they were set to Automatiic . I am under impression restartservice = $true would restart the service if it is stopped. If not , can you please redirect me to the resource which would help to restart the service if it is not running.
I have used the reference link https://github.com/PowerShell/SqlServerDsc/blob/dev/Examples/Resources/SqlServiceAccount/1-ConfigureServiceAccount-UserAccount.ps1
My config:
The text was updated successfully, but these errors were encountered: