Powershell module version check fail on azure local

Tang, Ken 60 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

Accepted answer
  1. Marc Dreimann 90 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

    3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Tang, Ken 60 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.

    0 comments No comments

Your answer

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