Skip to content

Commit

Permalink
Update ExchangeOnlineManagement (#332)
Browse files Browse the repository at this point in the history
* Update setupPowerShell.ps1

* update module

* update version
  • Loading branch information
darrentu authored Jul 25, 2023
1 parent 9747391 commit 3479fc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
6 changes: 1 addition & 5 deletions linux/powershell/setupPowerShell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
10 changes: 0 additions & 10 deletions tests/PSinLinuxCloudShellImage.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,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
Expand Down Expand Up @@ -227,7 +218,6 @@ Describe "PowerShell Modules" {
@{ ModuleName = "Az" }
@{ ModuleName = "MicrosoftPowerBIMgmt" }
@{ ModuleName = "GuestConfiguration" }
@{ ModuleName = "EXOPSSessionConnector" }
@{ ModuleName = "MicrosoftTeams" }
@{ ModuleName = "Microsoft.PowerShell.UnixCompleters" }
@{ ModuleName = "Microsoft.PowerShell.SecretManagement" }
Expand Down

0 comments on commit 3479fc9

Please sign in to comment.