Commit 9c5ac39
authored
fix: update ALZ module version checks to use Get-InstalledPSResource (#465)
# Pull Request
## Issue
Issue #, if available:
https://github.com/Azure/ALZ-PowerShell-Module/issues/461
## Description
Description of changes:
This pull request updates the way the ALZ module is checked and
retrieved in the `Test-Tooling` function, modernizing the approach to
use the latest PowerShell resource management cmdlets for better
compatibility and reliability.
**Module management modernization:**
* Replaced `Get-InstalledModule` with `Get-InstalledPSResource` for
checking the installed ALZ module version, and updated the selection of
properties to include `Name` and `Version`.
* Replaced `Find-Module` with `Find-PSResource` for retrieving the
latest available ALZ module version.
## License
By submitting this pull request, I confirm that my contribution is made
under the terms of the projects associated license.
Signed-off-by: Jan Egil Ring <janegilring@microsoft.com>1 parent de5aa81 commit 9c5ac39
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | | - | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
0 commit comments