v15.1.0-preview0001
Pre-release
Pre-release
dscbot
released this
31 Jan 18:57
·
181 commits
to main
since this release
[v15.1.0-preview0001]
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).