Powershell module version check fail on azure local

Tang, Ken 65 Reputation points
2025-05-02T01:22:45.7833333+00:00

Upgrade from 2411.3 to 2503, on health check stage, it shows "Test Powershell module version" failed.

Any sugggestions?

Azure Local
{count} vote

Answer accepted by question author
  1. Marc Dreimann 95 Reputation points
    2025-05-06T22:55:17.33+00:00

    I think i found a solution...

    In the event log "Applications and Services" => "AzStackHCIEnvironmentChecker" i found two errors,

    • Checking version of PS module 'Az.StackHCI' on host 'Node2'. Got '2.5.0' but expected '2.2.3'
    • Checking version of PS module 'Az.Accounts' on host 'Node2'. Got '4.0.2' but expected '3.0.5'

    So i checked the installed modules with

    Get-InstalledModule
    

    Uninstalled the current versions and installed the expected one:

    Uninstall-Module Az.StackHCi -AllVersions -Force
    Install-Module Az.StackHCI -RequiredVersion 2.2.3 -force -AllowClobber
    
    Uninstall-Module Az.Accounts -AllVersions -Force
    Install-Module Az.Accounts -RequiredVersion 3.0.5 -force
    
    

    I did this on every node.

    It seems to installing now:
    User's image

    4 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Tang, Ken 65 Reputation points
    2025-05-07T04:08:09.1433333+00:00

    Hi Marc,

    I have following your hint and reload all "error" PS module in event viewer, the HealthCheck has passed and Installing is in progress.

    Thanks and your effort.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.