File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,15 +160,16 @@ function Test-Tooling {
160160 } else {
161161 # Check if latest ALZ module is installed
162162 Write-Verbose " Checking ALZ module version"
163- $alzModuleCurrentVersion = Get-InstalledModule - Name ALZ - ErrorAction SilentlyContinue
163+ $alzModuleCurrentVersion = Get-InstalledPSResource - Name ALZ | Select-Object - Property Name, Version
164+
164165 if ($null -eq $alzModuleCurrentVersion ) {
165166 $checkResults += @ {
166167 message = " ALZ module is not correctly installed. Please install the latest version using 'Install-Module ALZ'."
167168 result = " Failure"
168169 }
169170 $hasFailure = $true
170171 }
171- $alzModuleLatestVersion = Find-Module - Name ALZ
172+ $alzModuleLatestVersion = Find-PSResource - Name ALZ
172173 if ($null -ne $alzModuleCurrentVersion ) {
173174 if ($alzModuleCurrentVersion.Version -lt $alzModuleLatestVersion.Version ) {
174175 $checkResults += @ {
You can’t perform that action at this time.
0 commit comments