-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xSQLServerServiceAccount: The ReportingServices service could not be found #930
Comments
Curious why you just don't set the |
I found the problem. There's an assumption that a default service will always be called "MSSQLSERVER". However, when RS is installed alone, it will default to "ReportServer". I have some code written up to work around this and better identify the service name for all service types. @johlju can you drop the "help wanted" tag? I will take care of this issue. |
@nabrond done! Thank you! |
Details of the scenario you tried and the problem that is occurring:
I have a two server setup:
I am using xSQLSeverSetup to install on both machines (which works fine). I am not setting the RSSvcAccount property on xSQLServerSetup. Rather, I am attempting to use xSQLServerServiceAccount to set the account for the Server running RS.
However, this fails with the following error message:
Reporting Services is installed and can be accessed via the Configuration Manager with the Server Name (SSRS) and instance (MSSQLSERVER) listed in the error message. For example:
The error looks like it originates from the Get-ServiceObject function...
When I manually execute this (and substitute the values) it does not find the the ReportServer service. However, if I remove the -and clause from the line that searches through $managedComputer.Services, then it does work and returns the ReportServer service.
So, perhaps something up with the regex? Or, is it possible I am not passing the right value to SQLInstanceName? Or, could it be something unexpected with my install?
The DSC configuration that is using the resource (as detailed as possible):
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
Windows Server 2012R2, SQL Server 2014 SP2, PowerShell5.1
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
SqlServer 21.0.17199
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
9.0.0.0
The text was updated successfully, but these errors were encountered: