Releases: dsccommunity/SqlServerDsc
Releases · dsccommunity/SqlServerDsc
v17.6.0-preview0003
[v17.6.0-preview0003]
Fixed
- SqlScript
- Fixed logic in
Get-TargetResourceandSet-TargetResourceto throw an error
when the SQL script file is missing, instead of incorrectly reporting success
or using a null variable. - Fixed
Test-TargetResourceto return$false(instead of throwing) when
the SQL script file is missing, enablingDependsOnscenarios where the file
is created at runtime.
- Fixed logic in
Changed
- SqlScript
- Added integration test configuration that creates script files and executes
the resource in a single configuration usingDependsOn.
- Added integration test configuration that creates script files and executes
- SqlLogin
- Added parameter
Sidto allow setting the sid of the new login. (issue #1470)
- Added parameter
v17.6.0-preview0002
[v17.6.0-preview0002]
Fixed
- SqlScript
- Fixed logic in
Get-TargetResourceandSet-TargetResourceto throw an error
when the SQL script file is missing, instead of incorrectly reporting success
or using a null variable. - Fixed
Test-TargetResourceto return$false(instead of throwing) when
the SQL script file is missing, enablingDependsOnscenarios where the file
is created at runtime.
- Fixed logic in
Changed
- SqlScript
- Added integration test configuration that creates script files and executes
the resource in a single configuration usingDependsOn.
- Added integration test configuration that creates script files and executes
v17.6.0-preview0001
[v17.6.0-preview0001]
Fixed
- SqlScript
- Fixed logic in
Get-TargetResourceandSet-TargetResourceto throw an error
when the SQL script file is missing, instead of incorrectly reporting success
or using a null variable. - Fixed
Test-TargetResourceto return$false(instead of throwing) when
the SQL script file is missing, enablingDependsOnscenarios where the file
is created at runtime.
- Fixed logic in
Changed
- SqlScript
- Added integration test configuration that creates script files and executes
the resource in a single configuration usingDependsOn.
- Added integration test configuration that creates script files and executes
v17.5.1
[v17.5.1]
Added
- SqlServerDsc
- Added private functions
ConvertTo-SqlStringandConvertTo-EscapedQueryString
to safely escape T-SQL string literals and query arguments
(issue #2442).
- Added private functions
- DSC_SqlReplication
- Updated
Install-RemoteDistributorto escape T-SQL arguments for SQL Server
2025 to prevent SQL injection and ensure proper password redaction
(issue #2442).
- Updated
Changed
- SqlServerDsc
- Updated Pester test guidance in AI instructions in community style guidelines.
- Added SChannelDsc as a required module for integration tests and enabled the
prerequisites testsEnsure TLS 1.2 is enabled(issue #2441).
v17.5.1-preview0001
[v17.5.1-preview0001]
Added
- SqlServerDsc
- Added private functions
ConvertTo-SqlStringandConvertTo-EscapedQueryString
to safely escape T-SQL string literals and query arguments
(issue #2442).
- Added private functions
- DSC_SqlReplication
- Updated
Install-RemoteDistributorto escape T-SQL arguments for SQL Server
2025 to prevent SQL injection and ensure proper password redaction
(issue #2442).
- Updated
Changed
- SqlServerDsc
- Updated Pester test guidance in AI instructions in community style guidelines.
- Added SChannelDsc as a required module for integration tests and enabled the
prerequisites testsEnsure TLS 1.2 is enabled(issue #2441).
v17.5.0
[v17.5.0]
Changed
- SqlServerDsc.Common
- Moved functions into individual files and use ModuleBuilder to assemble.
- SqlServerDsc
- Refactor integration tests for SQL Server Reporting Services and Power BI
Report Server (issue #2431). Connect-Sqlcreate connection and server objects as per documentation.Invoke-SqlDscQueryremove disconnect as there is not an explicit connect.- Add SQL Server 2025 to integration tests (issue #2427).
- Refactor integration tests for SQL Server Reporting Services and Power BI
Fixed
- SqlServerDsc
- Fixed PowerShell Gallery badge URL in
README.mdto correctly show
prereleases (issue#2437).
- Fixed PowerShell Gallery badge URL in
v17.5.0-preview0001
[v17.5.0-preview0001]
Changed
- SqlServerDsc.Common
- Moved functions into individual files and use ModuleBuilder to assemble.
- SqlServerDsc
- Refactor integration tests for SQL Server Reporting Services and Power BI
Report Server (issue #2431). Connect-Sqlcreate connection and server objects as per documentation.Invoke-SqlDscQueryremove disconnect as there is not an explicit connect.- Add SQL Server 2025 to integration tests (issue #2427).
- Refactor integration tests for SQL Server Reporting Services and Power BI
Fixed
- SqlServerDsc
- Fixed PowerShell Gallery badge URL in
README.mdto correctly show
prereleases (issue#2437).
- Fixed PowerShell Gallery badge URL in
v17.4.1-preview0002
[v17.4.1-preview0002]
Changed
-
SqlServerDsc.Common
- Moved functions into individual files and use ModuleBuilder to assemble.
-
SqlServerDsc
- Refactor integration tests for SQL Server Reporting Services and Power BI
Report Server (issue #2431). Connect-Sqlcreate connection and server objects as per documentation.Invoke-SqlDscQueryremove disconnect as there is not an explicit connect.
- Refactor integration tests for SQL Server Reporting Services and Power BI
v17.4.1-preview0001
[v17.4.1-preview0001]
Changed
-
SqlServerDsc.Common
- Moved functions into individual files and use ModuleBuilder to assemble.
-
SqlServerDsc
- Refactor integration tests for SQL Server Reporting Services and Power BI
Report Server (issue #2431).
- Refactor integration tests for SQL Server Reporting Services and Power BI
v17.4.0
[v17.4.0]
Added
- SqlRSSetup
- Added DSCv3 integration tests to verify compatibility with DSCv3
(issue #2403).
- Added DSCv3 integration tests to verify compatibility with DSCv3
- Added public command
Set-SqlDscRSDatabaseTimeoutto set the database logon
timeout and/or query timeout for SQL Server Reporting Services or Power BI
Report Server. Supports settingLogonTimeout,QueryTimeout, or both via
parameter sets. Uses theSetDatabaseLogonTimeoutandSetDatabaseQueryTimeout
WMI methods. - Added public commands
Start-SqlDscRSWindowsService,Stop-SqlDscRSWindowsService,
Start-SqlDscRSWebService, andStop-SqlDscRSWebServiceto manage Reporting
Services Windows and web services using theSetServiceStateWMI method. - SqlServerDsc
- Added class
ReportServerUrito represent URLs returned by the
GetReportServerUrlsCIM method onMSReportServer_Instance.
- Added class
- Added public command
Get-SqlDscRSUrlto get the Report Server URLs for
SQL Server Reporting Services or Power BI Report Server. This command
invokes theGetReportServerUrlsCIM method onMSReportServer_Instance
and returns an array ofReportServerUriobjects containing the instance
name, application name, and URL for each configured URL. - Added public command
Get-SqlDscRSConfigFileto get the RsReportServer.config
configuration file for SQL Server Reporting Services (SSRS) or Power BI
Report Server (PBIRS) as an XML document object. Supports three parameter
sets:ByInstanceName(looks up path via registry),ByConfiguration
(accepts pipeline input fromGet-SqlDscRSSetupConfiguration), andByPath
(reads from a direct file path). The returned XML object supports standard
XML navigation and XPath queries for accessing configuration settings. - Added public command
Get-SqlDscRSLogPathto get the log file folder path
for SQL Server Reporting Services or Power BI Report Server. Returns the
ErrorDumpDirectory from the instance's setup configuration, which can be
used withGet-ChildItemandGet-Contentto access service logs, portal
logs, and memory dumps. - Added public command
Get-SqlDscRSExecutionLogto query execution log entries
from theExecutionLog3view in the report server database. Supports filtering
by date range, user name, report path, and maximum rows. Includes connection
parameters Credential, LoginType, Encrypt, and StatementTimeout. - Added public command
Test-SqlDscRSAccessibleto verify that SQL Server
Reporting Services or Power BI Report Server web sites are accessible.
Supports both CIM configuration input (with dynamic-Siteparameter) and
explicit URIs. Includes retry logic and optional detailed output with HTTP
status codes. - Added post-initialization integration tests for RS commands
(Post.Initialization.RS.Integration.Tests.ps1) to verify that SSRS and
PBIRS sites are fully accessible afterInitialize-SqlDscRSruns. - Added public command
Request-SqlDscRSDatabaseScriptto generate T-SQL scripts
for creating report server databases. Wraps theGenerateDatabaseCreationScript
CIM method and supports configuring database name, language (LCID), and
SharePoint mode (issue #2017). - Added public command
Request-SqlDscRSDatabaseRightsScriptto generate T-SQL
scripts for granting permissions on report server databases. Wraps the
GenerateDatabaseRightsScriptCIM method and supports configuring database
name, user name, remote connections, and Windows/SQL authentication types
(issue #2019). - Added public command
Set-SqlDscRSDatabaseConnectionto set
the report server database connection for SQL Server Reporting Services or
Power BI Report Server. Wraps theSetDatabaseConnectionCIM method and
supports Windows, SQL Server, and Service Account authentication types
(issue #2021). - Added public command
Set-SqlDscRSVirtualDirectoryto set the virtual directory
for Reporting Services applications. Wraps theSetVirtualDirectoryCIM method
and supports ReportServerWebService, ReportServerWebApp, and ReportManager
applications (issue #2015). - Added public commands
Get-SqlDscRSUrlReservation,Add-SqlDscRSUrlReservation,
Remove-SqlDscRSUrlReservation, andSet-SqlDscRSUrlReservationto manage
URL reservations for SQL Server Reporting Services or Power BI Report Server.
These commands wrap theListReservedUrls,ReserveUrl, andRemoveURLCIM
methods respectively. TheSet-SqlDscRSUrlReservationcommand provides a
declarative approach to set URL reservations to an exact list, removing any
existing reservations not in the specified list
(issue #2016)
(issue #2024). - Added public command
Get-SqlDscRSConfigurationto retrieve the
MSReportServer_ConfigurationSettingCIM instance for SQL Server Reporting
Services or Power BI Report Server. Supports auto-detection of the Reporting
Services version or explicit version specification. The returned CIM instance
can be piped toEnable-SqlDscRsSecureConnectionorDisable-SqlDscRsSecureConnection
(issue #2022). - Added public command
Get-SqlDscRSWebPortalApplicationNameto get the
Reporting Services web portal application name based on the SQL Server
version. Returns 'ReportServerWebApp' for SQL Server 2016 (version 13) and
later, or 'ReportManager' for earlier versions. Accepts the setup configuration
object fromGet-SqlDscRSSetupConfigurationvia pipeline. - Added public command
Enable-SqlDscRsSecureConnectionto enable secure
connection for SQL Server Reporting Services or Power BI Report Server by
setting the secure connection level to 1. Accepts the configuration CIM
instance from pipeline, supports-WhatIf/-Confirm, and-PassThruto
return the configuration object
(issue #2022). - Added public command
Disable-SqlDscRsSecureConnectionto disable secure
connection for SQL Server Reporting Services or Power BI Report Server by
setting the secure connection level to 0. Accepts the configuration CIM
instance from pipeline, supports-WhatIf/-Confirm, and-PassThruto
return the configuration object
(issue #2023). - Added private function
Invoke-RsCimMethodto invoke CIM methods on Reporting
Services configuration instances with consistent error handling. This function
is used byEnable-SqlDscRsSecureConnection,Disable-SqlDscRsSecureConnection,
and theSqlRSresource.- Added parameters
RetryCount,RetryDelaySeconds, andSkipRetryto provide
configurable retry behavior for transient CIM method failures. By default,
retries up to 3 times with 30-second delays. Handles both HRESULT failures
and exceptions fromInvoke-CimMethod. Collects unique errors across retry
attempts with attempt number prefixes for comprehensive error reporting.
- Added parameters
Invoke-ReportServerSetupAction- Now uses
Format-Pathwith-ExpandEnvironmentVariableto expand environment
variables in all path parameters (MediaPath,LogPath,InstallFolder)
(issue #2085).
- Now uses
- Added public command
Get-SqlDscServerProtocolTcpIpto retrieve TCP/IP address
group information for SQL Server instances. ReturnsServerIPAddressobjects
containing port configuration includingTcpPort,TcpDynamicPorts,Enabled,
andActiveproperties. Supports filtering by specific IP address group name
and accepts pipeline input fromGet-SqlDscServerProtocol. SqlResourceBase- Added
Protocolproperty to specify the network protocol (tcp,np,lpc)
when connecting to SQL Server instances
(issue #2041). - Added
Portproperty to specify the TCP port number when connecting to SQL
Server instances
(issue #2041).
- Added
Connect-SqlDscDatabaseEngine- Added
Protocolparameter to specify the network protocol when connecting. - Added
Portparameter to specify the TCP port number when connecting.
Connection strings now support the format[protocol:]hostname[\instance][,port].
- Added
SqlDatabase- Added new class-based resource to create, modify, or remove databases on a
SQL Server instance. Supports a comprehensive set of database properties
that can be configured withSet-SqlDscDatabaseProperty
(issue #2174). - Added DSCv3 integration tests to verify compatibility with DSCv3
(issue #2403).
- Added new class-based resource to create, modify, or remove databases on a
Install-SqlDscServer- Added parameter
AllowDqRemovalto theUpgradeparameter set
(issue #2155).
- Added parameter
Test-SqlDscIsSupportedFeature- Added DQ, DQC, and MDS features as discontinued starting with SQL Server 2025
(17.x) and later versions (issue #2380).
- Added DQ, DQC, and MDS features as discontinued starting with SQL Server 2025
- Added public command
Get-SqlDscRSPackageto retrieve package information for
SQL Server Reporting Services or Power BI Report Server. Supports getting version
information from an executable file
(issue #2082). - Added public command
Get-SqlDscBackupFileListto read the list of database
files contained in a SQL Server b...