You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the way OneDrive works, it is possible to have a newer version of
the module installed, but not imported when using multiple machines.
This PR adds a check for the imported version too and provides a command
to update it.
We also skip the check and warn if the dev version is detected to
simplify the local dev lifecycle.
Write-Verbose"Imported ALZ module version ($($importedModule.Version)) is older than the latest installed version ($($alzModuleLatestVersion.Version)), re-importing module"
222
+
223
+
$checkResults+=@{
224
+
message="ALZ module has the latest version installed, but not imported. Imported version: ($($importedModule.Version)). Please re-import the module using 'Remove-Module -Name ALZ; Import-Module -Name ALZ -Global' to use the latest version."
225
+
result="Failure"
226
+
}
227
+
$hasFailure=$true
228
+
} else {
229
+
$checkResults+=@{
230
+
message="ALZ module is the latest version ($($alzModuleCurrentVersion.Version))."
0 commit comments