Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WhatIf Module installation - Az.Resources not catalog signed #34

Closed
petegrimsdale opened this issue Feb 14, 2020 · 0 comments · Fixed by #36
Closed

WhatIf Module installation - Az.Resources not catalog signed #34

petegrimsdale opened this issue Feb 14, 2020 · 0 comments · Fixed by #36
Labels
bug Something isn't working fix in progress The fix for the issue is in progress

Comments

@petegrimsdale
Copy link

When running the install process to install the module the following occurs

  1. Install-Module -Name Az.Resources -Repository WhatIfRepository -RequiredVersion 2.0.1-alpha4 -AllowPrerelease -AllowClobber -Credential $credential

The Error below is shown:
PackageManagement\Install-Package : The version '2.0.1' of the module 'Az.Resources' being installed is not catalog signed. Ensure that the version '2.0.1' of the module
'Az.Resources' has the catalog file 'Az.Resources.cat' and signed with the same publisher 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' as the
previously-installed module 'Az.Resources' with version '1.10.0' under the directory 'C:\Users\pegrimsd\Documents\WindowsPowerShell\Modules\Az.Resources\1.10.0'. If you still want
to install or update, use -SkipPublisherCheck parameter.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.3\PSModule.psm1:9685 char:34

  • ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    • FullyQualifiedErrorId : ModuleIsNotCatalogSigned,Validate-ModuleAuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Expected behavior
Update install docs to run with the command:
Install-Module -Name Az.Resources -Repository WhatIfRepository -RequiredVersion 2.0.1-alpha4 -AllowPrerelease -AllowClobber -Credential $credential -SkipPublisherCheck
Screenshots

Client PowerShell

Additional context

@majastrz majastrz added fix in progress The fix for the issue is in progress bug Something isn't working labels Feb 15, 2020
@majastrz majastrz linked a pull request Feb 15, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix in progress The fix for the issue is in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants