diff --git a/images/win/Windows2016-Azure.json b/images/win/Windows2016-Azure.json index cbfbcbadd..bb871b3cd 100644 --- a/images/win/Windows2016-Azure.json +++ b/images/win/Windows2016-Azure.json @@ -211,6 +211,7 @@ "{{ template_dir }}/scripts/Installers/Install-AliyunCli.ps1", "{{ template_dir }}/scripts/Installers/Install-PostgreSQL.ps1", "{{ template_dir }}/scripts/Installers/Install-Packer.ps1", + "{{ template_dir }}/scripts/Installers/Install-Pulumi.ps1", "{{ template_dir }}/scripts/Installers/Install-JavaTools.ps1" ] }, diff --git a/images/win/Windows2019-Azure.json b/images/win/Windows2019-Azure.json index e3eb9571e..b66d64c50 100644 --- a/images/win/Windows2019-Azure.json +++ b/images/win/Windows2019-Azure.json @@ -200,6 +200,7 @@ "{{ template_dir }}/scripts/Installers/Install-NodeLts.ps1", "{{ template_dir }}/scripts/Installers/Install-7zip.ps1", "{{ template_dir }}/scripts/Installers/Install-Packer.ps1", + "{{ template_dir }}/scripts/Installers/Install-Pulumi.ps1", "{{ template_dir }}/scripts/Installers/Install-JavaTools.ps1" ] }, diff --git a/images/win/scripts/Installers/Install-Pulumi.ps1 b/images/win/scripts/Installers/Install-Pulumi.ps1 new file mode 100644 index 000000000..5ba1851f1 --- /dev/null +++ b/images/win/scripts/Installers/Install-Pulumi.ps1 @@ -0,0 +1,8 @@ +################################################################################ +## File: Install-Pulumi.ps1 +## Desc: Install Pulumi +################################################################################ + +Choco-Install -PackageName pulumi + +Invoke-PesterTests -TestFile "Tools" -TestName "Pulumi" \ No newline at end of file diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 7ac161c5f..eb8b35f0d 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -94,6 +94,7 @@ $markdown += New-MDList -Style Unordered -Lines @( (Get-NewmanVersion), (Get-OpenSSLVersion), (Get-PackerVersion), + (Get-PulumiVersion), (Get-SQLPSVersion), (Get-SQLServerPSVersion), (Get-SVNVersion), diff --git a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index fb550ee62..e7235408f 100644 --- a/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/win/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -107,6 +107,10 @@ function Get-PackerVersion { return "Packer $(packer --version)" } +function Get-PulumiVersion { + return "Pulumi $(pulumi version)" +} + function Get-SQLPSVersion { $module = Get-Module -Name SQLPS -ListAvailable $version = $module.Version diff --git a/images/win/scripts/Tests/Tools.Tests.ps1 b/images/win/scripts/Tests/Tools.Tests.ps1 index 2ef9a7911..f4938bbb2 100644 --- a/images/win/scripts/Tests/Tools.Tests.ps1 +++ b/images/win/scripts/Tests/Tools.Tests.ps1 @@ -187,6 +187,12 @@ Describe "PowerShell Core" { } } +Describe "Pulumi" { + It "pulumi" { + "pulumi version" | Should -ReturnZeroExitCode + } +} + Describe "Sbt" { It "sbt" { "sbt --version" | Should -ReturnZeroExitCode