diff --git a/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 b/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 index 570f39191..5ca3d1020 100644 --- a/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 +++ b/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 @@ -688,8 +688,13 @@ function Set-TargetResource } } - if ( $restartReportingService -and (-not $SuppressRestart) ) + if ( $restartReportingService -and $SuppressRestart ) { + Write-Warning -Message $script:localizedData.SuppressRestart + } + elseif ( $restartReportingService -and (-not $SuppressRestart) ) + { + Write-Verbose -Message $script:localizedData.Restart Restart-ReportingServicesService -SQLInstanceName $InstanceName -WaitTime 30 } } diff --git a/DSCResources/MSFT_SqlRS/en-US/MSFT_SqlRS.strings.psd1 b/DSCResources/MSFT_SqlRS/en-US/MSFT_SqlRS.strings.psd1 new file mode 100644 index 000000000..ba1957932 --- /dev/null +++ b/DSCResources/MSFT_SqlRS/en-US/MSFT_SqlRS.strings.psd1 @@ -0,0 +1,6 @@ +# Localized resources for SqlSetup + +ConvertFrom-StringData @' + Restart = Restarting Reporting Services. + SuppressRestart = Suppressing restart of Reporting Services. +'@ diff --git a/README.md b/README.md index 306ed6ca7..f285c7164 100644 --- a/README.md +++ b/README.md @@ -775,7 +775,7 @@ Initializes and configures SQL Reporting Services server. * **`[Boolean]` UseSsl** _(Write)_: If connections to the Reporting Services must use SSL. If this parameter is not assigned a value, the default is that Reporting Services does not use SSL. -* **`[Boolean]` SupressRestart** _(Write)_: Reporting Services need to be restarted +* **`[Boolean]` SuppressRestart** _(Write)_: Reporting Services need to be restarted after initialization or settings change. If this parameter is set to $true, Reporting Services will not be restarted, even after initialisation.