diff --git a/linux/powershell/setupPowerShell.ps1 b/linux/powershell/setupPowerShell.ps1 index a624b847..93da1433 100644 --- a/linux/powershell/setupPowerShell.ps1 +++ b/linux/powershell/setupPowerShell.ps1 @@ -139,7 +139,7 @@ try { PowerShellGet\Install-Module -Name Microsoft.PowerShell.UnixCompleters @prodAllUsers PowerShellGet\Install-Module -Force PSReadLine @prodAllUsers PowerShellGet\Install-Module -Name Az.Tools.Predictor @prodAllUsers - PowerShellGet\Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5 -Force + PowerShellGet\Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.2.0 -Force PowerShellGet\Install-Module -Name Microsoft.PowerShell.SecretManagement @prodAllUsers PowerShellGet\Install-Module -Name Microsoft.PowerShell.SecretStore @prodAllUsers @@ -159,10 +159,6 @@ try { if (Microsoft.PowerShell.Management\Test-Path $tempDirectory) { Write-Output ('Temp Directory: {0}' -f $tempDirectory) - - # Install the Exchange modules from the Azure storage - Install-PSCloudShellFile -Source $tempDirectory -FileName 'EXOPSSessionConnector.zip' -Destination $modulePath -FileHash $script:dockerfileDataObject.ExoConnectorFileHash - Write-Output "Installed Exchange Package." } # Copy the startup script to the all-users profile diff --git a/tests/PSinLinuxCloudShellImage.Tests.ps1 b/tests/PSinLinuxCloudShellImage.Tests.ps1 index 5419a075..fa80aa7a 100755 --- a/tests/PSinLinuxCloudShellImage.Tests.ps1 +++ b/tests/PSinLinuxCloudShellImage.Tests.ps1 @@ -166,15 +166,6 @@ Describe "PowerShell Modules" { } - It "EXOConnector PowerShell Module" { - - $module = Get-Module -Name EXOPSSessionConnector -ListAvailable - $module | Should -Not -BeNullOrEmpty - - # EXOPSSessionConnector module should have at least one command - (Get-Command * -Module EXOPSSessionConnector).Count -ge 1 | Should -Be $true - } - It "PowerBI PowerShell Module" { $module = Get-Module -Name MicrosoftPowerBIMgmt -ListAvailable @@ -231,7 +222,6 @@ Describe "PowerShell Modules" { @{ ModuleName = "Az" } @{ ModuleName = "MicrosoftPowerBIMgmt" } @{ ModuleName = "GuestConfiguration" } - @{ ModuleName = "EXOPSSessionConnector" } @{ ModuleName = "MicrosoftTeams" } @{ ModuleName = "Microsoft.PowerShell.UnixCompleters" } @{ ModuleName = "Microsoft.PowerShell.SecretManagement" }