Skip to content

Releases: dsccommunity/SqlServerDsc

v5.0.0

25 Dec 09:04
Compare
Choose a tag to compare
  • Improvements how tests are initiated in AppVeyor
    • Removed previous workaround (issue #201) from unit tests.
    • Changes in appveyor.yml so that SQL modules are removed before common test is
      run.
    • Now the deploy step are no longer failing when merging code into Dev. Neither
      is the deploy step failing if a contributor had AppVeyor connected to the fork
      of xSQLServer and pushing code to the fork.
  • Changes to README.md
    • Changed the contributing section to help new contributors.
    • Added links for each resource so it is easier to navigate to the parameter list
      for each resource.
    • Moved the list of resources in alphabetical order.
    • Moved each resource parameter list into alphabetical order.
    • Removed old text mentioning System Center.
    • Now the correct product name is written in the installation section, and a typo
      was also fixed.
    • Fixed a typo in the Requirements section.
    • Added link to Examples folder in the Examples section.
    • Change the layout of the README.md to closer match the one of PSDscResources
    • Added more detailed text explaining what operating systems WMF5.0 can be installed
      on.
    • Verified all resource schema files with the README.md and fixed some errors
      (descriptions was not verified).
    • Added security requirements section for resource xSQLServerEndpoint and
      xSQLAOGroupEnsure.
  • Changes to xSQLServerSetup
    • The resource no longer uses Win32_Product WMI class when evaluating if
      SQL Server Management Studio is installed. See article
      kb974524 for more information.
    • Now it uses CIM cmdlets to get information from WMI classes.
    • Resolved all of the PSScriptAnalyzer warnings that was triggered in the common
      tests.
    • Improvement for service accounts to enable support for Managed Service Accounts
      as well as other nt authority accounts
    • Changes to the helper function Copy-ItemWithRoboCopy
      • Robocopy is now started using Start-Process and the error handling has been
        improved.
      • Robocopy now removes files at the destination path if they no longer exists
        at the source.
      • Robocopy copies using unbuffered I/O when available (recommended for large
        files).
    • Added a more descriptive text for the parameter SourceCredential to further
      explain how the parameter work.
    • BREAKING CHANGE: Removed parameter SourceFolder.
    • BREAKING CHANGE: Removed default value "$PSScriptRoot...." from parameter
      SourcePath.
    • Old code, that no longer filled any function, has been replaced.
      • Function ResolvePath has been replaced with
        [Environment]::ExpandEnvironmentVariables($SourcePath) so that environment
        variables still can be used in Source Path.
      • Function NetUse has been replaced with New-SmbMapping and
        Remove-SmbMapping.
    • Renamed function GetSQLVersion to Get-SqlMajorVersion.
    • BREAKING CHANGE: Renamed parameter PID to ProductKey to avoid collision with
      automatic variable $PID
  • Changes to xSQLServerScript
    • All credential parameters now also has the type
      [System.Management.Automation.Credential()] to better work with PowerShell 4.0.
    • It is now possible to configure two instances on the same node, with the same
      script.
    • Added to the description text for the parameter Credential describing how
      to authenticate using Windows Authentication.
    • Added examples to show how to authenticate using either SQL or Windows
      authentication.
    • A recent issue showed that there is a known problem running this resource
      using PowerShell 4.0. For more information, see issue #273
  • Changes to xSQLServerFirewall
    • BREAKING CHANGE: Removed parameter SourceFolder.
    • BREAKING CHANGE: Removed default value "$PSScriptRoot...." from parameter
      SourcePath.
    • Old code, that no longer filled any function, has been replaced.
      • Function ResolvePath has been replaced with
        [Environment]::ExpandEnvironmentVariables($SourcePath) so that environment
        variables still can be used in Source Path.
    • Adding new optional parameter SourceCredential that can be used to authenticate
      against SourcePath.
    • Solved PSSA rules errors in the code.
    • Get-TargetResource no longer return $true when no products was installed.
  • Changes to the unit test for resource
    • xSQLServerSetup
      • Added test coverage for helper function Copy-ItemWithRoboCopy
  • Changes to xSQLServerLogin
    • Removed ShouldProcess statements
    • Added the ability to enforce password policies on SQL logins
  • Added common test (xSQLServerCommon.Tests) for xSQLServer module
    • Now all markdown files will be style checked when tests are running in AppVeyor
      after sending in a pull request.
    • Now all Examples will be tested by compiling to a .mof
      file after sending in a pull request.
  • Changes to xSQLServerDatabaseOwner
    • The example 'SetDatabaseOwner' can now compile, it wrongly had a DependsOn
      in the example.
  • Changes to SQLServerRole
    • The examples 'AddServerRole' and 'RemoveServerRole' can now compile, it wrongly
      had a DependsOn in the example.
  • Changes to CONTRIBUTING.md
    • Added section 'Tests for examples files'
    • Added section 'Tests for style check of Markdown files'
    • Added section 'Documentation with Markdown'
    • Added texts to section 'Tests'
  • Changes to xSQLServerHelper
    • added functions
      • Get-SqlDatabaseRecoveryModel
      • Set-SqlDatabaseRecoveryModel
  • Examples
    • xSQLServerDatabaseRecoveryModel
      • 1-SetDatabaseRecoveryModel.ps1
    • xSQLServerDatabasePermission
      • 1-GrantDatabasePermissions.ps1
      • 2-RevokeDatabasePermissions.ps1
      • 3-DenyDatabasePermissions.ps1
    • xSQLServerFirewall
      • 1-CreateInboundFirewallRules
      • 2-RemoveInboundFirewallRules
  • Added tests for resources
    • xSQLServerDatabaseRecoveryModel
    • xSQLServerDatabasePermissions
    • xSQLServerFirewall
  • Changes to xSQLServerDatabaseRecoveryModel
    • BREAKING CHANGE: Renamed xSQLDatabaseRecoveryModel to
      xSQLServerDatabaseRecoveryModel to align with naming convention.
    • BREAKING CHANGE: The mandatory parameters now include SQLServer, and
      SQLInstanceName.
  • Changes to xSQLServerDatabasePermission
    • BREAKING CHANGE: Renamed xSQLServerDatabasePermissions to
      xSQLServerDatabasePermission to align with naming convention.
    • BREAKING CHANGE: The mandatory parameters now include PermissionState,
      SQLServer, and SQLInstanceName.
  • Added support for clustered installations to xSQLServerSetup
    • Migrated relevant code from xSQLServerFailoverClusterSetup
    • Removed Get-WmiObject usage
    • Clustered storage mapping now supports asymmetric cluster storage
    • Added support for multi-subnet clusters
    • Added localized error messages for cluster object mapping
    • Updated README.md to reflect new parameters
  • Updated description for xSQLServerFailoverClusterSetup to indicate it is deprecated.
  • xPDT helper module
    • Function GetxPDTVariable was removed since it no longer was used by any resources.
    • File xPDT.xml was removed since it was not used by any resources, and did not
      provide any value to the module.
  • Changes xSQLServerHelper module
    • Removed the globally defined $VerbosePreference = 'Continue' from xSQLServerHelper.
    • Fixed a typo in a variable name in the function New-ListenerADObject.
    • Now Restart-SqlService will correctly show the services it restarts. Also
      fixed PSSA warnings.

v4.0.0

25 Dec 09:03
Compare
Choose a tag to compare
  • Fixes in xSQLServerConfiguration
    • Added support for clustered SQL instances.
    • BREAKING CHANGE: Updated parameters to align with other resources
      (SQLServer / SQLInstanceName).
    • Updated code to utilize CIM rather than WMI.
  • Added tests for resources
    • xSQLServerConfiguration
    • xSQLServerSetup
    • xSQLServerDatabaseRole
    • xSQLAOGroupJoin
    • xSQLServerHelper and moved the existing tests for Restart-SqlService to it.
    • xSQLServerAlwaysOnService
  • Fixes in xSQLAOGroupJoin
    • Availability Group name now appears in the error message for a failed.
      Availability Group join attempt.
    • Get-TargetResource now works with Get-DscConfiguration.
  • Fixes in xSQLServerRole
    • Updated Ensure parameter to 'Present' default value.
    • Renamed helper functions *-SqlServerRole to *-SqlServerRoleMember.
  • Changes to xSQLAlias
    • Add UseDynamicTcpPort parameter for option "Dynamically determine port".
    • Change Get-WmiObject to Get-CimInstance in Resource and associated pester file.
  • Added CHANGELOG.md file.
  • Added issue template file (ISSUE_TEMPLATE.md) for 'New Issue' and pull request
    template file (PULL_REQUEST_TEMPLATE.md) for 'New Pull Request'.
  • Add Contributing.md file.
  • Changes to xSQLServerSetup
    • Now Features parameter is case-insensitive.
  • BREAKING CHANGE: Removed xSQLServerPowerPlan from this module. The resource has
    been moved to xComputerManagement
    and is now called xPowerPlan.
  • Changes and enhancements in xSQLServerDatabaseRole
    • BREAKING CHANGE: Fixed so the same user can now be added to a role in one or
      more databases, and/or one or more instances. Now the parameters SQLServer
      and SQLInstanceName are mandatory.
    • Enhanced so the same user can now be added to more than one role
  • BREAKING CHANGE: Renamed xSQLAlias to xSQLServerAlias to align with naming convention.
  • Changes to xSQLServerAlwaysOnService
    • Added RestartTimeout parameter
    • Fixed bug where the SQL Agent service did not get restarted after the
      IsHadrEnabled property was set.
    • BREAKING CHANGE: The mandatory parameters now include Ensure, SQLServer, and
      SQLInstanceName. SQLServer and SQLInstanceName are keys which will be used to
      uniquely identify the resource which allows AlwaysOn to be enabled on multiple
      instances on the same machine.
  • Moved Restart-SqlService from MSFT_xSQLServerConfiguration.psm1 to xSQLServerHelper.psm1.

v3.0.0

25 Dec 09:03
Compare
Choose a tag to compare
  • xSQLServerHelper
    • added functions
      • Test-SQLDscParameterState
      • Get-SqlDatabaseOwner
      • Set-SqlDatabaseOwner
  • Examples
    • xSQLServerDatabaseOwner
      • 1-SetDatabaseOwner.ps1
  • Added tests for resources
    • MSFT_xSQLServerDatabaseOwner

v2.0.0

25 Dec 09:03
Compare
Choose a tag to compare
  • Added resources
    • xSQLServerReplication
    • xSQLServerScript
    • xSQLAlias
    • xSQLServerRole
  • Added tests for resources
    • xSQLServerPermission
    • xSQLServerEndpointState
    • xSQLServerEndpointPermission
    • xSQLServerAvailabilityGroupListener
    • xSQLServerLogin
    • xSQLAOGroupEnsure
    • xSQLAlias
    • xSQLServerRole
  • Fixes in xSQLServerAvailabilityGroupListener
    • In one case the Get-method did not report that DHCP was configured.
    • Now the resource will throw 'Not supported' when IP is changed between Static
      and DHCP.
    • Fixed an issue where sometimes the listener wasn't removed.
    • Fixed the issue when trying to add a static IP to a listener was ignored.
  • Fix in xSQLServerDatabase
    • Fixed so dropping a database no longer throws an error
    • BREAKING CHANGE: Fixed an issue where it was not possible to add the same
      database to two instances on the same server.
    • BREAKING CHANGE: The name of the parameter Database has changed. It is now
      called Name.
  • Fixes in xSQLAOGroupEnsure
    • Added parameters to New-ListenerADObject to allow usage of a named instance.
    • pass setup credential correctly
  • Changes to xSQLServerLogin
    • Fixed an issue when dropping logins.
    • BREAKING CHANGE: Fixed an issue where it was not possible to add the same
      login to two instances on the same server.
  • Changes to xSQLServerMaxDop
    • BREAKING CHANGE: Made SQLInstance parameter a key so that multiple instances
      on the same server can be configured

v1.8.0

25 Dec 09:02
Compare
Choose a tag to compare
  • Converted appveyor.yml to install Pester from PSGallery instead of from Chocolatey.
  • Added Support for SQL Server 2016
  • xSQLAOGroupEnsure
    • Fixed spelling mistake in AutoBackupPreference property
    • Added BackupPriority property
  • Added resources
    • xSQLServerPermission
    • xSQLServerEndpointState
    • xSQLServerEndpointPermission
    • xSQLServerAvailabilityGroupListener
  • xSQLServerHelper
    • added functions
      • Import-SQLPSModule
      • Get-SQLPSInstanceName
      • Get-SQLPSInstance
      • Get-SQLAlwaysOnEndpoint
    • modified functions
      • New-TerminatingError - added optional parameter InnerException to be able
        to give the user more information in the returned message

v1.7.0

25 Dec 09:01
Compare
Choose a tag to compare
  • Resources Added
    • xSQLServerConfiguration

v1.6.0

25 Dec 09:01
Compare
Choose a tag to compare
  • Resources Added
    • xSQLAOGroupEnsure
    • xSQLAOGroupJoin
    • xWaitForAvailabilityGroup
    • xSQLServerEndPoint
    • xSQLServerAlwaysOnService
  • xSQLServerHelper
    • added functions
      • Connect-SQL
      • New-VerboseMessage
      • Grant-ServerPerms
      • Grant-CNOPerms
      • New-ListenerADObject
  • xSQLDatabaseRecoveryModel
    • Updated Verbose statements to use new function New-VerboseMessage
  • xSQLServerDatabase
    • Updated Verbose statements to use new function New-VerboseMessage
    • Removed ConnectSQL function and replaced with new Connect-SQL function
  • xSQLServerDatabaseOwner
    • Removed ConnectSQL function and replaced with new Connect-SQL function
  • xSQLServerDatabasePermissions
    • Removed ConnectSQL function and replaced with new Connect-SQL function
  • xSQLServerDatabaseRole
    • Removed ConnectSQL function and replaced with new Connect-SQL function
  • xSQLServerLogin
    • Removed ConnectSQL function and replaced with new Connect-SQL function
  • xSQLServerMaxDop
    • Updated Verbose statements to use new function New-VerboseMessage
    • Removed ConnectSQL function and replaced with new Connect-SQL function
  • xSQLServerMemory
    • Updated Verbose statements to use new function New-VerboseMessage
    • Removed ConnectSQL function and replaced with new Connect-SQL function
  • xSQLServerPowerPlan
    • Updated Verbose statements to use new function New-VerboseMessage
  • Examples
    • Added xSQLServerConfiguration resource example

v1.5.0

25 Dec 09:01
Compare
Choose a tag to compare
  • Added new resource xSQLServerDatabase that allows adding an empty database to
    a server

v1.4.0

25 Dec 09:00
Compare
Choose a tag to compare
  • Resources Added
    • xSQLDatabaseRecoveryModeAdded
    • xSQLServerDatabaseOwner
    • xSQLServerDatabasePermissions
    • xSQLServerDatabaseRole
    • xSQLServerLogin
    • xSQLServerMaxDop
    • xSQLServerMemory
    • xSQLServerPowerPlan
    • xSQLServerDatabase
  • xSQLServerSetup:
    • Corrected bug in GetFirstItemPropertyValue to correctly handle registry keys
      with only one value.
    • Added support for SQL Server
    • 2008 R2 installation
    • Removed default values for parameters, to avoid compatibility issues and setup
      errors
    • Added Replication sub feature detection
    • Added setup parameter BrowserSvcStartupType
    • Change SourceFolder to Source to allow for multi version Support
    • Add Source Credential for accessing source files
    • Add Parameters for SQL Server configuration
    • Add Parameters to SuppressReboot or ForceReboot
  • xSQLServerFirewall
    • Removed default values for parameters, to avoid compatibility issues
    • Updated firewall rule name to not use 2012 version, since package supports 2008,
      2012 and 2014 versions
    • Additional of SQLHelper Function and error handling
    • Change SourceFolder to Source to allow for multi version Support
  • xSQLServerNetwork
    • Added new resource that configures network settings.
    • Currently supports only tcp network protocol
    • Allows to enable and disable network protocol for specified instance service
    • Allows to set custom or dynamic port values
  • xSQLServerRSSecureConnectionLevel
    • Additional of SQLHelper Function and error handling
  • xSqlServerRSConfig
  • xSQLServerFailoverClusterSetup
    • Additional of SQLHelper Function and error handling
    • Change SourceFolder to Source to allow for multi version Support
    • Add Parameters to SuppressReboot or ForceReboot
  • Examples
    • Updated example files to use correct DebugMode parameter value ForceModuleImport,
      this is not boolean in WMF 5.0 RTM
    • Added xSQLServerNetwork example

v1.3.0

25 Dec 09:00
Compare
Choose a tag to compare
  • xSqlServerSetup
    • Make Features case-insensitive.