diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d35542b2..2b03bd301 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added compatibility levels for SQL Server 2022 (major version 16). - SqlSetup - Paths for SQL Server 2022 are correctly returned by Get. +- The public commands `Add-SqlDscNode`, `Complete-SqlDscFailoverCluster`, + `Complete-SqlDscImage`, `Install-SqlDscServer`, and `Repair-SqlDscServer` + now support the setup argument `ProductCoveredBySA` ([issue #1798](https://github.com/dsccommunity/SqlServerDsc/issues/1798)). ### Changed @@ -59,6 +62,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - No longer throws an exception when parameter `AgtSvcAccount` is not specified. - SqlAgReplica - Converted unit test to Pester 5. +- Private function `Invoke-SetupAction` ([issue #1798](https://github.com/dsccommunity/SqlServerDsc/issues/1798)). + - Was changed to support the SQL Server 2022 GA feature `AzureExtension` + (that replaced the feature name `ARC`). + - Support the setup argument `ProductCoveredBySA`. + - No longer supports the argument `OnBoardSQLToARC` as it was removed in + SQL Server 2022 GA. +- `Install-SqlDscServer` + - Was changed to support the SQL Server 2022 GA feature `AzureExtension` + (that replaced the feature name `ARC`) ([issue #1798](https://github.com/dsccommunity/SqlServerDsc/issues/1798)). +- `Uninstall-SqlDscServer` + - Was changed to support the SQL Server 2022 GA feature `AzureExtension` + (that replaced the feature name `ARC`) ([issue #1798](https://github.com/dsccommunity/SqlServerDsc/issues/1798)). ### Fixed diff --git a/source/Private/Assert-SetupActionProperties.ps1 b/source/Private/Assert-SetupActionProperties.ps1 index 51c8540f9..c11475a12 100644 --- a/source/Private/Assert-SetupActionProperties.ps1 +++ b/source/Private/Assert-SetupActionProperties.ps1 @@ -106,8 +106,8 @@ function Assert-SetupActionProperties } } - # If feature ARC is specified then the all the Azure* parameters must be set (except AzureArcProxy). - if ($Property.ContainsKey('Features') -and $Property.Features -contains 'ARC') + # If feature AzureExtension is specified then the all the Azure* parameters must be set (except AzureArcProxy). + if ($Property.ContainsKey('Features') -and $Property.Features -contains 'AZUREEXTENSION') # cSpell: disable-line { Assert-RequiredCommandParameter -BoundParameter $Property -RequiredParameter @( 'AzureSubscriptionId' @@ -116,6 +116,7 @@ function Assert-SetupActionProperties 'AzureTenantId' 'AzureServicePrincipal' 'AzureServicePrincipalSecret' + 'ProductCoveredBySA' ) } diff --git a/source/Private/Invoke-SetupAction.ps1 b/source/Private/Invoke-SetupAction.ps1 index 24b3131a1..081b60984 100644 --- a/source/Private/Invoke-SetupAction.ps1 +++ b/source/Private/Invoke-SetupAction.ps1 @@ -358,7 +358,7 @@ function Invoke-SetupAction 'SNAC_SDK', # Part of parent feature Tools (cspell: disable-line) 'SDK', # Part of parent feature Tools 'LocalDB', # Part of parent feature Tools - 'ARC' + 'AZUREEXTENSION' )] [System.String[]] $Features, @@ -1046,6 +1046,18 @@ function Invoke-SetupAction [System.String[]] $SkipRules, + [Parameter(ParameterSetName = 'Install')] + [Parameter(ParameterSetName = 'InstallRole')] + [Parameter(ParameterSetName = 'CompleteImage')] + [Parameter(ParameterSetName = 'Upgrade')] + [Parameter(ParameterSetName = 'InstallFailoverCluster')] + [Parameter(ParameterSetName = 'PrepareFailoverCluster')] + [Parameter(ParameterSetName = 'CompleteFailoverCluster')] + [Parameter(ParameterSetName = 'AddNode')] + [Parameter(ParameterSetName = 'EditionUpgrade')] + [System.Management.Automation.SwitchParameter] + $ProductCoveredBySA, + [Parameter()] [System.UInt32] $Timeout = 7200, @@ -1079,7 +1091,7 @@ function Invoke-SetupAction For this setup action the parameter Features is not part of the parameter set, so this can be safely set. #> - $PSBoundParameters.Features = @('ARC') + $PSBoundParameters.Features = @('AZUREEXTENSION') break } @@ -1186,11 +1198,6 @@ function Invoke-SetupAction { $setupArgument += '={0}' -f ($PSBoundParameters.$parameterName.ToUpper() -join ',') - if ($PSBoundParameters.Features -contains 'ARC' -and $PSBoundParameters.Features -contains 'SQLENGINE') - { - $setupArgument += ' /ONBOARDSQLTOARC' # cspell: disable-line - } - break } diff --git a/source/Public/Add-SqlDscNode.ps1 b/source/Public/Add-SqlDscNode.ps1 index fac54138d..bddcf0b8e 100644 --- a/source/Public/Add-SqlDscNode.ps1 +++ b/source/Public/Add-SqlDscNode.ps1 @@ -152,6 +152,10 @@ function Add-SqlDscNode [System.Management.Automation.SwitchParameter] $ConfirmIPDependencyChange, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $ProductCoveredBySA, + [Parameter()] [System.UInt32] $Timeout = 7200, diff --git a/source/Public/Complete-SqlDscFailoverCluster.ps1 b/source/Public/Complete-SqlDscFailoverCluster.ps1 index e4ca7e3f9..c71cbd8f1 100644 --- a/source/Public/Complete-SqlDscFailoverCluster.ps1 +++ b/source/Public/Complete-SqlDscFailoverCluster.ps1 @@ -183,6 +183,10 @@ function Complete-SqlDscFailoverCluster [System.Management.Automation.SwitchParameter] $ConfirmIPDependencyChange, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $ProductCoveredBySA, + [Parameter()] [System.UInt32] $Timeout = 7200, diff --git a/source/Public/Complete-SqlDscImage.ps1 b/source/Public/Complete-SqlDscImage.ps1 index e27b0f5e7..55a43f517 100644 --- a/source/Public/Complete-SqlDscImage.ps1 +++ b/source/Public/Complete-SqlDscImage.ps1 @@ -228,6 +228,10 @@ function Complete-SqlDscImage [System.String] $RSSvcStartupType, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $ProductCoveredBySA, + [Parameter()] [System.UInt32] $Timeout = 7200, diff --git a/source/Public/Install-SqlDscServer.ps1 b/source/Public/Install-SqlDscServer.ps1 index 7366f2c6b..53a437874 100644 --- a/source/Public/Install-SqlDscServer.ps1 +++ b/source/Public/Install-SqlDscServer.ps1 @@ -241,7 +241,7 @@ function Install-SqlDscServer 'SNAC_SDK', # Part of parent feature Tools (cspell: disable-line) 'SDK', # Part of parent feature Tools 'LocalDB', # Part of parent feature Tools - 'ARC' + 'AZUREEXTENSION' )] [System.String[]] $Features, @@ -819,6 +819,15 @@ function Install-SqlDscServer [System.String[]] $SkipRules, + [Parameter(ParameterSetName = 'Install')] + [Parameter(ParameterSetName = 'InstallRole')] + [Parameter(ParameterSetName = 'Upgrade')] + [Parameter(ParameterSetName = 'InstallFailoverCluster')] + [Parameter(ParameterSetName = 'PrepareFailoverCluster')] + [Parameter(ParameterSetName = 'EditionUpgrade')] + [System.Management.Automation.SwitchParameter] + $ProductCoveredBySA, + [Parameter()] [System.UInt32] $Timeout = 7200, diff --git a/source/Public/Repair-SqlDscServer.ps1 b/source/Public/Repair-SqlDscServer.ps1 index af3a73218..a7b9f78d7 100644 --- a/source/Public/Repair-SqlDscServer.ps1 +++ b/source/Public/Repair-SqlDscServer.ps1 @@ -81,7 +81,7 @@ function Repair-SqlDscServer 'SNAC_SDK', # Part of parent feature Tools (cspell: disable-line) 'SDK', # Part of parent feature Tools 'LocalDB', # Part of parent feature Tools - 'ARC' + 'AZUREEXTENSION' )] [System.String[]] $Features, diff --git a/source/Public/Uninstall-SqlDscServer.ps1 b/source/Public/Uninstall-SqlDscServer.ps1 index 1b9e36a49..0d3d76c4e 100644 --- a/source/Public/Uninstall-SqlDscServer.ps1 +++ b/source/Public/Uninstall-SqlDscServer.ps1 @@ -78,7 +78,7 @@ function Uninstall-SqlDscServer 'SNAC_SDK', # Part of parent feature Tools (cspell: disable-line) 'SDK', # Part of parent feature Tools 'LocalDB', # Part of parent feature Tools - 'ARC' + 'AZUREEXTENSION' )] [System.String[]] $Features, diff --git a/tests/Unit/Private/Assert-SetupActionProperties.Tests.ps1 b/tests/Unit/Private/Assert-SetupActionProperties.Tests.ps1 index 517ab56fe..13117fd44 100644 --- a/tests/Unit/Private/Assert-SetupActionProperties.Tests.ps1 +++ b/tests/Unit/Private/Assert-SetupActionProperties.Tests.ps1 @@ -326,7 +326,7 @@ Describe 'Assert-SetupActionProperties' -Tag 'Private' { } } - Context 'When specifying feature ''ARC'' and required parameter '''' is missing' -ForEach @( + Context 'When specifying feature ''AZUREEXTENSION'' and required parameter '''' is missing' -ForEach @( @{ MockParameters = @{ AzureResourceGroup = 'Value' @@ -393,7 +393,7 @@ Describe 'Assert-SetupActionProperties' -Tag 'Private' { { $MockParameters.Features = @( 'SQLENGINE' - 'ARC' + 'AZUREEXTENSION' 'AS' ) diff --git a/tests/Unit/Private/Invoke-SetupAction.Tests.ps1 b/tests/Unit/Private/Invoke-SetupAction.Tests.ps1 index c84cf7697..91a9c585c 100644 --- a/tests/Unit/Private/Invoke-SetupAction.Tests.ps1 +++ b/tests/Unit/Private/Invoke-SetupAction.Tests.ps1 @@ -48,12 +48,12 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { @{ MockParameterSetName = 'Install' # cSpell: disable-next - MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -InstanceName -Features -SqlSysAdminAccounts [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -InstanceName -Features -SqlSysAdminAccounts [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'InstallRole' # cSpell: disable-next - MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -Role [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-InstanceName ] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-Features ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-FarmAccount ] [-FarmPassword ] [-Passphrase ] [-FarmAdminiPort ] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-AddCurrentUserAsSqlAdmin] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlSysAdminAccounts ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -Role [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-InstanceName ] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-Features ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-FarmAccount ] [-FarmPassword ] [-Passphrase ] [-FarmAdminiPort ] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-AddCurrentUserAsSqlAdmin] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlSysAdminAccounts ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'InstallAzureArcAgent' @@ -78,17 +78,17 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { @{ MockParameterSetName = 'CompleteImage' # cSpell: disable-next - MockExpectedParameters = '-CompleteImage -AcceptLicensingTerms -MediaPath [-InstanceName ] [-Enu] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlSysAdminAccounts ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-FileStreamLevel ] [-FileStreamShareName ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-CompleteImage -AcceptLicensingTerms -MediaPath [-InstanceName ] [-Enu] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlSysAdminAccounts ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-FileStreamLevel ] [-FileStreamShareName ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'Upgrade' # cSpell: disable-next - MockExpectedParameters = '-Upgrade -AcceptLicensingTerms -MediaPath -InstanceName [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstanceDir ] [-InstanceId ] [-ProductKey ] [-BrowserSvcStartupType ] [-FTUpgradeOption ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-AllowUpgradeForSSRSSharePointMode] [-FailoverClusterRollOwnership ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-Upgrade -AcceptLicensingTerms -MediaPath -InstanceName [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstanceDir ] [-InstanceId ] [-ProductKey ] [-BrowserSvcStartupType ] [-FTUpgradeOption ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-AllowUpgradeForSSRSSharePointMode] [-FailoverClusterRollOwnership ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'EditionUpgrade' # cSpell: disable-next - MockExpectedParameters = '-EditionUpgrade -AcceptLicensingTerms -MediaPath -InstanceName -ProductKey [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-EditionUpgrade -AcceptLicensingTerms -MediaPath -InstanceName -ProductKey [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'Repair' @@ -103,22 +103,22 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { @{ MockParameterSetName = 'InstallFailoverCluster' # cSpell: disable-next - MockExpectedParameters = '-InstallFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features -InstallSqlDataDir -SqlSysAdminAccounts -FailoverClusterNetworkName -FailoverClusterIPAddresses [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-FailoverClusterGroup ] [-FailoverClusterDisks ] [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-InstallFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features -InstallSqlDataDir -SqlSysAdminAccounts -FailoverClusterNetworkName -FailoverClusterIPAddresses [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-FailoverClusterGroup ] [-FailoverClusterDisks ] [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'PrepareFailoverCluster' # cSpell: disable-next - MockExpectedParameters = '-PrepareFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASSvcAccount ] [-ASSvcPassword ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-PrepareFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASSvcAccount ] [-ASSvcPassword ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'CompleteFailoverCluster' # cSpell: disable-next - MockExpectedParameters = '-CompleteFailoverCluster -MediaPath -InstanceName -InstallSqlDataDir -SqlSysAdminAccounts -FailoverClusterNetworkName -FailoverClusterIPAddresses [-Enu] [-ProductKey ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-RsInstallMode ] [-FailoverClusterGroup ] [-FailoverClusterDisks ] [-ConfirmIPDependencyChange] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-CompleteFailoverCluster -MediaPath -InstanceName -InstallSqlDataDir -SqlSysAdminAccounts -FailoverClusterNetworkName -FailoverClusterIPAddresses [-Enu] [-ProductKey ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-RsInstallMode ] [-FailoverClusterGroup ] [-FailoverClusterDisks ] [-ConfirmIPDependencyChange] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'AddNode' # cSpell: disable-next - MockExpectedParameters = '-AddNode -AcceptLicensingTerms -MediaPath -InstanceName -FailoverClusterIPAddresses [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASSvcAccount ] [-ASSvcPassword ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-ISSvcAccount ] [-ISSvcPassword ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-ConfirmIPDependencyChange] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-AddNode -AcceptLicensingTerms -MediaPath -InstanceName -FailoverClusterIPAddresses [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASSvcAccount ] [-ASSvcPassword ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-ISSvcAccount ] [-ISSvcPassword ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-ConfirmIPDependencyChange] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'RemoveNode' @@ -171,7 +171,7 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { MediaPath = '\SqlMedia' InstanceName = 'INSTANCE' # Intentionally using both upper- and lower-case. - Features = 'SqlEngine', 'Arc' + Features = 'SqlEngine', 'AZUREEXTENSION' SqlSysAdminAccounts = 'DOMAIN\User', 'COMPANY\SQL Administrators' } } @@ -186,9 +186,8 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/ACTION=Install' $ArgumentList | Should -MatchExactly '\/IACCEPTSQLSERVERLICENSETERMS' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/SQLSYSADMINACCOUNTS="DOMAIN\\User" "COMPANY\\SQL Administrators"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,AZUREEXTENSION' $ArgumentList | Should -MatchExactly '\/INSTANCENAME="INSTANCE"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/ONBOARDSQLTOARC' # cspell: disable-line # Return $true if none of the above throw. $true @@ -206,9 +205,8 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/ACTION=Install' $ArgumentList | Should -MatchExactly '\/IACCEPTSQLSERVERLICENSETERMS' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/SQLSYSADMINACCOUNTS="DOMAIN\\User" "COMPANY\\SQL Administrators"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,AZUREEXTENSION' $ArgumentList | Should -MatchExactly '\/INSTANCENAME="INSTANCE"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/ONBOARDSQLTOARC' # cspell: disable-line # Return $true if none of the above throw. $true @@ -3786,7 +3784,7 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/AZURETENANTID="7e52fb9e-6aad-426c-98c4-7d2f11f7e94b"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPAL="MyServicePrincipal"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPALSECRET="jT7ELPbD2GGuvLmjABDL"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=AZUREEXTENSION' # Return $true if none of the above throw. $true @@ -3809,7 +3807,7 @@ Describe 'Invoke-SetupAction' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/AZURETENANTID="7e52fb9e-6aad-426c-98c4-7d2f11f7e94b"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPAL="MyServicePrincipal"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPALSECRET="jT7ELPbD2GGuvLmjABDL"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=AZUREEXTENSION' # Return $true if none of the above throw. $true diff --git a/tests/Unit/Public/Add-SqlDscNode.Tests.ps1 b/tests/Unit/Public/Add-SqlDscNode.Tests.ps1 index ff1d59ee2..0312d1643 100644 --- a/tests/Unit/Public/Add-SqlDscNode.Tests.ps1 +++ b/tests/Unit/Public/Add-SqlDscNode.Tests.ps1 @@ -48,7 +48,7 @@ Describe 'Add-SqlDscNode' -Tag 'Public' { @{ MockParameterSetName = '__AllParameterSets' # cSpell: disable-next - MockExpectedParameters = '[-MediaPath] [-InstanceName] [[-UpdateSource] ] [[-PBEngSvcAccount] ] [[-PBEngSvcPassword] ] [[-PBEngSvcStartupType] ] [[-PBStartPortRange] ] [[-PBEndPortRange] ] [[-ProductKey] ] [[-AgtSvcAccount] ] [[-AgtSvcPassword] ] [[-ASSvcAccount] ] [[-ASSvcPassword] ] [[-SqlSvcAccount] ] [[-SqlSvcPassword] ] [[-ISSvcAccount] ] [[-ISSvcPassword] ] [[-RsInstallMode] ] [[-RSSvcAccount] ] [[-RSSvcPassword] ] [-FailoverClusterIPAddresses] [[-Timeout] ] -AcceptLicensingTerms [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-PBScaleOut] [-ConfirmIPDependencyChange] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '[-MediaPath] [-InstanceName] [[-UpdateSource] ] [[-PBEngSvcAccount] ] [[-PBEngSvcPassword] ] [[-PBEngSvcStartupType] ] [[-PBStartPortRange] ] [[-PBEndPortRange] ] [[-ProductKey] ] [[-AgtSvcAccount] ] [[-AgtSvcPassword] ] [[-ASSvcAccount] ] [[-ASSvcPassword] ] [[-SqlSvcAccount] ] [[-SqlSvcPassword] ] [[-ISSvcAccount] ] [[-ISSvcPassword] ] [[-RsInstallMode] ] [[-RSSvcAccount] ] [[-RSSvcPassword] ] [-FailoverClusterIPAddresses] [[-Timeout] ] -AcceptLicensingTerms [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-PBScaleOut] [-ConfirmIPDependencyChange] [-ProductCoveredBySA] [-Force] [-WhatIf] [-Confirm] []' } ) { $result = (Get-Command -Name 'Add-SqlDscNode').ParameterSets | diff --git a/tests/Unit/Public/Complete-SqlDscFailoverCluster.Tests.ps1 b/tests/Unit/Public/Complete-SqlDscFailoverCluster.Tests.ps1 index 622160e77..fdd25f318 100644 --- a/tests/Unit/Public/Complete-SqlDscFailoverCluster.Tests.ps1 +++ b/tests/Unit/Public/Complete-SqlDscFailoverCluster.Tests.ps1 @@ -48,7 +48,7 @@ Describe 'Complete-SqlDscFailoverCluster' -Tag 'Public' { @{ MockParameterSetName = '__AllParameterSets' # cSpell: disable-next - MockExpectedParameters = '[-MediaPath] [-InstanceName] [[-ProductKey] ] [[-ASBackupDir] ] [[-ASCollation] ] [[-ASConfigDir] ] [[-ASDataDir] ] [[-ASLogDir] ] [[-ASTempDir] ] [[-ASServerMode] ] [[-ASSysAdminAccounts] ] [-InstallSqlDataDir] [[-SqlBackupDir] ] [[-SecurityMode] ] [[-SAPwd] ] [[-SqlCollation] ] [-SqlSysAdminAccounts] [[-SqlTempDbDir] ] [[-SqlTempDbLogDir] ] [[-SqlTempDbFileCount] ] [[-SqlTempDbFileSize] ] [[-SqlTempDbFileGrowth] ] [[-SqlTempDbLogFileSize] ] [[-SqlTempDbLogFileGrowth] ] [[-SqlUserDbDir] ] [[-SqlUserDbLogDir] ] [[-RsInstallMode] ] [[-FailoverClusterGroup] ] [[-FailoverClusterDisks] ] [-FailoverClusterNetworkName] [-FailoverClusterIPAddresses] [[-Timeout] ] [-Enu] [-ASProviderMSOLAP] [-ConfirmIPDependencyChange] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '[-MediaPath] [-InstanceName] [[-ProductKey] ] [[-ASBackupDir] ] [[-ASCollation] ] [[-ASConfigDir] ] [[-ASDataDir] ] [[-ASLogDir] ] [[-ASTempDir] ] [[-ASServerMode] ] [[-ASSysAdminAccounts] ] [-InstallSqlDataDir] [[-SqlBackupDir] ] [[-SecurityMode] ] [[-SAPwd] ] [[-SqlCollation] ] [-SqlSysAdminAccounts] [[-SqlTempDbDir] ] [[-SqlTempDbLogDir] ] [[-SqlTempDbFileCount] ] [[-SqlTempDbFileSize] ] [[-SqlTempDbFileGrowth] ] [[-SqlTempDbLogFileSize] ] [[-SqlTempDbLogFileGrowth] ] [[-SqlUserDbDir] ] [[-SqlUserDbLogDir] ] [[-RsInstallMode] ] [[-FailoverClusterGroup] ] [[-FailoverClusterDisks] ] [-FailoverClusterNetworkName] [-FailoverClusterIPAddresses] [[-Timeout] ] [-Enu] [-ASProviderMSOLAP] [-ConfirmIPDependencyChange] [-ProductCoveredBySA] [-Force] [-WhatIf] [-Confirm] []' } ) { $result = (Get-Command -Name 'Complete-SqlDscFailoverCluster').ParameterSets | diff --git a/tests/Unit/Public/Complete-SqlDscImage.Tests.ps1 b/tests/Unit/Public/Complete-SqlDscImage.Tests.ps1 index 52e908630..01842327a 100644 --- a/tests/Unit/Public/Complete-SqlDscImage.Tests.ps1 +++ b/tests/Unit/Public/Complete-SqlDscImage.Tests.ps1 @@ -48,7 +48,7 @@ Describe 'Complete-SqlDscImage' -Tag 'Public' { @{ MockParameterSetName = '__AllParameterSets' # cSpell: disable-next - MockExpectedParameters = '[-MediaPath] [[-InstanceName] ] [[-InstanceId] ] [[-PBEngSvcAccount] ] [[-PBEngSvcPassword] ] [[-PBEngSvcStartupType] ] [[-PBStartPortRange] ] [[-PBEndPortRange] ] [[-ProductKey] ] [[-AgtSvcAccount] ] [[-AgtSvcPassword] ] [[-AgtSvcStartupType] ] [[-BrowserSvcStartupType] ] [[-InstallSqlDataDir] ] [[-SqlBackupDir] ] [[-SecurityMode] ] [[-SAPwd] ] [[-SqlCollation] ] [[-SqlSvcAccount] ] [[-SqlSvcPassword] ] [[-SqlSvcStartupType] ] [[-SqlSysAdminAccounts] ] [[-SqlTempDbDir] ] [[-SqlTempDbLogDir] ] [[-SqlTempDbFileCount] ] [[-SqlTempDbFileSize] ] [[-SqlTempDbFileGrowth] ] [[-SqlTempDbLogFileSize] ] [[-SqlTempDbLogFileGrowth] ] [[-SqlUserDbDir] ] [[-SqlUserDbLogDir] ] [[-FileStreamLevel] ] [[-FileStreamShareName] ] [[-RsInstallMode] ] [[-RSSvcAccount] ] [[-RSSvcPassword] ] [[-RSSvcStartupType] ] [[-Timeout] ] -AcceptLicensingTerms [-Enu] [-PBScaleOut] [-EnableRanU] [-NpEnabled] [-TcpEnabled] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '[-MediaPath] [[-InstanceName] ] [[-InstanceId] ] [[-PBEngSvcAccount] ] [[-PBEngSvcPassword] ] [[-PBEngSvcStartupType] ] [[-PBStartPortRange] ] [[-PBEndPortRange] ] [[-ProductKey] ] [[-AgtSvcAccount] ] [[-AgtSvcPassword] ] [[-AgtSvcStartupType] ] [[-BrowserSvcStartupType] ] [[-InstallSqlDataDir] ] [[-SqlBackupDir] ] [[-SecurityMode] ] [[-SAPwd] ] [[-SqlCollation] ] [[-SqlSvcAccount] ] [[-SqlSvcPassword] ] [[-SqlSvcStartupType] ] [[-SqlSysAdminAccounts] ] [[-SqlTempDbDir] ] [[-SqlTempDbLogDir] ] [[-SqlTempDbFileCount] ] [[-SqlTempDbFileSize] ] [[-SqlTempDbFileGrowth] ] [[-SqlTempDbLogFileSize] ] [[-SqlTempDbLogFileGrowth] ] [[-SqlUserDbDir] ] [[-SqlUserDbLogDir] ] [[-FileStreamLevel] ] [[-FileStreamShareName] ] [[-RsInstallMode] ] [[-RSSvcAccount] ] [[-RSSvcPassword] ] [[-RSSvcStartupType] ] [[-Timeout] ] -AcceptLicensingTerms [-Enu] [-PBScaleOut] [-EnableRanU] [-NpEnabled] [-TcpEnabled] [-ProductCoveredBySA] [-Force] [-WhatIf] [-Confirm] []' } ) { $result = (Get-Command -Name 'Complete-SqlDscImage').ParameterSets | diff --git a/tests/Unit/Public/Install-SqlDscServer.Tests.ps1 b/tests/Unit/Public/Install-SqlDscServer.Tests.ps1 index aea0bf1fd..bcfcb4924 100644 --- a/tests/Unit/Public/Install-SqlDscServer.Tests.ps1 +++ b/tests/Unit/Public/Install-SqlDscServer.Tests.ps1 @@ -48,12 +48,12 @@ Describe 'Install-SqlDscServer' -Tag 'Public' { @{ MockParameterSetName = 'Install' # cSpell: disable-next - MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -InstanceName -Features -SqlSysAdminAccounts [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -InstanceName -Features -SqlSysAdminAccounts [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'InstallRole' # cSpell: disable-next - MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -Role [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-InstanceName ] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-Features ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-FarmAccount ] [-FarmPassword ] [-Passphrase ] [-FarmAdminiPort ] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-AddCurrentUserAsSqlAdmin] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlSysAdminAccounts ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-Install -AcceptLicensingTerms -MediaPath -Role [-SuppressPrivacyStatementNotice] [-IAcknowledgeEntCalLimits] [-InstanceName ] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-Features ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBDMSSvcAccount ] [-PBDMSSvcPassword ] [-PBDMSSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-AgtSvcStartupType ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-FarmAccount ] [-FarmPassword ] [-Passphrase ] [-FarmAdminiPort ] [-BrowserSvcStartupType ] [-EnableRanU] [-InstallSqlDataDir ] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-AddCurrentUserAsSqlAdmin] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlSysAdminAccounts ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlSvcInstantFileInit] [-SqlUserDbLogDir ] [-SqlMaxDop ] [-UseSqlRecommendedMemoryLimits] [-SqlMinMemory ] [-SqlMaxMemory ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-NpEnabled] [-TcpEnabled] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-MPYCacheDirectory ] [-MRCacheDirectory ] [-SqlInstJava] [-SqlJavaDir ] [-AzureSubscriptionId ] [-AzureResourceGroup ] [-AzureRegion ] [-AzureTenantId ] [-AzureServicePrincipal ] [-AzureServicePrincipalSecret ] [-AzureArcProxy ] [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'InstallAzureArcAgent' @@ -73,22 +73,22 @@ Describe 'Install-SqlDscServer' -Tag 'Public' { @{ MockParameterSetName = 'Upgrade' # cSpell: disable-next - MockExpectedParameters = '-Upgrade -AcceptLicensingTerms -MediaPath -InstanceName [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstanceDir ] [-InstanceId ] [-ProductKey ] [-BrowserSvcStartupType ] [-FTUpgradeOption ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-AllowUpgradeForSSRSSharePointMode] [-FailoverClusterRollOwnership ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-Upgrade -AcceptLicensingTerms -MediaPath -InstanceName [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstanceDir ] [-InstanceId ] [-ProductKey ] [-BrowserSvcStartupType ] [-FTUpgradeOption ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-AllowUpgradeForSSRSSharePointMode] [-FailoverClusterRollOwnership ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'EditionUpgrade' # cSpell: disable-next - MockExpectedParameters = '-EditionUpgrade -AcceptLicensingTerms -MediaPath -InstanceName -ProductKey [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-EditionUpgrade -AcceptLicensingTerms -MediaPath -InstanceName -ProductKey [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'InstallFailoverCluster' # cSpell: disable-next - MockExpectedParameters = '-InstallFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features -InstallSqlDataDir -SqlSysAdminAccounts -FailoverClusterNetworkName -FailoverClusterIPAddresses [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-FailoverClusterGroup ] [-FailoverClusterDisks ] [-SkipRules ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-InstallFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features -InstallSqlDataDir -SqlSysAdminAccounts -FailoverClusterNetworkName -FailoverClusterIPAddresses [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASBackupDir ] [-ASCollation ] [-ASConfigDir ] [-ASDataDir ] [-ASLogDir ] [-ASTempDir ] [-ASServerMode ] [-ASSvcAccount ] [-ASSvcPassword ] [-ASSvcStartupType ] [-ASSysAdminAccounts ] [-ASProviderMSOLAP] [-SqlBackupDir ] [-SecurityMode ] [-SAPwd ] [-SqlCollation ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-SqlSvcStartupType ] [-SqlTempDbDir ] [-SqlTempDbLogDir ] [-SqlTempDbFileCount ] [-SqlTempDbFileSize ] [-SqlTempDbFileGrowth ] [-SqlTempDbLogFileSize ] [-SqlTempDbLogFileGrowth ] [-SqlUserDbDir ] [-SqlUserDbLogDir ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-FailoverClusterGroup ] [-FailoverClusterDisks ] [-SkipRules ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } @{ MockParameterSetName = 'PrepareFailoverCluster' # cSpell: disable-next - MockExpectedParameters = '-PrepareFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASSvcAccount ] [-ASSvcPassword ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' + MockExpectedParameters = '-PrepareFailoverCluster -AcceptLicensingTerms -MediaPath -InstanceName -Features [-IAcknowledgeEntCalLimits] [-Enu] [-UpdateEnabled] [-UpdateSource ] [-InstallSharedDir ] [-InstallSharedWowDir ] [-InstanceDir ] [-InstanceId ] [-PBEngSvcAccount ] [-PBEngSvcPassword ] [-PBEngSvcStartupType ] [-PBStartPortRange ] [-PBEndPortRange ] [-PBScaleOut] [-ProductKey ] [-AgtSvcAccount ] [-AgtSvcPassword ] [-ASSvcAccount ] [-ASSvcPassword ] [-SqlSvcAccount ] [-SqlSvcPassword ] [-FileStreamLevel ] [-FileStreamShareName ] [-ISSvcAccount ] [-ISSvcPassword ] [-ISSvcStartupType ] [-RsInstallMode ] [-RSSvcAccount ] [-RSSvcPassword ] [-RSSvcStartupType ] [-ProductCoveredBySA] [-Timeout ] [-Force] [-WhatIf] [-Confirm] []' } ) { $result = (Get-Command -Name 'Install-SqlDscServer').ParameterSets | @@ -133,7 +133,7 @@ Describe 'Install-SqlDscServer' -Tag 'Public' { MediaPath = '\SqlMedia' InstanceName = 'INSTANCE' # Intentionally using both upper- and lower-case. - Features = 'SqlEngine', 'Arc' + Features = 'SqlEngine', 'AZUREEXTENSION' SqlSysAdminAccounts = 'DOMAIN\User', 'COMPANY\SQL Administrators' } } @@ -146,9 +146,8 @@ Describe 'Install-SqlDscServer' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/ACTION=Install' $ArgumentList | Should -MatchExactly '\/IACCEPTSQLSERVERLICENSETERMS' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/SQLSYSADMINACCOUNTS="DOMAIN\\User" "COMPANY\\SQL Administrators"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,AZUREEXTENSION' $ArgumentList | Should -MatchExactly '\/INSTANCENAME="INSTANCE"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/ONBOARDSQLTOARC' # cspell: disable-line # Return $true if none of the above throw. $true @@ -164,9 +163,8 @@ Describe 'Install-SqlDscServer' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/ACTION=Install' $ArgumentList | Should -MatchExactly '\/IACCEPTSQLSERVERLICENSETERMS' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/SQLSYSADMINACCOUNTS="DOMAIN\\User" "COMPANY\\SQL Administrators"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=SQLENGINE,AZUREEXTENSION' $ArgumentList | Should -MatchExactly '\/INSTANCENAME="INSTANCE"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/ONBOARDSQLTOARC' # cspell: disable-line # Return $true if none of the above throw. $true @@ -2214,7 +2212,7 @@ Describe 'Install-SqlDscServer' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/AZURETENANTID="7e52fb9e-6aad-426c-98c4-7d2f11f7e94b"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPAL="MyServicePrincipal"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPALSECRET="jT7ELPbD2GGuvLmjABDL"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=AZUREEXTENSION' # Return $true if none of the above throw. $true @@ -2235,7 +2233,7 @@ Describe 'Install-SqlDscServer' -Tag 'Public' { $ArgumentList | Should -MatchExactly '\/AZURETENANTID="7e52fb9e-6aad-426c-98c4-7d2f11f7e94b"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPAL="MyServicePrincipal"' # cspell: disable-line $ArgumentList | Should -MatchExactly '\/AZURESERVICEPRINCIPALSECRET="jT7ELPbD2GGuvLmjABDL"' # cspell: disable-line - $ArgumentList | Should -MatchExactly '\/FEATURES=ARC' + $ArgumentList | Should -MatchExactly '\/FEATURES=AZUREEXTENSION' # Return $true if none of the above throw. $true