blindzero/Connect-MS365

Module update check not working in some cases

Opened this issue · 0 comments

Describe the bug
The contained module version checker doesn't work for some modules. This could be observed for Az and ExchangeOnlineManagement module.
Maybe relating to installation scope of already installed modules?

To Reproduce
Steps to reproduce the behavior:

  1. Have older version of ExchangeOnlineManagement or Az installed
    Check e.g. with using Get-Module Az -ListAvailable and Find-Module Az to compare version numbers.
  2. Run Connect-MS365 -Service Az
  3. No notification on available module update is shown

Expected behavior
On connection it should be printed that a new version is available and an inline update is proposed.

Screenshots
version-check-az-ps7

Desktop (please complete the following information):

  • OS: Windows
  • PowerShell: 7