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
Wait for the service to be fully ready after restart before attempting
@@ -481,7 +481,7 @@ function Set-TargetResource
481
481
InitializeReportServer will fail on SQL Server Standard and
482
482
lower editions.
483
483
#>
484
-
if (-not$rsConfiguration.IsInitialized)
484
+
if (-not($rsConfiguration|Test-SqlDscRSInitialized))
485
485
{
486
486
Write-Verbose-Message "Did not help restarting the Reporting Services service, running the CIM method to initialize report server on $DatabaseServerName\$DatabaseInstanceName for instance ID '$($rsConfiguration.InstallationID)'."
Wait for the service to be fully ready after restart before attempting
@@ -850,81 +842,3 @@ function Test-TargetResource
850
842
851
843
$result
852
844
}
853
-
854
-
<#
855
-
.SYNOPSIS
856
-
A wrapper for Invoke-CimMethod to be able to handle errors in one place.
857
-
858
-
.PARAMETERCimInstance
859
-
The CIM instance object that contains the method to call.
860
-
861
-
.PARAMETERMethodName
862
-
The method to call in the CIM Instance object.
863
-
864
-
.PARAMETERArguments
865
-
The arguments that should be
866
-
#>
867
-
functionInvoke-RsCimMethod
868
-
{
869
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('AvoidThrowOutsideOfTry','', Justification ='Because the code throws based on an prior expression')]
0 commit comments