After a SQL Server 2025 instance restarts during SecureConnection integration tests, connections cannot be established to the database instance, causing test failures. This problem seems specific to service restarts during the test lifecycle when running against SQL Server 2025.
We have temporarily disable the integration tests for SecureConnection targeting SQL Server 2025 to avoid CI breakage until this is fixed. Longer term, once #2304 and support for SQL Server 2025 are resolved, tests should be refactored and re-enabled. See attached logs for detailed error output.
2026-01-27T13:08:52.9676388Z �[95mRunning tests from 'D:\a\1\s\tests\Integration\Resources\DSC_SqlSecureConnection.Integration.Tests.ps1'�[0m
2026-01-27T13:08:52.9676860Z WARNING: This will change your machine environment variable PSModulePath but can be restored by running the command
2026-01-27T13:08:52.9677242Z Restore-TestEnvironment.
2026-01-27T13:08:52.9677581Z WARNING: There is no operation running currently. Stop will return without any action.
2026-01-27T13:08:52.9677997Z VERBOSE: Performing the operation "Start-DscConfiguration: SendMetaConfigurationApply" on target
2026-01-27T13:08:52.9678374Z "MSFT_DSCLocalConfigurationManager".
2026-01-27T13:08:52.9678735Z VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' =
2026-01-27T13:08:52.9679148Z SendMetaConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
2026-01-27T13:08:52.9679532Z root/Microsoft/Windows/DesiredStateConfiguration'.
2026-01-27T13:08:52.9679894Z VERBOSE: An LCM method call arrived from computer runnervm72i71 with user sid
2026-01-27T13:08:52.9680241Z S-1-5-21-2352410390-259027302-1052514532-500.
2026-01-27T13:08:52.9680554Z VERBOSE: [runnervm72i71]: LCM: [ Start Set ]
2026-01-27T13:08:52.9680901Z VERBOSE: [runnervm72i71]: LCM: [ Start Resource ] [MSFT_DSCMetaConfiguration]
2026-01-27T13:08:52.9681269Z VERBOSE: [runnervm72i71]: LCM: [ Start Set ] [MSFT_DSCMetaConfiguration]
2026-01-27T13:08:52.9682051Z VERBOSE: [runnervm72i71]: LCM: [ End Set ] [MSFT_DSCMetaConfiguration] in 0.0140 seconds.
2026-01-27T13:08:52.9682441Z VERBOSE: [runnervm72i71]: LCM: [ End Resource ] [MSFT_DSCMetaConfiguration]
2026-01-27T13:08:52.9682784Z VERBOSE: [runnervm72i71]: LCM: [ End Set ]
2026-01-27T13:08:52.9683104Z VERBOSE: [runnervm72i71]: LCM: [ End Set ] in 0.0400 seconds.
2026-01-27T13:08:52.9683434Z VERBOSE: Operation 'Invoke CimMethod' complete.
2026-01-27T13:08:52.9683785Z VERBOSE: Set-DscLocalConfigurationManager finished in 0.06 seconds.
2026-01-27T13:08:52.9684189Z VERBOSE: Loading module from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\PSPKI.psd1'.
2026-01-27T13:08:52.9684636Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\SysadminsLV.Asn1Parser.dll'.
2026-01-27T13:08:52.9685358Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\SysadminsLV.Asn1Parser.dll'.
2026-01-27T13:08:52.9686860Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\SysadminsLV.PKI.dll'.
2026-01-27T13:08:52.9687323Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\SysadminsLV.PKI.dll'.
2026-01-27T13:08:52.9687790Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\Interop.CERTADMINLib.dll'.
2026-01-27T13:08:52.9688258Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\Interop.CERTADMINLib.dll'.
2026-01-27T13:08:52.9688723Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\Interop.CERTCLILib.dll'.
2026-01-27T13:08:52.9689184Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\Interop.CERTCLILib.dll'.
2026-01-27T13:08:52.9689649Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\Interop.CERTENROLLLib.dll'.
2026-01-27T13:08:52.9690094Z VERBOSE: Loading 'Assembly' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Library\Interop.CERTENROLLLib.dll'.
2026-01-27T13:08:52.9690550Z VERBOSE: Loading 'TypesToProcess' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Types\PSPKI.Types.ps1xml'.
2026-01-27T13:08:52.9691009Z VERBOSE: Loading 'FormatsToProcess' from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\Types\PSPKI.Format.ps1xml'.
2026-01-27T13:08:53.1136340Z VERBOSE: Loading module from path 'D:\a\1\s\output\RequiredModules\PSPKI\3.7.2\PSPKI.psm1'.
2026-01-27T13:08:54.8803872Z VERBOSE: Importing function 'Add-AdCertificate'.
2026-01-27T13:08:54.8809359Z VERBOSE: Importing function 'Add-AdCertificateRevocationList'.
2026-01-27T13:08:54.8816147Z VERBOSE: Importing function 'Add-AuthorityInformationAccess'.
2026-01-27T13:08:54.8822578Z VERBOSE: Importing function 'Add-CAKRACertificate'.
2026-01-27T13:08:54.8829095Z VERBOSE: Importing function 'Add-CATemplate'.
2026-01-27T13:08:54.8835374Z VERBOSE: Importing function 'Add-CertificateTemplateAcl'.
2026-01-27T13:08:54.8841704Z VERBOSE: Importing function 'Add-CertificationAuthorityAcl'.
2026-01-27T13:08:54.8848188Z VERBOSE: Importing function 'Add-CRLDistributionPoint'.
2026-01-27T13:08:54.8855113Z VERBOSE: Importing function 'Add-ExtensionList'.
2026-01-27T13:08:54.8861606Z VERBOSE: Importing function 'Add-OnlineResponderAcl'.
2026-01-27T13:08:54.8867891Z VERBOSE: Importing function 'Add-OnlineResponderArrayMember'.
2026-01-27T13:08:54.8875538Z VERBOSE: Importing function 'Add-OnlineResponderLocalCrlEntry'.
2026-01-27T13:08:54.8881947Z VERBOSE: Importing function 'Add-OnlineResponderRevocationConfiguration'.
2026-01-27T13:08:54.8888534Z VERBOSE: Importing function 'Approve-CertificateRequest'.
2026-01-27T13:08:54.8895422Z VERBOSE: Importing function 'Connect-CertificationAuthority'.
2026-01-27T13:08:54.8901913Z VERBOSE: Importing function 'Connect-OnlineResponder'.
2026-01-27T13:08:54.8908231Z VERBOSE: Importing function 'Convert-PemToPfx'.
2026-01-27T13:08:54.8915519Z VERBOSE: Importing function 'Convert-PfxToPem'.
2026-01-27T13:08:54.8922099Z VERBOSE: Importing function 'Deny-CertificateRequest'.
2026-01-27T13:08:54.8928759Z VERBOSE: Importing function 'Disable-CertificateRevocationListFlag'.
2026-01-27T13:08:54.8935554Z VERBOSE: Importing function 'Disable-InterfaceFlag'.
2026-01-27T13:08:54.8941790Z VERBOSE: Importing function 'Disable-KeyRecoveryAgentFlag'.
2026-01-27T13:08:54.8948067Z VERBOSE: Importing function 'Disable-PolicyModuleFlag'.
2026-01-27T13:08:54.8956049Z VERBOSE: Importing function 'Enable-CertificateRevocationListFlag'.
2026-01-27T13:08:54.8962653Z VERBOSE: Importing function 'Enable-InterfaceFlag'.
2026-01-27T13:08:54.8969586Z VERBOSE: Importing function 'Enable-KeyRecoveryAgentFlag'.
2026-01-27T13:08:54.8975858Z VERBOSE: Importing function 'Enable-PolicyModuleFlag'.
2026-01-27T13:08:54.8982549Z VERBOSE: Importing function 'Get-AdcsDatabaseRow'.
2026-01-27T13:08:54.8988851Z VERBOSE: Importing function 'Get-ADKRACertificate'.
2026-01-27T13:08:54.8996143Z VERBOSE: Importing function 'Get-AdPkiContainer'.
2026-01-27T13:08:54.9002926Z VERBOSE: Importing function 'Get-AuthorityInformationAccess'.
2026-01-27T13:08:54.9009475Z VERBOSE: Importing function 'Get-CACryptographyConfig'.
2026-01-27T13:08:54.9016998Z VERBOSE: Importing function 'Get-CAExchangeCertificate'.
2026-01-27T13:08:54.9023317Z VERBOSE: Importing function 'Get-CAKRACertificate'.
2026-01-27T13:08:54.9030838Z VERBOSE: Importing function 'Get-CATemplate'.
2026-01-27T13:08:54.9037183Z VERBOSE: Importing function 'Get-CertificateContextProperty'.
2026-01-27T13:08:54.9043668Z VERBOSE: Importing function 'Get-CertificateRequest'.
2026-01-27T13:08:54.9050390Z VERBOSE: Importing function 'Get-CertificateRevocationList'.
2026-01-27T13:08:54.9056502Z VERBOSE: Importing function 'Get-CertificateRevocationListFlag'.
2026-01-27T13:08:54.9063079Z VERBOSE: Importing function 'Get-CertificateTemplate'.
2026-01-27T13:08:54.9069575Z VERBOSE: Importing function 'Get-CertificateTemplateAcl'.
2026-01-27T13:08:54.9076112Z VERBOSE: Importing function 'Get-CertificateTrustList'.
2026-01-27T13:08:54.9082845Z VERBOSE: Importing function 'Get-CertificateValidityPeriod'.
2026-01-27T13:08:54.9088980Z VERBOSE: Importing function 'Get-CertificationAuthority'.
2026-01-27T13:08:54.9095579Z VERBOSE: Importing function 'Get-CertificationAuthorityAcl'.
2026-01-27T13:08:54.9101683Z VERBOSE: Importing function 'Get-CertificationAuthorityDbSchema'.
2026-01-27T13:08:54.9108543Z VERBOSE: Importing function 'Get-CRLDistributionPoint'.
2026-01-27T13:08:54.9114964Z VERBOSE: Importing function 'Get-CRLValidityPeriod'.
2026-01-27T13:08:54.9121529Z VERBOSE: Importing function 'Get-CryptographicServiceProvider'.
2026-01-27T13:08:54.9127961Z VERBOSE: Importing function 'Get-EnrollmentPolicyServerClient'.
2026-01-27T13:08:54.9135639Z VERBOSE: Importing function 'Get-EnterprisePKIHealthStatus'.
2026-01-27T13:08:54.9142225Z VERBOSE: Importing function 'Get-ErrorMessage'.
2026-01-27T13:08:54.9148879Z VERBOSE: Importing function 'Get-ExtensionList'.
2026-01-27T13:08:54.9155671Z VERBOSE: Importing function 'Get-FailedRequest'.
2026-01-27T13:08:54.9162079Z VERBOSE: Importing function 'Get-InterfaceFlag'.
2026-01-27T13:08:54.9168643Z VERBOSE: Importing function 'Get-IssuedRequest'.
2026-01-27T13:08:54.9176366Z VERBOSE: Importing function 'Get-KeyRecoveryAgentFlag'.
2026-01-27T13:08:54.9182665Z VERBOSE: Importing function 'Get-ObjectIdentifier'.
2026-01-27T13:08:54.9189083Z VERBOSE: Importing function 'Get-ObjectIdentifierEx'.
2026-01-27T13:08:54.9195383Z VERBOSE: Importing function 'Get-OnlineResponderAcl'.
2026-01-27T13:08:54.9201670Z VERBOSE: Importing function 'Get-OnlineResponderRevocationConfiguration'.
2026-01-27T13:08:54.9208538Z VERBOSE: Importing function 'Get-PendingRequest'.
2026-01-27T13:08:54.9214928Z VERBOSE: Importing function 'Get-PolicyModuleFlag'.
2026-01-27T13:08:54.9221415Z VERBOSE: Importing function 'Get-RevokedRequest'.
2026-01-27T13:08:54.9227862Z VERBOSE: Importing function 'Import-LostCertificate'.
2026-01-27T13:08:54.9234223Z VERBOSE: Importing function 'New-SelfSignedCertificateEx'.
2026-01-27T13:08:54.9240312Z VERBOSE: Importing function 'Ping-ICertInterface'.
2026-01-27T13:08:54.9246630Z VERBOSE: Importing function 'Publish-CRL'.
2026-01-27T13:08:54.9255576Z VERBOSE: Importing function 'Receive-Certificate'.
2026-01-27T13:08:54.9262348Z VERBOSE: Importing function 'Register-ObjectIdentifier'.
2026-01-27T13:08:54.9269095Z VERBOSE: Importing function 'Remove-AdCertificate'.
2026-01-27T13:08:54.9275597Z VERBOSE: Importing function 'Remove-AdCertificateRevocationList'.
2026-01-27T13:08:54.9281868Z VERBOSE: Importing function 'Remove-AdcsDatabaseRow'.
2026-01-27T13:08:54.9288834Z VERBOSE: Importing function 'Remove-AuthorityInformationAccess'.
2026-01-27T13:08:54.9294958Z VERBOSE: Importing function 'Remove-CAKRACertificate'.
2026-01-27T13:08:54.9301014Z VERBOSE: Importing function 'Remove-CATemplate'.
2026-01-27T13:08:54.9307201Z VERBOSE: Importing function 'Remove-CertificateTemplate'.
2026-01-27T13:08:54.9314526Z VERBOSE: Importing function 'Remove-CertificateTemplateAcl'.
2026-01-27T13:08:54.9320927Z VERBOSE: Importing function 'Remove-CertificationAuthorityAcl'.
2026-01-27T13:08:54.9327456Z VERBOSE: Importing function 'Remove-CRLDistributionPoint'.
2026-01-27T13:08:54.9334401Z VERBOSE: Importing function 'Remove-ExtensionList'.
2026-01-27T13:08:54.9340919Z VERBOSE: Importing function 'Remove-OnlineResponderAcl'.
2026-01-27T13:08:54.9347470Z VERBOSE: Importing function 'Remove-OnlineResponderArrayMember'.
2026-01-27T13:08:54.9353934Z VERBOSE: Importing function 'Remove-OnlineResponderLocalCrlEntry'.
2026-01-27T13:08:54.9360289Z VERBOSE: Importing function 'Remove-OnlineResponderRevocationConfiguration'.
2026-01-27T13:08:54.9366557Z VERBOSE: Importing function 'Restart-CertificationAuthority'.
2026-01-27T13:08:54.9373028Z VERBOSE: Importing function 'Restart-OnlineResponder'.
2026-01-27T13:08:54.9379374Z VERBOSE: Importing function 'Restore-CertificateRevocationListFlagDefault'.
2026-01-27T13:08:54.9385952Z VERBOSE: Importing function 'Restore-KeyRecoveryAgentFlagDefault'.
2026-01-27T13:08:54.9392795Z VERBOSE: Importing function 'Restore-PolicyModuleFlagDefault'.
2026-01-27T13:08:54.9399128Z VERBOSE: Importing function 'Revoke-Certificate'.
2026-01-27T13:08:54.9405580Z VERBOSE: Importing function 'Set-AuthorityInformationAccess'.
2026-01-27T13:08:54.9412542Z VERBOSE: Importing function 'Set-CACryptographyConfig'.
2026-01-27T13:08:54.9419512Z VERBOSE: Importing function 'Set-CAKRACertificate'.
2026-01-27T13:08:54.9425598Z VERBOSE: Importing function 'Set-CATemplate'.
2026-01-27T13:08:54.9433361Z VERBOSE: Importing function 'Set-CertificateExtension'.
2026-01-27T13:08:54.9439524Z VERBOSE: Importing function 'Set-CertificateTemplateAcl'.
2026-01-27T13:08:54.9445658Z VERBOSE: Importing function 'Set-CertificateValidityPeriod'.
2026-01-27T13:08:54.9452322Z VERBOSE: Importing function 'Set-CertificationAuthorityAcl'.
2026-01-27T13:08:54.9458394Z VERBOSE: Importing function 'Set-CRLDistributionPoint'.
2026-01-27T13:08:54.9464718Z VERBOSE: Importing function 'Set-CRLValidityPeriod'.
2026-01-27T13:08:54.9471130Z VERBOSE: Importing function 'Set-ExtensionList'.
2026-01-27T13:08:54.9477795Z VERBOSE: Importing function 'Set-OnlineResponderAcl'.
2026-01-27T13:08:54.9484031Z VERBOSE: Importing function 'Set-OnlineResponderProperty'.
2026-01-27T13:08:54.9490112Z VERBOSE: Importing function 'Set-OnlineResponderRevocationConfiguration'.
2026-01-27T13:08:54.9496077Z VERBOSE: Importing function 'Show-Certificate'.
2026-01-27T13:08:54.9503239Z VERBOSE: Importing function 'Show-CertificateRevocationList'.
2026-01-27T13:08:54.9510137Z VERBOSE: Importing function 'Show-CertificateTrustList'.
2026-01-27T13:08:54.9516640Z VERBOSE: Importing function 'Start-CertificationAuthority'.
2026-01-27T13:08:54.9522966Z VERBOSE: Importing function 'Start-OnlineResponder'.
2026-01-27T13:08:54.9529043Z VERBOSE: Importing function 'Start-PsFCIV'.
2026-01-27T13:08:54.9535438Z VERBOSE: Importing function 'Stop-CertificationAuthority'.
2026-01-27T13:08:54.9541232Z VERBOSE: Importing function 'Stop-OnlineResponder'.
2026-01-27T13:08:54.9548226Z VERBOSE: Importing function 'Submit-CertificateRequest'.
2026-01-27T13:08:54.9554401Z VERBOSE: Importing function 'Test-WebServerSSL'.
2026-01-27T13:08:54.9560639Z VERBOSE: Importing function 'Unregister-ObjectIdentifier'.
2026-01-27T13:08:54.9567528Z VERBOSE: Importing alias 'Add-AIA'.
2026-01-27T13:08:54.9573698Z VERBOSE: Importing alias 'Add-CAAccessControlEntry'.
2026-01-27T13:08:54.9580121Z VERBOSE: Importing alias 'Add-CAACL'.
2026-01-27T13:08:54.9586931Z VERBOSE: Importing alias 'Add-CDP'.
2026-01-27T13:08:54.9593091Z VERBOSE: Importing alias 'Add-OCSPACL'.
2026-01-27T13:08:54.9599681Z VERBOSE: Importing alias 'Connect-CA'.
2026-01-27T13:08:54.9606430Z VERBOSE: Importing alias 'Disable-CRLFlag'.
2026-01-27T13:08:54.9612620Z VERBOSE: Importing alias 'Disable-KRAFlag'.
2026-01-27T13:08:54.9619273Z VERBOSE: Importing alias 'Enable-CRLFlag'.
2026-01-27T13:08:54.9626325Z VERBOSE: Importing alias 'Enable-KRAFlag'.
2026-01-27T13:08:54.9632357Z VERBOSE: Importing alias 'Get-AIA'.
2026-01-27T13:08:54.9638719Z VERBOSE: Importing alias 'Get-CA'.
2026-01-27T13:08:54.9644863Z VERBOSE: Importing alias 'Get-CAACL'.
2026-01-27T13:08:54.9652006Z VERBOSE: Importing alias 'Get-CASecurityDescriptor'.
2026-01-27T13:08:54.9658584Z VERBOSE: Importing alias 'Get-CDP'.
2026-01-27T13:08:54.9665048Z VERBOSE: Importing alias 'Get-CRL'.
2026-01-27T13:08:54.9671708Z VERBOSE: Importing alias 'Get-CRLFlag'.
2026-01-27T13:08:54.9677888Z VERBOSE: Importing alias 'Get-Csp'.
2026-01-27T13:08:54.9684368Z VERBOSE: Importing alias 'Get-CTL'.
2026-01-27T13:08:54.9690990Z VERBOSE: Importing alias 'Get-KRAFlag'.
2026-01-27T13:08:54.9697287Z VERBOSE: Importing alias 'Get-OCSPACL'.
2026-01-27T13:08:54.9703855Z VERBOSE: Importing alias 'oid'.
2026-01-27T13:08:54.9710281Z VERBOSE: Importing alias 'oid2'.
2026-01-27T13:08:54.9716761Z VERBOSE: Importing alias 'Remove-AdCrl'.
2026-01-27T13:08:54.9723405Z VERBOSE: Importing alias 'Remove-AIA'.
2026-01-27T13:08:54.9730188Z VERBOSE: Importing alias 'Remove-CAAccessControlEntry'.
2026-01-27T13:08:54.9736099Z VERBOSE: Importing alias 'Remove-CAACL'.
2026-01-27T13:08:54.9742503Z VERBOSE: Importing alias 'Remove-CDP'.
2026-01-27T13:08:54.9749827Z VERBOSE: Importing alias 'Remove-OCSPACL'.
2026-01-27T13:08:54.9756022Z VERBOSE: Importing alias 'Remove-Request'.
2026-01-27T13:08:54.9762479Z VERBOSE: Importing alias 'Restore-CRLFlagDefault'.
2026-01-27T13:08:54.9768949Z VERBOSE: Importing alias 'Restore-KRAFlagDefault'.
2026-01-27T13:08:54.9775412Z VERBOSE: Importing alias 'Set-AIA'.
2026-01-27T13:08:54.9781486Z VERBOSE: Importing alias 'Set-CAACL'.
2026-01-27T13:08:54.9788082Z VERBOSE: Importing alias 'Set-CASecurityDescriptor'.
2026-01-27T13:08:54.9794336Z VERBOSE: Importing alias 'Set-CDP'.
2026-01-27T13:08:54.9800763Z VERBOSE: Importing alias 'Set-OCSPACL'.
2026-01-27T13:08:54.9806251Z VERBOSE: Importing alias 'Show-CRL'.
2026-01-27T13:08:54.9812514Z VERBOSE: Importing alias 'Show-CTL'.
2026-01-27T13:08:55.3307153Z VERBOSE: Created self-signed certificate 'CN=runnervm72i71' with thumbprint 'AFCED5CF85265EA00529CF8CE90191064A0866B5'.
2026-01-27T13:08:55.3494371Z VERBOSE: Machine environment variable SqlPrivateCertificatePath set to
2026-01-27T13:08:55.3495099Z 'C:\Users\VSSADM~1\AppData\Local\Temp\SqlPrivateKey.cer'
2026-01-27T13:08:55.3495691Z VERBOSE: Session environment variable $env:SqlPrivateCertificatePath set to
2026-01-27T13:08:55.3496206Z 'C:\Users\VSSADM~1\AppData\Local\Temp\SqlPrivateKey.cer'
2026-01-27T13:08:55.3652091Z VERBOSE: Machine environment variable $env:SqlCertificateThumbprint set to 'AFCED5CF85265EA00529CF8CE90191064A0866B5'
2026-01-27T13:08:55.3668260Z VERBOSE: Session environment variable $env:SqlCertificateThumbprint set to 'AFCED5CF85265EA00529CF8CE90191064A0866B5'
2026-01-27T13:08:55.4473777Z VERBOSE: Imported certificate into Cert:\\LocalMachine\\Root with thumbprint
2026-01-27T13:08:55.4474524Z 'AFCED5CF85265EA00529CF8CE90191064A0866B5'.
2026-01-27T13:08:56.0808506Z �[92mDescribing DSC_SqlSecureConnection_Integration�[0m
2026-01-27T13:08:56.0820914Z �[96m Context When using configuration DSC_SqlSecureConnection_AddSecureConnection_Config�[0m
2026-01-27T13:08:56.4289007Z VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' =
2026-01-27T13:08:56.4289444Z SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
2026-01-27T13:08:56.4289863Z root/Microsoft/Windows/DesiredStateConfiguration'.
2026-01-27T13:08:56.4379640Z VERBOSE: An LCM method call arrived from computer runnervm72i71 with user sid
2026-01-27T13:08:56.4381639Z S-1-5-21-2352410390-259027302-1052514532-500.
2026-01-27T13:08:56.4406416Z VERBOSE: [runnervm72i71]: LCM: [ Start Set ]
2026-01-27T13:08:56.6574731Z VERBOSE: [runnervm72i71]: LCM: [ Start Resource ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:08:56.6581969Z VERBOSE: [runnervm72i71]: LCM: [ Start Test ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:08:56.6661853Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Determine if the Secure
2026-01-27T13:08:56.6665734Z Connection is in the desired state.
2026-01-27T13:08:56.6713269Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:08:56.6714993Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:08:56.6859524Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of '',
2026-01-27T13:08:56.6861212Z with Force Encryption set to 'False'.
2026-01-27T13:08:56.7114629Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate private key is
2026-01-27T13:08:56.7115956Z located at
2026-01-27T13:08:56.7116462Z 'C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\34ead1db4d1497d29d31733cb4e6fdac_47db5fdc-d5c2-4639-b153-9b08e99fe775'
2026-01-27T13:08:56.7116975Z .
2026-01-27T13:08:56.7267506Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Thumbprint was '' but
2026-01-27T13:08:56.7269498Z expected 'afced5cf85265ea00529cf8ce90191064a0866b5'.
2026-01-27T13:08:56.7291578Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] ForceEncryption was
2026-01-27T13:08:56.7293371Z 'False' but expected 'True'.
2026-01-27T13:08:56.7318065Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate permissions
2026-01-27T13:08:56.7319795Z are Configured.
2026-01-27T13:08:56.7356928Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] [[SqlSecureConnection]Integration_Test] in 0.0740 seconds.
2026-01-27T13:08:56.7357678Z VERBOSE: [runnervm72i71]: LCM: [ Start Set ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:08:56.7390142Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:08:56.7391992Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:08:56.7453577Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of '',
2026-01-27T13:08:56.7454367Z with Force Encryption set to 'False'.
2026-01-27T13:08:56.7529932Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate private key is
2026-01-27T13:08:56.7531395Z located at
2026-01-27T13:08:56.7532036Z 'C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\34ead1db4d1497d29d31733cb4e6fdac_47db5fdc-d5c2-4639-b153-9b08e99fe775'
2026-01-27T13:08:56.7532691Z .
2026-01-27T13:08:56.7551266Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Thumbprint was '' but
2026-01-27T13:08:56.7557560Z expected 'afced5cf85265ea00529cf8ce90191064a0866b5'.
2026-01-27T13:08:56.7561086Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] ForceEncryption was
2026-01-27T13:08:56.7565420Z 'False' but expected 'True'.
2026-01-27T13:08:56.7566100Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate permissions
2026-01-27T13:08:56.7566650Z are Configured.
2026-01-27T13:08:56.7615574Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Securing instance
2026-01-27T13:08:56.7617329Z 'DSCSQLTEST' with Thumbprint: 'afced5cf85265ea00529cf8ce90191064a0866b5' and Force Encryption: 'True'.
2026-01-27T13:08:56.7864623Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate private key is
2026-01-27T13:08:56.7866461Z located at
2026-01-27T13:08:56.7867070Z 'C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\34ead1db4d1497d29d31733cb4e6fdac_47db5fdc-d5c2-4639-b153-9b08e99fe775'
2026-01-27T13:08:56.7867680Z .
2026-01-27T13:08:56.7896806Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Adding read permissions to
2026-01-27T13:08:56.7898894Z certificate 'afced5cf85265ea00529cf8ce90191064a0866b5' for account 'runnervm72i71\svc-SqlPrimary'.
2026-01-27T13:08:56.7976545Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate private key is
2026-01-27T13:08:56.7978482Z located at
2026-01-27T13:08:56.7979107Z 'C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\34ead1db4d1497d29d31733cb4e6fdac_47db5fdc-d5c2-4639-b153-9b08e99fe775'
2026-01-27T13:08:56.7979675Z .
2026-01-27T13:08:56.8060872Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Restarting SQL Server
2026-01-27T13:08:56.8062689Z service for instance 'DSCSQLTEST'.
2026-01-27T13:08:56.9109236Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting information about
2026-01-27T13:08:56.9110075Z service 'SQL Server'. (SQLCOMMON0037)
2026-01-27T13:08:56.9138621Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] 'SQL Server' service is
2026-01-27T13:08:56.9139044Z restarting. (SQLCOMMON0038)
2026-01-27T13:08:58.0518042Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Waiting for instance
2026-01-27T13:08:58.0520672Z localhost\DSCSQLTEST to report status online, with a timeout value of 120 seconds. (SQLCOMMON0043)
2026-01-27T13:10:59.5571588Z ##[error] [-] Should compile and apply the MOF without throwing 123.14s (123.13s|14ms)
2026-01-27T13:10:59.5749101Z ##[error] CimException: System.InvalidOperationException: Failed to connect to the instance localhost\DSCSQLTEST within the timeout period of 120 seconds. (SQLCOMMON0044) ---> System.InvalidOperationException: Failed to connect to SQL instance 'localhost\DSCSQLTEST'. (SQLCOMMON0019) ---> System.Management.Automation.MethodInvocationException: Exception calling "Connect" with "0" argument(s): "Failed to connect to server localhost\DSCSQLTEST." ---> Microsoft.SqlServer.Management.Common.ConnectionFailureException: Failed to connect to server localhost\DSCSQLTEST. ---> Microsoft.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The target principal name is incorrect.) ---> System.ComponentModel.Win32Exception: The target principal name is incorrect
2026-01-27T13:10:59.5750738Z ##[error] --- End of inner exception stack trace ---
2026-01-27T13:10:59.5751291Z ##[error] at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
2026-01-27T13:10:59.5752009Z ##[error] at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
2026-01-27T13:10:59.5752701Z ##[error] at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
2026-01-27T13:10:59.5753397Z ##[error] at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
2026-01-27T13:10:59.5753934Z ##[error] at Microsoft.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
2026-01-27T13:10:59.5754718Z ##[error] at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
2026-01-27T13:10:59.5755145Z ##[error] at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
2026-01-27T13:10:59.5755663Z ##[error] at Microsoft.SqlServer.Management.Common.ConnectionManager.InternalConnectImpl()
2026-01-27T13:10:59.5756056Z ##[error] at Microsoft.SqlServer.Management.Common.ConnectionManager.InternalConnect()
2026-01-27T13:10:59.5756434Z ##[error] at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
2026-01-27T13:10:59.5756776Z ##[error] --- End of inner exception stack trace ---
2026-01-27T13:10:59.5757112Z ##[error] at Microsoft.SqlServer.Management.Common.ConnectionManager.Connect()
2026-01-27T13:10:59.5757455Z ##[error] at CallSite.Target(Closure , CallSite , Object )
2026-01-27T13:10:59.5757773Z ##[error] --- End of inner exception stack trace ---
2026-01-27T13:10:59.5758178Z ##[error] at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2026-01-27T13:10:59.5758577Z ##[error] at Connect-Sql(Closure , FunctionContext )
2026-01-27T13:10:59.5758887Z ##[error] --- End of inner exception stack trace ---
2026-01-27T13:10:59.5759192Z ##[error] --- End of inner exception stack trace ---
2026-01-27T13:10:59.5759604Z ##[error] at <ScriptBlock>, D:\a\1\s\tests\Integration\Resources\DSC_SqlSecureConnection.Integration.Tests.ps1:101
2026-01-27T13:10:59.5760054Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:10:59.5760463Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:10:59.5760879Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2206
2026-01-27T13:10:59.5761305Z ##[error] at Invoke-TestItem, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:1254
2026-01-27T13:10:59.5761721Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:890
2026-01-27T13:10:59.5762129Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:948
2026-01-27T13:10:59.5762546Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:10:59.5762958Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:10:59.5763391Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2209
2026-01-27T13:10:59.5763808Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:995
2026-01-27T13:10:59.5764218Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:948
2026-01-27T13:10:59.5764618Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:10:59.5765020Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:10:59.5765460Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2209
2026-01-27T13:10:59.5765882Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:995
2026-01-27T13:10:59.5766310Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:948
2026-01-27T13:10:59.5766717Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:10:59.5767125Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:10:59.5767544Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2209
2026-01-27T13:10:59.5767957Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:995
2026-01-27T13:10:59.5768509Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:1737
2026-01-27T13:10:59.5809299Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.ps1:3
2026-01-27T13:10:59.5811207Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:3150
2026-01-27T13:10:59.5812039Z ##[error] at Invoke-InNewScriptScope, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:3157
2026-01-27T13:10:59.5814064Z ##[error] at Run-Test, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:1740
2026-01-27T13:10:59.5814842Z ##[error] at Invoke-Test, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2554
2026-01-27T13:10:59.5815619Z ##[error] at Invoke-Pester<End>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:5050
2026-01-27T13:10:59.5827084Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Sampler\0.119.0\tasks\Invoke-Pester.pester.build.ps1:902
2026-01-27T13:10:59.5833159Z ##[error] at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:703
2026-01-27T13:10:59.5912392Z ##[error] at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:675
2026-01-27T13:10:59.5915125Z ##[error] at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:675
2026-01-27T13:10:59.5921896Z ##[error] at <ScriptBlock><End>, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:854
2026-01-27T13:10:59.5959239Z ##[error] at <ScriptBlock><Begin>, D:\a\1\s\build.ps1:532
2026-01-27T13:10:59.5975844Z ##[error] at <ScriptBlock>, D:\a\_temp\0440f66f-2a7b-490a-8e2a-b0f6f6a86d1c.ps1:38
2026-01-27T13:10:59.5979123Z ##[error] at <ScriptBlock>, <No file>:1
2026-01-27T13:10:59.6023063Z VERBOSE: An LCM method call arrived from computer runnervm72i71 with user sid
2026-01-27T13:10:59.6025174Z S-1-5-21-2352410390-259027302-1052514532-500.
2026-01-27T13:10:59.6036007Z WARNING: [runnervm72i71]: [] The GET operation will be carried against a pending
2026-01-27T13:10:59.6038736Z configuration since the latest configuration has not converged yet.
2026-01-27T13:10:59.9032078Z VERBOSE: [runnervm72i71]: LCM: [ Start Get ]
2026-01-27T13:10:59.9059028Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:10:59.9110309Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:10:59.9149490Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:10:59.9188244Z 'afced5cf85265ea00529cf8ce90191064a0866b5', with Force Encryption set to 'True'.
2026-01-27T13:10:59.9199895Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate private key is
2026-01-27T13:10:59.9200881Z located at
2026-01-27T13:10:59.9203832Z 'C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\34ead1db4d1497d29d31733cb4e6fdac_47db5fdc-d5c2-4639-b153-9b08e99fe775'
2026-01-27T13:10:59.9210454Z .
2026-01-27T13:10:59.9217048Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate permissions
2026-01-27T13:10:59.9221529Z are Not Configured.
2026-01-27T13:10:59.9224417Z VERBOSE: [runnervm72i71]: LCM: [ End Get ] [[SqlSecureConnection]Integration_Test] in 0.0500 seconds.
2026-01-27T13:10:59.9252587Z VERBOSE: [runnervm72i71]: LCM: [ End Get ] in 0.3100 seconds.
2026-01-27T13:10:59.9487288Z �[32m [+] Should be able to call Get-DscConfiguration without throwing�[0m�[90m 345ms (344ms|1ms)�[0m
2026-01-27T13:10:59.9709117Z �[32m [+] Should have set the resource and all the parameters should match�[0m�[90m 24ms (23ms|1ms)�[0m
2026-01-27T13:10:59.9753050Z VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className'
2026-01-27T13:10:59.9762614Z = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
2026-01-27T13:10:59.9836579Z VERBOSE: An LCM method call arrived from computer runnervm72i71 with user sid
2026-01-27T13:10:59.9864908Z S-1-5-21-2352410390-259027302-1052514532-500.
2026-01-27T13:10:59.9908428Z VERBOSE: [runnervm72i71]: LCM: [ Start Test ]
2026-01-27T13:10:59.9934265Z WARNING: [runnervm72i71]: [] The TEST operation will be carried against a pending
2026-01-27T13:10:59.9952881Z configuration since the latest configuration has not converged yet.
2026-01-27T13:11:00.2390647Z VERBOSE: [runnervm72i71]: LCM: [ Start Resource ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:00.2638860Z VERBOSE: [runnervm72i71]: LCM: [ Start Test ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:00.2659640Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Determine if the Secure
2026-01-27T13:11:00.2670977Z Connection is in the desired state.
2026-01-27T13:11:00.2675378Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:11:00.2692005Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:11:00.2700277Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:11:00.2756627Z 'afced5cf85265ea00529cf8ce90191064a0866b5', with Force Encryption set to 'True'.
2026-01-27T13:11:00.2784827Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate private key is
2026-01-27T13:11:00.2792489Z located at
2026-01-27T13:11:00.2800923Z 'C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\34ead1db4d1497d29d31733cb4e6fdac_47db5fdc-d5c2-4639-b153-9b08e99fe775'
2026-01-27T13:11:00.2814058Z .
2026-01-27T13:11:00.2815175Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Certificate permissions
2026-01-27T13:11:00.2822247Z are Not Configured.
2026-01-27T13:11:00.2830186Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] [[SqlSecureConnection]Integration_Test] True in 0.0330 seconds.
2026-01-27T13:11:00.2834471Z VERBOSE: [runnervm72i71]: LCM: [ End Resource ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:00.2835409Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] Completed processing test operation. The operation returned
2026-01-27T13:11:00.2836355Z True.
2026-01-27T13:11:00.2845019Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] in 0.2910 seconds.
2026-01-27T13:11:00.2952327Z VERBOSE: Operation 'Invoke CimMethod' complete.
2026-01-27T13:11:00.2964256Z VERBOSE: Time taken for configuration job to complete is 0.32 seconds
2026-01-27T13:11:00.3160038Z �[32m [+] Should return $true when Test-DscConfiguration is run�[0m�[90m 337ms (335ms|2ms)�[0m
2026-01-27T13:11:00.3300432Z �[96m Context When using configuration DSC_SqlSecureConnection_RemoveSecureConnection_Config�[0m
2026-01-27T13:11:00.8271226Z VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' =
2026-01-27T13:11:00.8282503Z SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
2026-01-27T13:11:00.8283739Z root/Microsoft/Windows/DesiredStateConfiguration'.
2026-01-27T13:11:00.8406401Z VERBOSE: An LCM method call arrived from computer runnervm72i71 with user sid
2026-01-27T13:11:00.8448158Z S-1-5-21-2352410390-259027302-1052514532-500.
2026-01-27T13:11:00.8520716Z VERBOSE: [runnervm72i71]: LCM: [ Start Set ]
2026-01-27T13:11:01.1252678Z VERBOSE: [runnervm72i71]: LCM: [ Start Resource ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:01.1271923Z VERBOSE: [runnervm72i71]: LCM: [ Start Test ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:01.1290356Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Determine if the Secure
2026-01-27T13:11:01.1303633Z Connection is in the desired state.
2026-01-27T13:11:01.1307223Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:11:01.1313356Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:11:01.1322237Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:11:01.1322666Z 'afced5cf85265ea00529cf8ce90191064a0866b5', with Force Encryption set to 'True'.
2026-01-27T13:11:01.1323133Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] ForceEncryption was 'True'
2026-01-27T13:11:01.1323502Z but expected 'False'.
2026-01-27T13:11:01.1323835Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Thumbprint was
2026-01-27T13:11:01.1324235Z 'afced5cf85265ea00529cf8ce90191064a0866b5' but expected 'Empty'.
2026-01-27T13:11:01.1324650Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:11:01.1325067Z 'afced5cf85265ea00529cf8ce90191064a0866b5', with Force Encryption set to 'True'.
2026-01-27T13:11:01.1667780Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] [[SqlSecureConnection]Integration_Test] in 0.0180 seconds.
2026-01-27T13:11:01.1918109Z VERBOSE: [runnervm72i71]: LCM: [ Start Set ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:01.1998882Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:11:01.2280045Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:11:01.2333805Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:11:01.2617218Z 'afced5cf85265ea00529cf8ce90191064a0866b5', with Force Encryption set to 'True'.
2026-01-27T13:11:01.2670027Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] ForceEncryption was 'True'
2026-01-27T13:11:01.2670836Z but expected 'False'.
2026-01-27T13:11:01.2671483Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Thumbprint was
2026-01-27T13:11:01.2677493Z 'afced5cf85265ea00529cf8ce90191064a0866b5' but expected 'Empty'.
2026-01-27T13:11:01.2678261Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:11:01.2682867Z 'afced5cf85265ea00529cf8ce90191064a0866b5', with Force Encryption set to 'True'.
2026-01-27T13:11:01.2706502Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Removing SQL Server secure
2026-01-27T13:11:01.2712229Z connection from instance 'DSCSQLTEST'.
2026-01-27T13:11:01.4279864Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Restarting SQL Server
2026-01-27T13:11:01.4282602Z service for instance 'DSCSQLTEST'.
2026-01-27T13:11:01.4322181Z VERBOSE: [runnervm72i71]: LCM: [ End Set ] [[SqlSecureConnection]Integration_Test] in 0.2780 seconds.
2026-01-27T13:11:01.4469795Z ##[error] [-] Should compile and apply the MOF without throwing 1.12s (1.12s|3ms)
2026-01-27T13:11:01.4558961Z ##[error] CimException: PowerShell DSC resource DSC_SqlSecureConnection failed to execute Set-TargetResource functionality with error message: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Failed to connect to SQL instance 'localhost\DSCSQLTEST'. (SQLCOMMON0019)
2026-01-27T13:11:01.4560279Z ##[error] at <ScriptBlock>, D:\a\1\s\tests\Integration\Resources\DSC_SqlSecureConnection.Integration.Tests.ps1:153
2026-01-27T13:11:01.4561124Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:11:01.4561951Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:11:01.4562984Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2206
2026-01-27T13:11:01.4563796Z ##[error] at Invoke-TestItem, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:1254
2026-01-27T13:11:01.4564742Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:890
2026-01-27T13:11:01.4565563Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:948
2026-01-27T13:11:01.4566748Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:11:01.4567630Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:11:01.4568428Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2209
2026-01-27T13:11:01.4572927Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:995
2026-01-27T13:11:01.4587167Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:948
2026-01-27T13:11:01.4592927Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:11:01.4607908Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:11:01.4671951Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2209
2026-01-27T13:11:01.4674156Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:995
2026-01-27T13:11:01.4675013Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:948
2026-01-27T13:11:01.4675815Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2073
2026-01-27T13:11:01.4676576Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2034
2026-01-27T13:11:01.4680022Z ##[error] at Invoke-ScriptBlock, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2209
2026-01-27T13:11:01.4688514Z ##[error] at Invoke-Block, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:995
2026-01-27T13:11:01.4689391Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:1737
2026-01-27T13:11:01.4690197Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.ps1:3
2026-01-27T13:11:01.4691094Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:3150
2026-01-27T13:11:01.4696262Z ##[error] at Invoke-InNewScriptScope, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:3157
2026-01-27T13:11:01.4707359Z ##[error] at Run-Test, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:1740
2026-01-27T13:11:01.4716153Z ##[error] at Invoke-Test, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:2554
2026-01-27T13:11:01.4765264Z ##[error] at Invoke-Pester<End>, D:\a\1\s\output\RequiredModules\Pester\6.0.0\Pester.psm1:5050
2026-01-27T13:11:01.4766872Z ##[error] at <ScriptBlock>, D:\a\1\s\output\RequiredModules\Sampler\0.119.0\tasks\Invoke-Pester.pester.build.ps1:902
2026-01-27T13:11:01.4767786Z ##[error] at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:703
2026-01-27T13:11:01.4768901Z ##[error] at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:675
2026-01-27T13:11:01.4804932Z ##[error] at *Task, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:675
2026-01-27T13:11:01.4818248Z ##[error] at <ScriptBlock><End>, D:\a\1\s\output\RequiredModules\InvokeBuild\5.14.22\Invoke-Build.ps1:854
2026-01-27T13:11:01.4820392Z ##[error] at <ScriptBlock><Begin>, D:\a\1\s\build.ps1:532
2026-01-27T13:11:01.4826358Z ##[error] at <ScriptBlock>, D:\a\_temp\0440f66f-2a7b-490a-8e2a-b0f6f6a86d1c.ps1:38
2026-01-27T13:11:01.4829816Z ##[error] at <ScriptBlock>, <No file>:1
2026-01-27T13:11:01.4930167Z VERBOSE: An LCM method call arrived from computer runnervm72i71 with user sid
2026-01-27T13:11:01.4942018Z S-1-5-21-2352410390-259027302-1052514532-500.
2026-01-27T13:11:01.4967052Z WARNING: [runnervm72i71]: [] The GET operation will be carried against a pending
2026-01-27T13:11:01.4987316Z configuration since the latest configuration has not converged yet.
2026-01-27T13:11:01.7172476Z VERBOSE: [runnervm72i71]: LCM: [ Start Get ]
2026-01-27T13:11:01.7182920Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:11:01.7219890Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:11:01.7225304Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of '',
2026-01-27T13:11:01.7228464Z with Force Encryption set to 'False'.
2026-01-27T13:11:01.7229535Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] SQL Secure Connection is
2026-01-27T13:11:01.7241754Z Disabled.
2026-01-27T13:11:01.7251492Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:11:01.7265471Z 'Empty', with Force Encryption set to 'False'.
2026-01-27T13:11:01.7270411Z VERBOSE: [runnervm72i71]: LCM: [ End Get ] [[SqlSecureConnection]Integration_Test] in 0.0180 seconds.
2026-01-27T13:11:01.7274393Z VERBOSE: [runnervm72i71]: LCM: [ End Get ] in 0.2220 seconds.
2026-01-27T13:11:01.7417627Z �[32m [+] Should be able to call Get-DscConfiguration without throwing�[0m�[90m 251ms (250ms|1ms)�[0m
2026-01-27T13:11:01.7551318Z �[32m [+] Should have set the resource and all the parameters should match�[0m�[90m 15ms (14ms|1ms)�[0m
2026-01-27T13:11:01.7576099Z VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = TestConfiguration,'className'
2026-01-27T13:11:01.7589589Z = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
2026-01-27T13:11:01.7705160Z VERBOSE: An LCM method call arrived from computer runnervm72i71 with user sid
2026-01-27T13:11:01.7722211Z S-1-5-21-2352410390-259027302-1052514532-500.
2026-01-27T13:11:01.7739835Z VERBOSE: [runnervm72i71]: LCM: [ Start Test ]
2026-01-27T13:11:01.7764446Z WARNING: [runnervm72i71]: [] The TEST operation will be carried against a pending
2026-01-27T13:11:01.7905554Z configuration since the latest configuration has not converged yet.
2026-01-27T13:11:02.0223402Z VERBOSE: [runnervm72i71]: LCM: [ Start Resource ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:02.0236212Z VERBOSE: [runnervm72i71]: LCM: [ Start Test ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:02.0261509Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Determine if the Secure
2026-01-27T13:11:02.0268476Z Connection is in the desired state.
2026-01-27T13:11:02.0281159Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Getting encryption
2026-01-27T13:11:02.0295533Z settings for instance 'DSCSQLTEST'.
2026-01-27T13:11:02.0328703Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of '',
2026-01-27T13:11:02.0336140Z with Force Encryption set to 'False'.
2026-01-27T13:11:02.0343552Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] SQL Secure Connection is
2026-01-27T13:11:02.0348108Z Disabled.
2026-01-27T13:11:02.0361268Z VERBOSE: [runnervm72i71]: [[SqlSecureConnection]Integration_Test] Found thumbprint of
2026-01-27T13:11:02.0362260Z 'Empty', with Force Encryption set to 'False'.
2026-01-27T13:11:02.0369816Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] [[SqlSecureConnection]Integration_Test] True in 0.0180 seconds.
2026-01-27T13:11:02.0378469Z VERBOSE: [runnervm72i71]: LCM: [ End Resource ] [[SqlSecureConnection]Integration_Test]
2026-01-27T13:11:02.0382853Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] Completed processing test operation. The operation returned
2026-01-27T13:11:02.0383886Z True.
2026-01-27T13:11:02.0384769Z VERBOSE: [runnervm72i71]: LCM: [ End Test ] in 0.2660 seconds.
2026-01-27T13:11:02.0495454Z VERBOSE: Operation 'Invoke CimMethod' complete.
2026-01-27T13:11:02.0524624Z VERBOSE: Time taken for configuration job to complete is 0.29 seconds
2026-01-27T13:11:02.0735530Z �[32m [+] Should return $true when Test-DscConfiguration is run�[0m�[90m 304ms (303ms|1ms)�[0m
Microsoft SQL Server 2025 (all relevant editions in CI)
Latest SqlServer and SqlServerDsc module versions used in the CI.
Windows Server 2022 (CI runner image)
PowerShell 7.x and Windows PowerShell 5.1 (CI matrix)
SqlServerDsc (main branch)
Problem description
After a SQL Server 2025 instance restarts during SecureConnection integration tests, connections cannot be established to the database instance, causing test failures. This problem seems specific to service restarts during the test lifecycle when running against SQL Server 2025.
We have temporarily disable the integration tests for SecureConnection targeting SQL Server 2025 to avoid CI breakage until this is fixed. Longer term, once #2304 and support for SQL Server 2025 are resolved, tests should be refactored and re-enabled. See attached logs for detailed error output.
Verbose logs
DSC configuration
Suggested solution
SQL Server edition and version
SQL Server PowerShell modules
Operating system
PowerShell version
SqlServerDsc version