From fb8c378e8affb00137f87d04a24231fa7790e53a Mon Sep 17 00:00:00 2001 From: ritikmit <88980817+ritikmit@users.noreply.github.com> Date: Tue, 16 May 2023 18:01:03 +0530 Subject: [PATCH 1/4] Update ExchangeOnlineManagement version in SetupPowerShell.ps1 --- linux/powershell/setupPowerShell.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/linux/powershell/setupPowerShell.ps1 b/linux/powershell/setupPowerShell.ps1 index a624b847..72ad5ba2 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-Preview3 -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 From 940662dbcb66ad8b7ca5c6427e28e74eed04b383 Mon Sep 17 00:00:00 2001 From: ritikmit <88980817+ritikmit@users.noreply.github.com> Date: Mon, 22 May 2023 12:59:24 +0530 Subject: [PATCH 2/4] Adding back EXOPSSessionConnector --- linux/powershell/setupPowerShell.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux/powershell/setupPowerShell.ps1 b/linux/powershell/setupPowerShell.ps1 index 72ad5ba2..b13479cf 100644 --- a/linux/powershell/setupPowerShell.ps1 +++ b/linux/powershell/setupPowerShell.ps1 @@ -159,6 +159,10 @@ 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 From f0eef71f1f20685dd097c404de7222a7ae0f9e0e Mon Sep 17 00:00:00 2001 From: ritikmit <88980817+ritikmit@users.noreply.github.com> Date: Thu, 20 Jul 2023 16:24:10 +0530 Subject: [PATCH 3/4] Updating module version and removing EXOPSSessionConnector again --- linux/powershell/setupPowerShell.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/linux/powershell/setupPowerShell.ps1 b/linux/powershell/setupPowerShell.ps1 index b13479cf..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 3.2.0-Preview3 -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 From d1787cc0cde063bcbdbca399b4d21a63be9b0f48 Mon Sep 17 00:00:00 2001 From: ritikmit <88980817+ritikmit@users.noreply.github.com> Date: Fri, 21 Jul 2023 09:56:27 +0530 Subject: [PATCH 4/4] Fixing tests --- tests/PSinLinuxCloudShellImage.Tests.ps1 | 10 ---------- 1 file changed, 10 deletions(-) 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" }