From f53c988a888908710847d7466c04e19b592a0e74 Mon Sep 17 00:00:00 2001 From: Steve Mutungi <132555836+SteveMutungi254@users.noreply.github.com> Date: Tue, 4 Feb 2025 08:31:05 +0000 Subject: [PATCH 1/2] Adding Entra PowerShell support on Cloud shell --- linux/powershell/setupPowerShell.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/linux/powershell/setupPowerShell.ps1 b/linux/powershell/setupPowerShell.ps1 index fe6dda13..6095c734 100644 --- a/linux/powershell/setupPowerShell.ps1 +++ b/linux/powershell/setupPowerShell.ps1 @@ -133,6 +133,15 @@ try { PowerShellGet\Install-Module -Name Microsoft.Graph.Identity.SignIns @prodAllUsers PowerShellGet\Install-Module -Name Microsoft.Graph.Applications @prodAllUsers + # Microsoft Entra PowerShell packages + PowerShellGet\Install-Module -Name Microsoft.Entra.Authentication @prodAllUsers + PowerShellGet\Install-Module -Name Microsoft.Entra.Users @prodAllUsers + PowerShellGet\Install-Module -Name Microsoft.Entra.Groups @prodAllUsers + PowerShellGet\Install-Module -Name Microsoft.Entra.DirectoryManagement @prodAllUsers + PowerShellGet\Install-Module -Name Microsoft.Entra.Governance @prodAllUsers + PowerShellGet\Install-Module -Name Microsoft.Entra.SignIns @prodAllUsers + PowerShellGet\Install-Module -Name Microsoft.Entra.Applications @prodAllUsers + PowerShellGet\Install-Module -Name Microsoft.Entra.Reports @prodAllUsers } else { # update libmi.so From b4f75cbb6fe006b61af441238793f807b36ff2f3 Mon Sep 17 00:00:00 2001 From: Steve Mutungi <132555836+SteveMutungi254@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:08:16 +0000 Subject: [PATCH 2/2] Fix PS version to 7.5.0 --- tests/PSinLinuxCloudShellImage.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PSinLinuxCloudShellImage.Tests.ps1 b/tests/PSinLinuxCloudShellImage.Tests.ps1 index 21146415..cd0ef09a 100755 --- a/tests/PSinLinuxCloudShellImage.Tests.ps1 +++ b/tests/PSinLinuxCloudShellImage.Tests.ps1 @@ -19,7 +19,7 @@ Describe "Various programs installed with expected versions" { It "Static Versions" { # These programs are installed explicitly with specific versions $script:pmap["Node.JS"].Version | Should -Be '18.20.3' - $script:pmap["PowerShell"].Version | Should -BeLike '7.4*' + $script:pmap["PowerShell"].Version | Should -BeLike '7.5*' } It "Some Versions Installed" {