Releases: dsccommunity/SqlServerDsc
Releases · dsccommunity/SqlServerDsc
v17.4.0-preview0008
[v17.4.0-preview0008]
Added
- Added public command
Backup-SqlDscDatabaseto perform database backups using
SMO'sMicrosoft.SqlServer.Management.Smo.Backupclass. Supports full,
differential, and transaction log backups with options for compression,
copy-only, checksum, and retention. Accepts both Server and Database objects
via pipeline
(issue #2365). Set-SqlDscServerPermission- Added integration tests for negative test scenarios including invalid
permission names and non-existent principals.
- Added integration tests for negative test scenarios including invalid
SqlPermission- Added integration tests for server role permissions to complement the
existing login permission tests.
- Added integration tests for server role permissions to complement the
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
- Renamed commands
*-SqlDscBIReportServerto*-SqlDscPowerBIReportServerfor
clarity. The old names*-SqlDscBIReportServerand*-SqlDscPBIReportServer
are available as aliases for backward compatibility
(issue #2071). SqlPermission- Refactored to use the new object-based server permission commands
(Grant-SqlDscServerPermission,Deny-SqlDscServerPermission,
Revoke-SqlDscServerPermission, andGet-SqlDscServerPermission)
instead of the deprecatedSet-SqlDscServerPermissioncommand
(issue #2159). - Updated documentation to clarify that the resource supports both logins
and server roles as principals. - Added a note in documentation clarifying that if a name exists as both
a login and a server role, the login will take precedence.
- Refactored to use the new object-based server permission commands
- BREAKING CHANGE:
Set-SqlDscServerPermission- Completely refactored to set exact server permissions for a principal. The
command now accepts Login or ServerRole objects (same asGrant-SqlDscServerPermission,
Deny-SqlDscServerPermission, andRevoke-SqlDscServerPermission) and uses
-Grant,-GrantWithGrant, and-Denyparameters to specify the exact
permissions that should exist within each specified category. Within a
specified category, any existing permissions not listed are revoked;
categories not specified are left unchanged. The command internally uses
Get-SqlDscServerPermission,Grant-SqlDscServerPermission,
Deny-SqlDscServerPermission, andRevoke-SqlDscServerPermissionto
achieve this
(issue #2159).
- Completely refactored to set exact server permissions for a principal. The
- Updated comment-based help
.INPUTSand.OUTPUTSsections across all public
commands and private functions to comply with DSC community style guidelines
(issue #2103). Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
Set-SqlDscServerPermission- Fixed an issue where unspecified permission parameters would incorrectly
revoke existing permissions. The command now only processes permission
categories that are explicitly specified via parameters. For example,
specifying only-Grant @()will now correctly revoke only Grant permissions
while leaving GrantWithGrant and Deny permissions unchanged
(issue #2159).
- Fixed an issue where unspecified permission parameters would incorrectly
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
New-SqlDscRole- Fixed duplicate verbose output by removing manual
Write-Verbosecall, as
$PSCmdlet.ShouldProcess()already generates appropriate verbose output
(issue #2156).
- Fixed duplicate verbose output by removing manual
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.4.0-preview0007
[v17.4.0-preview0007]
Added
Set-SqlDscServerPermission- Added integration tests for negative test scenarios including invalid
permission names and non-existent principals.
- Added integration tests for negative test scenarios including invalid
SqlPermission- Added integration tests for server role permissions to complement the
existing login permission tests.
- Added integration tests for server role permissions to complement the
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
- Renamed commands
*-SqlDscBIReportServerto*-SqlDscPowerBIReportServerfor
clarity. The old names*-SqlDscBIReportServerand*-SqlDscPBIReportServer
are available as aliases for backward compatibility
(issue #2071). SqlPermission- Refactored to use the new object-based server permission commands
(Grant-SqlDscServerPermission,Deny-SqlDscServerPermission,
Revoke-SqlDscServerPermission, andGet-SqlDscServerPermission)
instead of the deprecatedSet-SqlDscServerPermissioncommand
(issue #2159). - Updated documentation to clarify that the resource supports both logins
and server roles as principals. - Added a note in documentation clarifying that if a name exists as both
a login and a server role, the login will take precedence.
- Refactored to use the new object-based server permission commands
- BREAKING CHANGE:
Set-SqlDscServerPermission- Completely refactored to set exact server permissions for a principal. The
command now accepts Login or ServerRole objects (same asGrant-SqlDscServerPermission,
Deny-SqlDscServerPermission, andRevoke-SqlDscServerPermission) and uses
-Grant,-GrantWithGrant, and-Denyparameters to specify the exact
permissions that should exist within each specified category. Within a
specified category, any existing permissions not listed are revoked;
categories not specified are left unchanged. The command internally uses
Get-SqlDscServerPermission,Grant-SqlDscServerPermission,
Deny-SqlDscServerPermission, andRevoke-SqlDscServerPermissionto
achieve this
(issue #2159).
- Completely refactored to set exact server permissions for a principal. The
- Updated comment-based help
.INPUTSand.OUTPUTSsections across all public
commands and private functions to comply with DSC community style guidelines
(issue #2103). Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
Set-SqlDscServerPermission- Fixed an issue where unspecified permission parameters would incorrectly
revoke existing permissions. The command now only processes permission
categories that are explicitly specified via parameters. For example,
specifying only-Grant @()will now correctly revoke only Grant permissions
while leaving GrantWithGrant and Deny permissions unchanged
(issue #2159).
- Fixed an issue where unspecified permission parameters would incorrectly
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
New-SqlDscRole- Fixed duplicate verbose output by removing manual
Write-Verbosecall, as
$PSCmdlet.ShouldProcess()already generates appropriate verbose output
(issue #2156).
- Fixed duplicate verbose output by removing manual
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.4.0-preview0006
[v17.4.0-preview0006]
Added
SqlPermission- Added integration tests for server role permissions to complement the
existing login permission tests.
- Added integration tests for server role permissions to complement the
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
- Renamed commands
*-SqlDscBIReportServerto*-SqlDscPowerBIReportServerfor
clarity. The old names*-SqlDscBIReportServerand*-SqlDscPBIReportServer
are available as aliases for backward compatibility
(issue #2071). SqlPermission- Refactored to use the new object-based server permission commands
(Grant-SqlDscServerPermission,Deny-SqlDscServerPermission,
Revoke-SqlDscServerPermission, andGet-SqlDscServerPermission)
instead of the deprecatedSet-SqlDscServerPermissioncommand
(issue #2159). - Updated documentation to clarify that the resource supports both logins
and server roles as principals. - Added a note in documentation clarifying that if a name exists as both
a login and a server role, the login will take precedence.
- Refactored to use the new object-based server permission commands
- Updated comment-based help
.INPUTSand.OUTPUTSsections across all public
commands and private functions to comply with DSC community style guidelines
(issue #2103). Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
New-SqlDscRole- Fixed duplicate verbose output by removing manual
Write-Verbosecall, as
$PSCmdlet.ShouldProcess()already generates appropriate verbose output
(issue #2156).
- Fixed duplicate verbose output by removing manual
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.4.0-preview0005
[v17.4.0-preview0005]
Added
SqlPermission- Added integration tests for server role permissions to complement the
existing login permission tests.
- Added integration tests for server role permissions to complement the
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
SqlPermission- Refactored to use the new object-based server permission commands
(Grant-SqlDscServerPermission,Deny-SqlDscServerPermission,
Revoke-SqlDscServerPermission, andGet-SqlDscServerPermission)
instead of the deprecatedSet-SqlDscServerPermissioncommand
(issue #2159). - Updated documentation to clarify that the resource supports both logins
and server roles as principals. - Added a note in documentation clarifying that if a name exists as both
a login and a server role, the login will take precedence.
- Refactored to use the new object-based server permission commands
- Updated comment-based help
.INPUTSand.OUTPUTSsections across all public
commands and private functions to comply with DSC community style guidelines
(issue #2103). Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
New-SqlDscRole- Fixed duplicate verbose output by removing manual
Write-Verbosecall, as
$PSCmdlet.ShouldProcess()already generates appropriate verbose output
(issue #2156).
- Fixed duplicate verbose output by removing manual
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.4.0-preview0004
[v17.4.0-preview0004]
Added
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
SqlPermission- Refactored to use the new object-based server permission commands
(Grant-SqlDscServerPermission,Deny-SqlDscServerPermission,
Revoke-SqlDscServerPermission, andGet-SqlDscServerPermission)
instead of the deprecatedSet-SqlDscServerPermissioncommand
(issue #2159).
- Refactored to use the new object-based server permission commands
- Updated comment-based help
.INPUTSand.OUTPUTSsections across all public
commands and private functions to comply with DSC community style guidelines
(issue #2103). Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
New-SqlDscRole- Fixed duplicate verbose output by removing manual
Write-Verbosecall, as
$PSCmdlet.ShouldProcess()already generates appropriate verbose output
(issue #2156).
- Fixed duplicate verbose output by removing manual
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.4.0-preview0003
[v17.4.0-preview0003]
Added
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
- Updated comment-based help
.INPUTSand.OUTPUTSsections across all public
commands and private functions to comply with DSC community style guidelines
(issue #2103). Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
New-SqlDscRole- Fixed duplicate verbose output by removing manual
Write-Verbosecall, as
$PSCmdlet.ShouldProcess()already generates appropriate verbose output
(issue #2156).
- Fixed duplicate verbose output by removing manual
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.4.0-preview0002
[v17.4.0-preview0002]
Added
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
- Updated comment-based help
.INPUTSand.OUTPUTSsections across all public
commands and private functions to comply with DSC community style guidelines
(issue #2103). Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.4.0-preview0001
[v17.4.0-preview0001]
Added
New-SqlDscDatabase- Added comprehensive set of settable database properties that were previously
only available inSet-SqlDscDatabaseProperty
(issue #2190).
- Added comprehensive set of settable database properties that were previously
- Added public command
Resume-SqlDscDatabaseto bring a database online using
SMODatabase.SetOnline(). Supports Server and Database pipeline input
(issue #2191). - Added public command
Suspend-SqlDscDatabaseto take a database offline using
SMODatabase.SetOffline(). Supports Server and Database pipeline input;
includesForceto disconnect active users
(issue #2192).
Changed
Set-SqlDscDatabaseProperty- Updated comment-based help to reference correct enum values.
- Added SQL Server version requirements to version-specific parameter help.
Fixed
New-SqlDscDatabase- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
Set-SqlDscDatabaseProperty- Fixed parameter types for database-scoped configuration properties from
System.BooleantoMicrosoft.SqlServer.Management.Smo.DatabaseScopedConfigurationOnOff
to match SMO property types and support all valid values (Off, On, Primary)
(issue #2190). - Fixed parameter types for boolean database properties from
System.Booleanto
System.Management.Automation.SwitchParameterto follow PowerShell best practices.
(issue #2190).
- Fixed parameter types for database-scoped configuration properties from
v17.3.0
[v17.3.0]
Removed
- BREAKING CHANGE: Removed public command
Test-SqlDscDatabase. Use
Test-SqlDscIsDatabaseto check existence. For property checks, use
Test-SqlDscDatabaseProperty. See issue #2201. - BREAKING CHANGE:
Set-SqlDscDatabase- Removed parameter
OwnerNameissue #2177.
Use the new commandSet-SqlDscDatabaseOwnerto change database ownership instead.
- Removed parameter
- BREAKING CHANGE:
Set-SqlDscDatabaseProperty- Removed parameters
AzureEditionandAzureServiceObjective. Azure SQL Database
service tier and SLO changes should be managed usingSet-AzSqlDatabasefrom the
Azure PowerShell module instead. See issue #2177. - Removed parameter
DatabaseSnapshotBaseName. Database snapshots should be
created using theNew-SqlDscDatabaseSnapshot, or theNew-SqlDscDatabase
command with the-DatabaseSnapshotBaseNameparameter. - Removed parameter
DefaultSchema. Default schema is a user-level property,
not a database-level property. See issue #2177. - Removed parameter
IsLedger. Ledger status is read-only after database creation.
UseNew-SqlDscDatabasewith the-IsLedgerparameter to create ledger databases
issue #2351.
- Removed parameters
Added
- Added public command
Enable-SqlDscDatabaseSnapshotIsolationto enable snapshot
isolation for a database in a SQL Server Database Engine instance. This command
uses the SMOSetSnapshotIsolation()method to enable row-versioning and snapshot
isolation settings to optimize concurrency and consistency (issue #2329). - Added public command
Disable-SqlDscDatabaseSnapshotIsolationto disable snapshot
isolation for a database in a SQL Server Database Engine instance. This command
uses the SMOSetSnapshotIsolation()method to disable row-versioning and snapshot
isolation settings (issue #2329). - Added public command
New-SqlDscDatabaseSnapshotto create database snapshots
in a SQL Server Database Engine instance using SMO. This command provides an
automated and DSC-friendly approach to snapshot management by leveraging
New-SqlDscDatabasefor the actual creation. The command now supportsFileGroup
andDataFileparameters to allow control over snapshot file placement and
structure (issue #2341). - Added public command
New-SqlDscFileGroupto create FileGroup objects for SQL
Server databases. This command simplifies creating FileGroup objects that can be
used withNew-SqlDscDatabaseand other database-related commands. TheDatabase
parameter is optional, allowing FileGroup objects to be created standalone and
added to a Database later usingAdd-SqlDscFileGroup. - Added public command
New-SqlDscDataFileto create DataFile objects for SQL
Server FileGroups. This command simplifies creating DataFile objects with
specified physical file paths, supporting both regular database files (.mdf, .ndf)
and sparse files for database snapshots (.ss). TheFileGroupparameter is
mandatory, requiring DataFile objects to be created with an associated FileGroup. - Added public command
Add-SqlDscFileGroupto add one or more FileGroup objects
to a Database. This command provides a clean way to associate FileGroup objects
with a Database after they have been created. - Added public command
ConvertTo-SqlDscDataFileto convertDatabaseFileSpec
objects to SMO DataFile objects. - Added public command
ConvertTo-SqlDscFileGroupto convertDatabaseFileGroupSpec
objects to SMO FileGroup objects. - Added class
DatabaseFileSpecto define data file specifications without requiring
a database or SMO context. - Added class
DatabaseFileGroupSpecto define file group specifications with
associated data files without requiring a database or SMO context. New-SqlDscDatabase- Added
FileGroupandDataFileparameters to allow specifying custom file
locations and structure. These parameters apply to both regular databases and
database snapshots, enabling control over file placement for snapshots (sparse
files) and custom filegroup/datafile configuration for regular databases
(issue #2341). - Added
IsLedgerparameter to support creating ledger databases at creation time.
Ledger status is read-only after database creation and can only be set when
creating a new database (issue #2351).
- Added
- Added public command
Set-SqlDscDatabaseOwnerto change the owner of a SQL Server
database issue #2177.
This command uses the SMOSetOwner()method and supports bothServerObject
andDatabaseObjectparameter sets. This replaces the ownership changes
previously done via theOwnerNameparameter inSet-SqlDscDatabase. - Added public command
Test-SqlDscIsDatabaseto test if a database exists on a
SQL Server Database Engine instance (issue #2201). - Added public command
Get-SqlDscSetupLogto retrieve SQL Server setup bootstrap
logs (Summary.txt) from the most recent setup operation. This command can be used
interactively for troubleshooting or within integration tests to help diagnose
setup failures. Integration tests have been updated to use this command instead
of duplicated error handling code issue #2311. - Added script
Remove-SqlServerFromCIImage.ps1to remove pre-installed SQL Server
components from Microsoft Hosted agents that conflict with PrepareImage operations.
The script is now run automatically in the CI pipeline before PrepareImage tests
to resolve Sysprep compatibility errors issue #2212. - Added integration tests for
Complete-SqlDscImagecommand to ensure command
reliability in prepared image installation workflows. The test runs in a separate
pipeline jobIntegration_Test_Commands_SqlServer_PreparedImagewith its own CI
worker, and verifies the completion of SQL Server instances prepared using
Install-SqlDscServerwith the-PrepareImageparameter. The test includes
scenarios with minimal parameters and various service account/directory
configurations issue #2212. - Added integration test for
Install-SqlDscServerwith the-PrepareImage
parameter set to support the prepared image installation workflow. This test
(Install-SqlDscServer.Integration.PrepareImage.Tests.ps1) runs in the
Integration_Test_Commands_SqlServer_PreparedImagepipeline job and prepares
a DSCSQLTEST instance that is later completed byComplete-SqlDscImagetests
issue #2212. - Added integration tests for
Initialize-SqlDscRebuildDatabasecommand to ensure
command reliability. The test runs in group 8, alongsideRepair-SqlDscServer,
to verify the rebuild database functionality on the DSCSQLTEST instance
issue #2242. - Added integration tests for
Repair-SqlDscServercommand to ensure command
reliability. The test runs in group 8, beforeUninstall-SqlDscServerin
group 9, to verify the repair functionality on the DSCSQLTEST instance
issue #2238. - Added integration tests for
ConvertTo-SqlDscServerPermissioncommand to ensure
command reliability issue #2207. - Added post-installation configuration integration test to configure SSL certificate
support for SQL Server instance DSCSQLTEST in CI environment, enabling testing
of encryption-related functionality. The newPostInstallationConfiguration
integration test includes:- Self-signed SSL certificate creation and installation
- Certificate configuration for SQL Server Database Engine
- Service account permissions for certificate private key access
- Certificate trust chain configuration
- Verification that encryption is properly configured
- Enabled previously skipped encryption tests in
Invoke-SqlDscQuery - Added integration tests for
Connect-SqlDscDatabaseEnginecommand to verify
the-Encryptparameter functionality
issue #2290.
- Added integration tests for
Get-SqlDscDatabasePermissioncommand to ensure
database permission retrieval functions correctly in real environments
issue #2221. - Added integration tests for
Get-SqlDscManagedComputercommand to ensure it
functions correctly in real environments
issue #2220. - Added integration tests for
Remove-SqlDscAuditcommand to ensure it functions
correctly in real environments
issue #2241. - Added integration tests for
ConvertFrom-SqlDscDatabasePermissioncommand to
ensure it functions correctly in real environments
issue #2211. - Added integration tests for
Get-SqlDscStartupParametercommand to ensure it
functions correctly in real environments
[issue #2217](https://github.com/dsccommunity/SqlServerDsc/issu...
v17.3.0-preview0024
[v17.3.0-preview0024]
Removed
- BREAKING CHANGE: Removed public command
Test-SqlDscDatabase. Use
Test-SqlDscIsDatabaseto check existence. For property checks, use
Test-SqlDscDatabaseProperty. See issue #2201. - BREAKING CHANGE:
Set-SqlDscDatabase- Removed parameter
OwnerNameissue #2177.
Use the new commandSet-SqlDscDatabaseOwnerto change database ownership instead.
- Removed parameter
- BREAKING CHANGE:
Set-SqlDscDatabaseProperty- Removed parameters
AzureEditionandAzureServiceObjective. Azure SQL Database
service tier and SLO changes should be managed usingSet-AzSqlDatabasefrom the
Azure PowerShell module instead. See issue #2177. - Removed parameter
DatabaseSnapshotBaseName. Database snapshots should be
created using theNew-SqlDscDatabaseSnapshot, or theNew-SqlDscDatabase
command with the-DatabaseSnapshotBaseNameparameter. - Removed parameter
DefaultSchema. Default schema is a user-level property,
not a database-level property. See issue #2177. - Removed parameter
IsLedger. Ledger status is read-only after database creation.
UseNew-SqlDscDatabasewith the-IsLedgerparameter to create ledger databases
issue #2351.
- Removed parameters
Added
- Added public command
Enable-SqlDscDatabaseSnapshotIsolationto enable snapshot
isolation for a database in a SQL Server Database Engine instance. This command
uses the SMOSetSnapshotIsolation()method to enable row-versioning and snapshot
isolation settings to optimize concurrency and consistency (issue #2329). - Added public command
Disable-SqlDscDatabaseSnapshotIsolationto disable snapshot
isolation for a database in a SQL Server Database Engine instance. This command
uses the SMOSetSnapshotIsolation()method to disable row-versioning and snapshot
isolation settings (issue #2329). - Added public command
New-SqlDscDatabaseSnapshotto create database snapshots
in a SQL Server Database Engine instance using SMO. This command provides an
automated and DSC-friendly approach to snapshot management by leveraging
New-SqlDscDatabasefor the actual creation. The command now supportsFileGroup
andDataFileparameters to allow control over snapshot file placement and
structure (issue #2341). - Added public command
New-SqlDscFileGroupto create FileGroup objects for SQL
Server databases. This command simplifies creating FileGroup objects that can be
used withNew-SqlDscDatabaseand other database-related commands. TheDatabase
parameter is optional, allowing FileGroup objects to be created standalone and
added to a Database later usingAdd-SqlDscFileGroup. - Added public command
New-SqlDscDataFileto create DataFile objects for SQL
Server FileGroups. This command simplifies creating DataFile objects with
specified physical file paths, supporting both regular database files (.mdf, .ndf)
and sparse files for database snapshots (.ss). TheFileGroupparameter is
mandatory, requiring DataFile objects to be created with an associated FileGroup. - Added public command
Add-SqlDscFileGroupto add one or more FileGroup objects
to a Database. This command provides a clean way to associate FileGroup objects
with a Database after they have been created. - Added public command
ConvertTo-SqlDscDataFileto convertDatabaseFileSpec
objects to SMO DataFile objects. - Added public command
ConvertTo-SqlDscFileGroupto convertDatabaseFileGroupSpec
objects to SMO FileGroup objects. - Added class
DatabaseFileSpecto define data file specifications without requiring
a database or SMO context. - Added class
DatabaseFileGroupSpecto define file group specifications with
associated data files without requiring a database or SMO context. New-SqlDscDatabase- Added
FileGroupandDataFileparameters to allow specifying custom file
locations and structure. These parameters apply to both regular databases and
database snapshots, enabling control over file placement for snapshots (sparse
files) and custom filegroup/datafile configuration for regular databases
(issue #2341). - Added
IsLedgerparameter to support creating ledger databases at creation time.
Ledger status is read-only after database creation and can only be set when
creating a new database (issue #2351).
- Added
- Added public command
Set-SqlDscDatabaseOwnerto change the owner of a SQL Server
database issue #2177.
This command uses the SMOSetOwner()method and supports bothServerObject
andDatabaseObjectparameter sets. This replaces the ownership changes
previously done via theOwnerNameparameter inSet-SqlDscDatabase. - Added public command
Test-SqlDscIsDatabaseto test if a database exists on a
SQL Server Database Engine instance (issue #2201). - Added public command
Get-SqlDscSetupLogto retrieve SQL Server setup bootstrap
logs (Summary.txt) from the most recent setup operation. This command can be used
interactively for troubleshooting or within integration tests to help diagnose
setup failures. Integration tests have been updated to use this command instead
of duplicated error handling code issue #2311. - Added script
Remove-SqlServerFromCIImage.ps1to remove pre-installed SQL Server
components from Microsoft Hosted agents that conflict with PrepareImage operations.
The script is now run automatically in the CI pipeline before PrepareImage tests
to resolve Sysprep compatibility errors issue #2212. - Added integration tests for
Complete-SqlDscImagecommand to ensure command
reliability in prepared image installation workflows. The test runs in a separate
pipeline jobIntegration_Test_Commands_SqlServer_PreparedImagewith its own CI
worker, and verifies the completion of SQL Server instances prepared using
Install-SqlDscServerwith the-PrepareImageparameter. The test includes
scenarios with minimal parameters and various service account/directory
configurations issue #2212. - Added integration test for
Install-SqlDscServerwith the-PrepareImage
parameter set to support the prepared image installation workflow. This test
(Install-SqlDscServer.Integration.PrepareImage.Tests.ps1) runs in the
Integration_Test_Commands_SqlServer_PreparedImagepipeline job and prepares
a DSCSQLTEST instance that is later completed byComplete-SqlDscImagetests
issue #2212. - Added integration tests for
Initialize-SqlDscRebuildDatabasecommand to ensure
command reliability. The test runs in group 8, alongsideRepair-SqlDscServer,
to verify the rebuild database functionality on the DSCSQLTEST instance
issue #2242. - Added integration tests for
Repair-SqlDscServercommand to ensure command
reliability. The test runs in group 8, beforeUninstall-SqlDscServerin
group 9, to verify the repair functionality on the DSCSQLTEST instance
issue #2238. - Added integration tests for
ConvertTo-SqlDscServerPermissioncommand to ensure
command reliability issue #2207. - Added post-installation configuration integration test to configure SSL certificate
support for SQL Server instance DSCSQLTEST in CI environment, enabling testing
of encryption-related functionality. The newPostInstallationConfiguration
integration test includes:- Self-signed SSL certificate creation and installation
- Certificate configuration for SQL Server Database Engine
- Service account permissions for certificate private key access
- Certificate trust chain configuration
- Verification that encryption is properly configured
- Enabled previously skipped encryption tests in
Invoke-SqlDscQuery - Added integration tests for
Connect-SqlDscDatabaseEnginecommand to verify
the-Encryptparameter functionality
issue #2290.
- Added integration tests for
Get-SqlDscDatabasePermissioncommand to ensure
database permission retrieval functions correctly in real environments
issue #2221. - Added integration tests for
Get-SqlDscManagedComputercommand to ensure it
functions correctly in real environments
issue #2220. - Added integration tests for
Remove-SqlDscAuditcommand to ensure it functions
correctly in real environments
issue #2241. - Added integration tests for
ConvertFrom-SqlDscDatabasePermissioncommand to
ensure it functions correctly in real environments
issue #2211. - Added integration tests for
Get-SqlDscStartupParametercommand to ensure it
functions correctly in real environments
[issue #2217](https://github.com/dsccommunity/SqlSe...