When using a local repository, Az.KeyVault reports version as 1.0.0 and does not work with Save-PSResource #27535
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Uh oh!
There was an error while loading. Please reload this page.
Description
I'm unable to use the nupkg for Az.KeyVault with Powershell 7.5. Specifically, I'm trying to use the Save-PSResource function from a local repository on my laptop for my dev environment. I wrote the issue with az.keyvault 6.3.1 but every version seems to do this as well. I also grabbed 5 other modules and Az.KeyVault is the only one acting this way.
Steps to recreate the issue.
Open a powershell 5.1 window as the admin and run these commands
You should see
Open a pwsh 7.5 window
Run these commands
The Az.KeyVault is showing up as 1.0.0
If I execute
Save-PSResource -Name Az.KeyVault -Repository 'SSE' -Path 'C:\Temp\'
I get this error
$PSVersionTable for 51
$PSVersionTable for 75
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: