[ ] Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
[ ] Unit test is included
[ ] Documentation
[ ] Build system
Purpose
Set-DbaNetworkCertificate errors on PowerShell Core when using RSA certificates due to a difference in certificate object properties between Desktop and Core editions.
Approach
Add an Edition check at the appropriate place to get the proper value to calculate the certificate path.
Commands to test
Using an RSA certificate, run the same command on Windows PowerShell and PowerShell Core (7) and observe the results. The PowerShell Core will fail.
Type of Change
.\tests\manual.pester.ps1
)Purpose
Set-DbaNetworkCertificate errors on PowerShell Core when using RSA certificates due to a difference in certificate object properties between Desktop and Core editions.
Approach
Add an Edition check at the appropriate place to get the proper value to calculate the certificate path.
Commands to test
Using an RSA certificate, run the same command on Windows PowerShell and PowerShell Core (7) and observe the results. The PowerShell Core will fail.
Set-DbaNetworkCertificate -SqlInstance server\instance -Thumbprint 'thumbprintofcertificate'
Screenshots
Learning