@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88### Added
99
10+ - Added public command ` Request-SqlDscRSDatabaseScript ` to generate T-SQL scripts
11+ for creating report server databases. Wraps the ` GenerateDatabaseCreationScript `
12+ CIM method and supports configuring database name, language (LCID), and
13+ SharePoint mode ([ issue #2017 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2017 ) ).
14+ - Added public command ` Request-SqlDscRSDatabaseRightsScript ` to generate T-SQL
15+ scripts for granting permissions on report server databases. Wraps the
16+ ` GenerateDatabaseRightsScript ` CIM method and supports configuring database
17+ name, user name, remote connections, and Windows/SQL authentication types
18+ ([ issue #2019 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2019 ) ).
19+ - Added public command ` Set-SqlDscRSDatabaseConnection ` to set
20+ the report server database connection for SQL Server Reporting Services or
21+ Power BI Report Server. Wraps the ` SetDatabaseConnection ` CIM method and
22+ supports Windows, SQL Server, and Service Account authentication types
23+ ([ issue #2021 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2021 ) ).
1024- Added public command ` Set-SqlDscRSVirtualDirectory ` to set the virtual directory
1125 for Reporting Services applications. Wraps the ` SetVirtualDirectory ` CIM method
1226 and supports ReportServerWebService, ReportServerWebApp, and ReportManager
@@ -47,6 +61,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4761 Services configuration instances with consistent error handling. This function
4862 is used by ` Enable-SqlDscRsSecureConnection ` , ` Disable-SqlDscRsSecureConnection ` ,
4963 and the ` SqlRS ` resource.
64+ - Added private function ` Get-HResultMessage ` to translate common Windows HRESULT
65+ error codes into human-readable messages. Used by ` Invoke-RsCimMethod ` to
66+ provide actionable error messages when Reporting Services CIM methods fail
67+ without detailed error information.
5068- ` Invoke-ReportServerSetupAction `
5169 - Now uses ` Format-Path ` with ` -ExpandEnvironmentVariable ` to expand environment
5270 variables in all path parameters (` MediaPath ` , ` LogPath ` , ` InstallFolder ` )
@@ -185,6 +203,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
185203 - Refactored to use the public command ` Set-SqlDscRSVirtualDirectory ` for
186204 setting virtual directories instead of calling the CIM method directly
187205 ([ issue #2015 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2015 ) ).
206+ - Refactored to use the public commands ` Request-SqlDscRSDatabaseScript ` ,
207+ ` Request-SqlDscRSDatabaseRightsScript ` , and ` Set-SqlDscRSDatabaseConnection `
208+ for creating and configuring the report server database instead of calling
209+ the CIM methods directly
210+ ([ issue #2017 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2017 ) )
211+ ([ issue #2019 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2019 ) )
212+ ([ issue #2021 ] ( https://github.com/dsccommunity/SqlServerDsc/issues/2021 ) ).
188213- ` Assert-SetupActionProperties `
189214 - Refactored to use the command ` Get-FileVersion ` from the DscResource.Common
190215 module instead of the private function ` Get-FileVersionInformation `
@@ -201,6 +226,59 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
201226
202227### Fixed
203228
229+ - ` Invoke-RsCimMethod `
230+ - Enhanced error messages to include human-readable translations of common
231+ HRESULT error codes. When Reporting Services CIM methods fail without
232+ detailed error information, the error message now includes actionable
233+ guidance based on the HRESULT code (e.g., service not running, access
234+ denied, logon type not granted).
235+ - Fixed error handling to properly surface error details. Previously, when
236+ the ` ExtendedErrors ` property existed but was empty, the error message
237+ would show an empty error description. Now it correctly falls back to
238+ the ` Error ` property and provides a descriptive fallback message if
239+ neither property contains error details.
240+ - Prerequisites Integration Tests
241+ - Fixed missing RS (Reporting Services) integration test tags on Context blocks
242+ that create local Windows users, service accounts, and groups. Added tags
243+ ` Integration_SQL2017_RS ` , ` Integration_SQL2019_RS ` , and ` Integration_SQL2022_RS `
244+ to ensure these prerequisites run before Reporting Services integration tests.
245+ - ` New-SqlDscFileGroup `
246+ - Fixed comment-based help example formatting by moving inline comment
247+ to the description text.
248+ - QA Tests
249+ - Added new test to detect comments within multi-line example code blocks
250+ in comment-based help. Comments in the code portion of ` .EXAMPLE ` blocks
251+ cause PlatyPS documentation generation to fail with "Expect Heading" errors.
252+ - Added new test to detect blank lines within multi-line example code blocks
253+ in comment-based help. Blank lines within the code portion of ` .EXAMPLE `
254+ blocks cause similar issues with documentation generation.
255+ - ` Deny-SqlDscServerPermission `
256+ - Fixed comment-based help example formatting by removing blank lines
257+ within code blocks that would cause documentation generation issues.
258+ - ` Get-SqlDscServerPermission `
259+ - Fixed comment-based help example formatting by removing blank lines
260+ within code blocks that would cause documentation generation issues.
261+ - ` Grant-SqlDscServerPermission `
262+ - Fixed comment-based help example formatting by removing blank lines
263+ within code blocks that would cause documentation generation issues.
264+ - ` New-SqlDscDatabase `
265+ - Fixed comment-based help example formatting by removing blank lines
266+ within code blocks.
267+ - ` New-SqlDscDatabaseSnapshot `
268+ - Fixed comment-based help example formatting by removing blank lines
269+ within code blocks.
270+ - ` Revoke-SqlDscServerPermission `
271+ - Fixed comment-based help example formatting by removing blank lines
272+ within code blocks.
273+ - ` Set-SqlDscDatabasePermission `
274+ - Fixed comment-based help example formatting by removing blank lines
275+ within code blocks.
276+ - ` Set-SqlDscServerPermission `
277+ - Fixed comment-based help example formatting by removing blank lines
278+ within code blocks.
279+ - ` Test-SqlDscServerPermission `
280+ - Fixed comment-based help example formatting by removing blank lines
281+ within code blocks.
204282- Unit Tests
205283 - Fixed PowerShell class type identity issues that caused "Cannot convert
206284 'Type' to 'Type'" errors when running multiple test files in the same
@@ -260,9 +338,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
260338- ` Set-SqlDscDatabaseProperty `
261339 - Updated comment-based help to reference correct enum values.
262340 - Added SQL Server version requirements to version-specific parameter help.
263-
264- ### Fixed
265-
266341- ` DatabasePermission `
267342 - Fixed ` Equals() ` method to compare both ` State ` and ` Permission ` properties.
268343 Previously, the method incorrectly referenced a non-existent ` Grant ` property,
0 commit comments