diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index a87bde942..ca553f6f6 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -99,6 +99,7 @@ $markdown += New-MDList -Style Unordered -Lines @( (Get-AzureDevopsExtVersion), (Get-AWSCLIVersion), (Get-AWSSAMVersion), + (Get-AWSSessionManagerVersion), (Get-AlibabaCLIVersion), (Get-CloudFoundryVersion), (Get-HubVersion), diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index 5093a8039..a95272abf 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -146,7 +146,7 @@ function Get-AzCopyVersion { } function Get-AzureDevopsExtVersion { - $azureDevExtVersion = (az version | ConvertFrom-Json | Foreach{ $_."extensions" })."azure-devops" + $azureDevExtVersion = (az version | ConvertFrom-Json | ForEach-Object { $_."extensions" })."azure-devops" return "Azure DevOps CLI extension $azureDevExtVersion" } @@ -162,6 +162,11 @@ function Get-AWSSAMVersion { return "AWS SAM CLI $awssamVersion" } +function Get-AWSSessionManagerVersion { + $awsSessionManagerVersion = $(session-manager-plugin --version) + return "AWS Session Manager CLI $awsSessionManagerVersion" +} + function Get-AlibabaCLIVersion { $(aliyun --version | Select-String "Alibaba Cloud Command Line Interface") -match "(?\d+\.\d+\.\d+)" | Out-Null $alicliVersion = $Matches.Version