Steps to reproduce
PowerShell module Az is already installed on the system and can be confirmed in PS v5.1 using the same cmdlet.
Get-InstalledModule -Name Az
Expected behavior
Get-InstalledModule -Name Az
Version Name Repository Description
------- ---- ---------- -----------
3.7.0 Az PSGallery Microsoft Azure PowerShell - Cmdlets to manage..
Actual behavior
Get-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9423
Line |
9423 | PackageManagement\Get-Package @PSBoundParameters | Microsoft. …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| No match was found for the specified search criteria and module names 'Az'.
Environment data
Name Value
---- -----
PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
The issue reads similarly to another that has been closed #12040
Steps to reproduce
PowerShell module Az is already installed on the system and can be confirmed in PS v5.1 using the same cmdlet.
Expected behavior
Actual behavior
Environment data
The issue reads similarly to another that has been closed #12040