Releases: dsccommunity/SqlServerDsc
Releases · dsccommunity/SqlServerDsc
v15.2.0
[v15.2.0]
Changed
- SqlServerDsc
- Changed to the new GitHub deploy tasks that is required for the latest
version of the Sampler module. - Updated pipeline configuration to align with the latest changes in Sampler.
- Update codecov.yml to support carry forward flags.
- Updated pipelines files to latest from Sampler project.
- Updated GitHub issue templates.
- Remove pipeline jobs
Test_Integration_SQL2016
,Test_Integration_SQL2017
,
andTest_Integration_SQL2019
and raplaced with a single job
Test_Integration
(issue #1713). - Update HQRM tests to run on the VM image
windows-2022
. - Update unit tests to run on the VM image
windows-2022
. - Update integration tests to run both on Windows Server 2019 and Windows
Server 2022 (issue #1713).
- Changed to the new GitHub deploy tasks that is required for the latest
- SqlSetup
- The helper function
Connect-SqlAnalysis
was usingLoadWithPartial()
to load the assembly Microsoft.AnalysisServices. On a node where multiple
instances with different versions of SQL Server (regardless of features)
is installed, this will result in the first assembly found in the
GAC will be loaded into the session, not taking versions into account.
This can result in an assembly version being loaded that is not compatible
with the version of SQL Server it was meant to be used with.
A new method of loading the assembly Microsoft.AnalysisServices was
introduced under a feature flag;'AnalysisServicesConnection'
.
This new functionality depends on the SqlServer
module, and must be present on the node. The SqlServer
module can be installed on the node by leveraging the new DSC resource
PSModule
in the PowerShellGet
module (v2.1.2 and higher). This new method does not work with the
SQLPS module due to the SQLPS module does not load the correct assembly,
while SqlServer
module (v21.1.18080 and above) does. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release. - Under a feature flag
'AnalysisServicesConnection'
. The detection of
a successful connection to the SQL Server Analysis Services has also been
changed. Now it actually evaluates the propertyConnected
of the returned
Microsoft.AnalysisServices.Server
object. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release.
- The helper function
- SqlAgentAlert
- Switched README file with SqlAgentFailsafe (issue #1709).
- SqlAgentFailsafe
- Switched README file with SqlAgentAlert (issue #1709).
Added
- SqlMemory
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
Provides the ability to set the minimum and/or maximum buffer pool used by
the SQL Server instance as a percentage of total server memory.
(issue #1397).
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
- SqlRSSetup
- Integration tests now install Microsoft SQL Server 2019 Reporting Services
(issue #1717).
- Integration tests now install Microsoft SQL Server 2019 Reporting Services
- SqlRS
- Integration tests now configures Microsoft SQL Server 2019 Reporting Services.
Fixed
- SqlSetup
- Fixed integration tests for SQL Server 2016 and SQL Server 2017.
- SqlServerDsc.Common
- Fixed so that CredScan no longer reports a password false-positive
(issue #1712).
- Fixed so that CredScan no longer reports a password false-positive
- SqlRS
- Fixed SSRS 2019 initialization (issue #1509).
- Fix a problem that did not correctly evaluate the
UseSSL
property against
the current state.
v15.2.0-preview0005
[v15.2.0-preview0005]
Changed
- SqlServerDsc
- Changed to the new GitHub deploy tasks that is required for the latest
version of the Sampler module. - Updated pipeline configuration to align with the latest changes in Sampler.
- Update codecov.yml to support carry forward flags.
- Updated pipelines files to latest from Sampler project.
- Updated GitHub issue templates.
- Remove pipeline jobs
Test_Integration_SQL2016
,Test_Integration_SQL2017
,
andTest_Integration_SQL2019
and raplaced with a single job
Test_Integration
(issue #1713). - Update HQRM tests to run on the VM image
windows-2022
. - Update unit tests to run on the VM image
windows-2022
. - Update integration tests to run both on Windows Server 2019 and Windows
Server 2022 (issue #1713).
- Changed to the new GitHub deploy tasks that is required for the latest
- SqlSetup
- The helper function
Connect-SqlAnalysis
was usingLoadWithPartial()
to load the assembly Microsoft.AnalysisServices. On a node where multiple
instances with different versions of SQL Server (regardless of features)
is installed, this will result in the first assembly found in the
GAC will be loaded into the session, not taking versions into account.
This can result in an assembly version being loaded that is not compatible
with the version of SQL Server it was meant to be used with.
A new method of loading the assembly Microsoft.AnalysisServices was
introduced under a feature flag;'AnalysisServicesConnection'
.
This new functionality depends on the SqlServer
module, and must be present on the node. The SqlServer
module can be installed on the node by leveraging the new DSC resource
PSModule
in the PowerShellGet
module (v2.1.2 and higher). This new method does not work with the
SQLPS module due to the SQLPS module does not load the correct assembly,
while SqlServer
module (v21.1.18080 and above) does. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release. - Under a feature flag
'AnalysisServicesConnection'
. The detection of
a successful connection to the SQL Server Analysis Services has also been
changed. Now it actually evaluates the propertyConnected
of the returned
Microsoft.AnalysisServices.Server
object. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release.
- The helper function
- SqlAgentAlert
- Switched README file with SqlAgentFailsafe (issue #1709).
- SqlAgentFailsafe
- Switched README file with SqlAgentAlert (issue #1709).
Added
- SqlMemory
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
Provides the ability to set the minimum and/or maximum buffer pool used by
the SQL Server instance as a percentage of total server memory.
(issue #1397).
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
- SqlRSSetup
- Integration tests now install Microsoft SQL Server 2019 Reporting Services
(issue #1717).
- Integration tests now install Microsoft SQL Server 2019 Reporting Services
- SqlRS
- Integration tests now configures Microsoft SQL Server 2019 Reporting Services.
Fixed
- SqlSetup
- Fixed integration tests for SQL Server 2016 and SQL Server 2017.
- SqlServerDsc.Common
- Fixed so that CredScan no longer reports a password false-positive
(issue #1712).
- Fixed so that CredScan no longer reports a password false-positive
- SqlRS
- Fixed SSRS 2019 initialization (issue #1509).
- Fix a problem that did not correctly evaluate the
UseSSL
property against
the current state.
v15.2.0-preview0004
[v15.2.0-preview0004]
Changed
- SqlServerDsc
- Changed to the new GitHub deploy tasks that is required for the latest
version of the Sampler module. - Updated pipeline configuration to align with the latest changes in Sampler.
- Update codecov.yml to support carry forward flags.
- Changed to the new GitHub deploy tasks that is required for the latest
- SqlSetup
- The helper function
Connect-SqlAnalysis
was usingLoadWithPartial()
to load the assembly Microsoft.AnalysisServices. On a node where multiple
instances with different versions of SQL Server (regardless of features)
is installed, this will result in the first assembly found in the
GAC will be loaded into the session, not taking versions into account.
This can result in an assembly version being loaded that is not compatible
with the version of SQL Server it was meant to be used with.
A new method of loading the assembly Microsoft.AnalysisServices was
introduced under a feature flag;'AnalysisServicesConnection'
.
This new functionality depends on the SqlServer
module, and must be present on the node. The SqlServer
module can be installed on the node by leveraging the new DSC resource
PSModule
in the PowerShellGet
module (v2.1.2 and higher). This new method does not work with the
SQLPS module due to the SQLPS module does not load the correct assembly,
while SqlServer
module (v21.1.18080 and above) does. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release. - Under a feature flag
'AnalysisServicesConnection'
. The detection of
a successful connection to the SQL Server Analysis Services has also been
changed. Now it actually evaluates the propertyConnected
of the returned
Microsoft.AnalysisServices.Server
object. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release.
- The helper function
- SqlAgentAlert
- Switched README file with SqlAgentFailsafe. Issue #1709.
- SqlAgentFailsafe
- Switched README file with SqlAgentAlert. Issue #1709.
Added
- SqlMemory
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
Provides the ability to set the minimum and/or maximum buffer pool used by
the SQL Server instance as a percentage of total server memory.
(issue #1397).
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
Fixed
- SqlSetup
- Fixed integration tests for SQL Server 2016 and SQL Server 2017.
v15.2.0-preview0003
[v15.2.0-preview0003]
Changed
- SqlServerDsc
- Changed to the new GitHub deploy tasks that is required for the latest
version of the Sampler module. - Updated pipeline configuration to align with the latest changes in Sampler.
- Changed to the new GitHub deploy tasks that is required for the latest
- SqlSetup
- The helper function
Connect-SqlAnalysis
was usingLoadWithPartial()
to load the assembly Microsoft.AnalysisServices. On a node where multiple
instances with different versions of SQL Server (regardless of features)
is installed, this will result in the first assembly found in the
GAC will be loaded into the session, not taking versions into account.
This can result in an assembly version being loaded that is not compatible
with the version of SQL Server it was meant to be used with.
A new method of loading the assembly Microsoft.AnalysisServices was
introduced under a feature flag;'AnalysisServicesConnection'
.
This new functionality depends on the SqlServer
module, and must be present on the node. The SqlServer
module can be installed on the node by leveraging the new DSC resource
PSModule
in the PowerShellGet
module (v2.1.2 and higher). This new method does not work with the
SQLPS module due to the SQLPS module does not load the correct assembly,
while SqlServer
module (v21.1.18080 and above) does. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release. - Under a feature flag
'AnalysisServicesConnection'
. The detection of
a successful connection to the SQL Server Analysis Services has also been
changed. Now it actually evaluates the propertyConnected
of the returned
Microsoft.AnalysisServices.Server
object. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release.
- The helper function
Added
- SqlMemory
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
Provides the ability to set the minimum and/or maximum buffer pool used by
the SQL Server instance as a percentage of total server memory.
(issue #1397).
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
Fixed
- SqlSetup
- Fixed integration tests for SQL Server 2016 and SQL Server 2017.
v15.2.0-preview0002
[v15.2.0-preview0002]
Changed
- SqlServerDsc
- Changed to the new GitHub deploy tasks that is required for the latest
version of the Sampler module.
- Changed to the new GitHub deploy tasks that is required for the latest
- SqlSetup
- The helper function
Connect-SqlAnalysis
was usingLoadWithPartial()
to load the assembly Microsoft.AnalysisServices. On a node where multiple
instances with different versions of SQL Server (regardless of features)
is installed, this will result in the first assembly found in the
GAC will be loaded into the session, not taking versions into account.
This can result in an assembly version being loaded that is not compatible
with the version of SQL Server it was meant to be used with.
A new method of loading the assembly Microsoft.AnalysisServices was
introduced under a feature flag;'AnalysisServicesConnection'
.
This new functionality depends on the SqlServer
module, and must be present on the node. The SqlServer
module can be installed on the node by leveraging the new DSC resource
PSModule
in the PowerShellGet
module (v2.1.2 and higher). This new method does not work with the
SQLPS module due to the SQLPS module does not load the correct assembly,
while SqlServer
module (v21.1.18080 and above) does. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release. - Under a feature flag
'AnalysisServicesConnection'
. The detection of
a successful connection to the SQL Server Analysis Services has also been
changed. Now it actually evaluates the propertyConnected
of the returned
Microsoft.AnalysisServices.Server
object. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release.
- The helper function
Added
- SqlMemory
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
Provides the ability to set the minimum and/or maximum buffer pool used by
the SQL Server instance as a percentage of total server memory.
(issue #1397).
- Added two new optional parameters MinMemoryPercent and MaxMemoryPercent.
v15.2.0-preview0001
[v15.2.0-preview0001]
Changed
- SqlSetup
- The helper function
Connect-SqlAnalysis
was usingLoadWithPartial()
to load the assembly Microsoft.AnalysisServices. On a node where multiple
instances with different versions of SQL Server (regardless of features)
is installed, this will result in the first assembly found in the
GAC will be loaded into the session, not taking versions into account.
This can result in an assembly version being loaded that is not compatible
with the version of SQL Server it was meant to be used with.
A new method of loading the assembly Microsoft.AnalysisServices was
introduced under a feature flag;'AnalysisServicesConnection'
.
This new functionality depends on the SqlServer
module, and must be present on the node. The SqlServer
module can be installed on the node by leveraging the new DSC resource
PSModule
in the PowerShellGet
module (v2.1.2 and higher). This new method does not work with the
SQLPS module due to the SQLPS module does not load the correct assembly,
while SqlServer
module (v21.1.18080 and above) does. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release. - Under a feature flag
'AnalysisServicesConnection'
. The detection of
a successful connection to the SQL Server Analysis Services has also been
changed. Now it actually evaluates the propertyConnected
of the returned
Microsoft.AnalysisServices.Server
object. The new functionality is used
when the parameterFeatureFlag
is set to'AnalysisServicesConnection'
.
This functionality will be the default in a future breaking release. - Changed to the new GitHub deploy tasks that is required for the latest
version of the Sampler module.
- The helper function
v15.1.1
[v15.1.1]
Fixed
- SqlTraceFlag
- Fixed
$null
reference error when no actual trace flags are present.
Added two arrays to prevent a$null
reference at compare-object
(issue #1688).
- Fixed
- SqlServerDsc
- Removed a left-over comment in the file
analyzersettings.psd1
.
- Removed a left-over comment in the file
v15.1.1-preview0001
[v15.1.1-preview0001]
Fixed
- SqlTraceFlag
- Fixed
$null
reference error when no actual trace flags are present.
Added two arrays to prevent a$null
reference at compare-object
(issue #1688).
- Fixed
- SqlServerDsc
- Removed a left-over comment in the file
analyzersettings.psd1
.
- Removed a left-over comment in the file
v15.1.0
[v15.1.0]
Added
- SqlServerDsc
- Added a new script analyzer rule to verify that
Import-SQLPSModule
orConnect-SQL
(that implicitly callsImport-SQLPSModule
) is present in eachGet-
,Test-
,
andSet-TargetResource
function. If neither command is not needed then the
analyzer rule should be overridden (issue #1683). - Added a new pipeline job that runs Script Analyzer on all PowerShell scripts
in the source folder. The rules are defined by the Script Analyzer settings
file.vscode\analyzersettings.psd1
(which also the Visual Studio Code
PowerShell extension uses). - Added unit tests and integration tests for SQL Server 2019
(issue #1310).
- Added a new script analyzer rule to verify that
Changed
- SqlServerDsc
- Suppressed new custom Script Analyzer rule
SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO
forGet-
,Test-
, andSet-TargetResource
functions in the resources.
- Suppressed new custom Script Analyzer rule
- SqlLogin
- Added functionality to throw exception if an update to the
LoginMustChangePassword
value on an existing SQL Login is attempted. This functionality is not supported
by referenced, SQL Server Management Object (SMO), libraries and cannot be
supported directly by this module. - Added integration tests to ensure that an added (or updated)
SqlLogin
can
connect into a SQL instance once added (or updated). - Added integration tests to ensure that the default database connected to by
aSqlLogin
is the same as specified in the resource'sDefaultDatabase
property/parameter. - Amended how the interdependent,
PasswordExpirationEnabled
andPasswordPolicyEnforced
properties/parameters are updated within theSqlLogin
resource - Both values
are now updated together if either one or both are not currently in the desired
state. This change avoids exceptions thrown by transitions to valid, combinations
of these properties that have to transition through an invalid combination (e.g.
wherePasswordExpirationEnabled
is$true
butPasswordPolicyEnforced
is
$false
).
- Added functionality to throw exception if an update to the
- SqlSetup
- Minor refactor due to source code lint errors. The loop what evaluates
the configuration parameters*FailoverCluster
was change to aforeach()
.
- Minor refactor due to source code lint errors. The loop what evaluates
Fixed
- SqlServerDsc
- The component
gitversion
that is used in the pipeline was wrongly
configured when the repository moved to the new default branchmain
.
It no longer throws an error when using newer versions of GitVersion
(issue #1674). - Minor lint errors throughout the repository.
- The component
- SqlLogin
- Added integration tests to assert
LoginPasswordExpirationEnabled
,
LoginPasswordPolicyEnforced
andLoginMustChangePassword
properties/parameters
are applied and updated correctly. Similar integration tests also added to ensure
the password of theSqlLogin
is updated if the password within theSqlCredential
value/object is changed (issue #361,
issue #1032 and
issue #1050). - Updated
SqlLogin
, integration tests to make use of amendedWait-ForIdleLcm
,
helper function,-Clear
switch usage to remove intermittent, integration
test failures (issue #1634).
- Added integration tests to assert
- SqlRSSetup
- If parameter
SuppressRestart
is set to$false
the/norestart
argument is no longer wrongly added (issue #1401).
- If parameter
- SqlSetup
- Added/corrected
InstallSharedDir
, property output when using SQL Server 2019.
- Added/corrected
- SqlTraceFlag
- Fixed Assembly not loaded error (issue #1680).
- SqlDatabaseUser
- Added parameter
ServerName
to the call ofAssert-SqlLogin
.
@PSBoundParameters
doesn't capture the default value ofServerName
when it is not explicitly set by the caller (issue #1647).
- Added parameter
v15.1.0-preview0002
[v15.1.0-preview0002]
Added
- SqlServerDsc
- Added a new script analyzer rule to verify that
Import-SQLPSModule
orConnect-SQL
(that implicitly callsImport-SQLPSModule
) is present in eachGet-
,Test-
,
andSet-TargetResource
function. If neither command is not needed then the
analyzer rule should be overridden (issue #1683). - Added a new pipeline job that runs Script Analyzer on all PowerShell scripts
in the source folder. The rules are defined by the Script Analyzer settings
file.vscode\analyzersettings.psd1
(which also the Visual Studio Code
PowerShell extension uses). - Added unit tests and integration tests for SQL Server 2019
(issue #1310).
- Added a new script analyzer rule to verify that
Changed
- SqlServerDsc
- Suppressed new custom Script Analyzer rule
SqlServerDsc.AnalyzerRules\Measure-CommandsNeededToLoadSMO
forGet-
,Test-
, andSet-TargetResource
functions in the resources.
- Suppressed new custom Script Analyzer rule
- SqlLogin
- Added functionality to throw exception if an update to the
LoginMustChangePassword
value on an existing SQL Login is attempted. This functionality is not supported
by referenced, SQL Server Management Object (SMO), libraries and cannot be
supported directly by this module. - Added integration tests to ensure that an added (or updated)
SqlLogin
can
connect into a SQL instance once added (or updated). - Added integration tests to ensure that the default database connected to by
aSqlLogin
is the same as specified in the resource'sDefaultDatabase
property/parameter. - Amended how the interdependent,
PasswordExpirationEnabled
andPasswordPolicyEnforced
properties/parameters are updated within theSqlLogin
resource - Both values
are now updated together if either one or both are not currently in the desired
state. This change avoids exceptions thrown by transitions to valid, combinations
of these properties that have to transition through an invalid combination (e.g.
wherePasswordExpirationEnabled
is$true
butPasswordPolicyEnforced
is
$false
).
- Added functionality to throw exception if an update to the
- SqlSetup
- Minor refactor due to source code lint errors. The loop what evaluates
the configuration parameters*FailoverCluster
was change to aforeach()
.
- Minor refactor due to source code lint errors. The loop what evaluates
Fixed
- SqlServerDsc
- The component
gitversion
that is used in the pipeline was wrongly
configured when the repository moved to the new default branchmain
.
It no longer throws an error when using newer versions of GitVersion
(issue #1674). - Minor lint errors throughout the repository.
- The component
- SqlLogin
- Added integration tests to assert
LoginPasswordExpirationEnabled
,
LoginPasswordPolicyEnforced
andLoginMustChangePassword
properties/parameters
are applied and updated correctly. Similar integration tests also added to ensure
the password of theSqlLogin
is updated if the password within theSqlCredential
value/object is changed (issue #361,
issue #1032 and
issue #1050). - Updated
SqlLogin
, integration tests to make use of amendedWait-ForIdleLcm
,
helper function,-Clear
switch usage to remove intermittent, integration
test failures (issue #1634).
- Added integration tests to assert
- SqlRSSetup
- If parameter
SuppressRestart
is set to$false
the/norestart
argument is no longer wrongly added (issue #1401).
- If parameter
- SqlSetup
- Added/corrected
InstallSharedDir
, property output when using SQL Server 2019.
- Added/corrected
- SqlTraceFlag
- Fixed Assembly not loaded error (issue #1680).
- SqlDatabaseUser
- Added parameter
ServerName
to the call ofAssert-SqlLogin
.
@PSBoundParameters
doesn't capture the default value ofServerName
when it is not explicitly set by the caller (issue #1647).
- Added parameter