diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 75fac3b2b..e0c34b245 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -120,7 +120,8 @@ $toolsList = @( ) if ((Test-IsWin16) -or (Test-IsWin19)) { $toolsList += @( - (Get-GoogleCloudSDKVersion) + (Get-GoogleCloudSDKVersion), + (Get-ServiceFabricSDKVersion) ) } $markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object) diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index 3534691e1..515acb322 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -249,6 +249,11 @@ function Get-GoogleCloudSDKVersion { (gcloud --version) -match "Google Cloud SDK" } +function Get-ServiceFabricSDKVersion { + $serviceFabricSDKVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric\' -Name FabricVersion + return "Service Fabric SDK $serviceFabricSDKVersion" +} + function Get-NewmanVersion { return "Newman $(newman --version)" } diff --git a/images/win/scripts/Tests/Tools.Tests.ps1 b/images/win/scripts/Tests/Tools.Tests.ps1 index 11cde9b9a..dfbd0c078 100644 --- a/images/win/scripts/Tests/Tools.Tests.ps1 +++ b/images/win/scripts/Tests/Tools.Tests.ps1 @@ -134,6 +134,10 @@ Describe "ServiceFabricSDK" -Skip:(Test-IsWin22) { It "PowerShell Module" { Get-Module -Name ServiceFabric -ListAvailable | Should -Not -BeNullOrEmpty } + + It "ServiceFabricSDK version" { + Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric\' -Name FabricVersion | Should -Not -BeNullOrEmpty + } } Describe "Stack" {