You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
Am trying to install azure module using below command and facing multiple errors on diff submodules. whereas individual submodules are installing correctly.
Erroring out for various reasons. Refer screenshots.Raising a case here as per the direction provided in this issue - https://github.com/Azure/azure-powershell/issues/17144
Error details
Install-Module -Name Az -AllowClobber -DebugCorporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.DEBUG: 00:02:47.2995110 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:47.3036365 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:47.3171376 Is previously-installed module signed by Microsoft: TrueDEBUG: 00:02:47.3216144 Is current module signed by Microsoft: TrueVERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Az.FrontDoor' with version '1.9.0' matches with theauthenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Az.FrontDoor' with version '1.9.0'.VERBOSE: Checking for possible command collisions for the module 'Az.FrontDoor' commands.VERBOSE: Installing the dependency module 'Az.FrontDoor' with version '1.9.0' for the module 'Az'.VERBOSE: Module 'Az.FrontDoor' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\Az.FrontDoor\1.9.0'.VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.HDInsight/5.0.0'.VERBOSE: Completed downloading 'Az.HDInsight'.VERBOSE: Hash for package 'Az.HDInsight' does not match hash provided from the server.DEBUG: 00:02:47.7248947 Calling 'NuGetClient'::'InstallPackageLocal'.VERBOSE: InstallPackageLocal' - name='Az.HDInsight', version='5.0.0',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197'DEBUG: 00:02:47.7333289 C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.HDInsight.5.0.0\Az.HDInsight.5.0.0.nupkgDEBUG: 00:02:47.8595164 Returning the call 'NuGetClient'::'InstallPackageLocal'.VERBOSE: Validating the 'Az.Functions' module contents under 'C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.Functions.4.0.1' path.DEBUG: 00:02:47.9200202 Returning the call 'NuGetClient'::'InstallSinglePackage'.VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.Functions.4.0.1'.DEBUG: 00:02:47.9996511 Calling 'NuGetClient'::'InstallPackage'.VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.Functions'.VERBOSE: InstallPackage' - name='Az.HealthcareApis', version='1.3.2',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197'VERBOSE: DownloadPackage' - name='Az.HealthcareApis', version='1.3.2',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.HealthcareApis.1.3.2\Az.HealthcareApis.1.3.2.nupkg',uri='https://www.powershellgallery.com/api/v2/package/Az.HealthcareApis/1.3.2'VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.HealthcareApis/1.3.2'.DEBUG: 00:02:48.0751775 Catalog file 'Az.Functions.cat' is not found in the contents of the previously-installed module 'Az.Functions' with the same name.DEBUG: 00:02:48.0820675 Using the previously-installed module 'Az.Functions' with version '4.0.1' under 'C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.1' for getting thepublisher details.DEBUG: 00:02:48.0866131 Using the 'C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.1\Az.Functions.psd1' file for getting the authenticode signature.DEBUG: 00:02:48.1830472 For publisher validation, using the previously-installed module 'Az.Functions' with version '4.0.1' under 'C:\ProgramFiles\WindowsPowerShell\Modules\Az.Functions\4.0.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.VERBOSE: Catalog file 'Az.Functions.cat' is not found in the contents of the module 'Az.Functions' being installed.DEBUG: 00:02:48.1951631 Using the 'Az.Functions.psd1' file for getting the authenticode signature.VERBOSE: Valid authenticode signature found in the file 'Az.Functions.psd1' for the module 'Az.Functions'.DEBUG: 00:02:48.2793764 For publisher validation, current module 'Az.Functions' with version '4.0.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond,S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed byMicrosoft: 'True'.VERBOSE: For publisher validation, current module 'Az.Functions' with version '4.0.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.VERBOSE: For publisher validation, using the previously-installed module 'Az.Functions' with version '4.0.1' under 'C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.1' withpublisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=MicrosoftCorporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.DEBUG: 00:02:48.3030107 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:48.3163936 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:48.3209428 Is previously-installed module signed by Microsoft: TrueDEBUG: 00:02:48.3248815 Is current module signed by Microsoft: TrueVERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Az.Functions' with version '4.0.1' matches with theauthenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Az.Functions' with version '4.0.1'.VERBOSE: Checking for possible command collisions for the module 'Az.Functions' commands.VERBOSE: Installing the dependency module 'Az.Functions' with version '4.0.1' for the module 'Az'.VERBOSE: Module 'Az.Functions' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\Az.Functions\4.0.1'.VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.HealthcareApis/1.3.2'.VERBOSE: Completed downloading 'Az.HealthcareApis'.VERBOSE: Hash for package 'Az.HealthcareApis' does not match hash provided from the server.DEBUG: 00:02:48.8242882 Calling 'NuGetClient'::'InstallPackageLocal'.VERBOSE: InstallPackageLocal' - name='Az.HealthcareApis', version='1.3.2',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197'DEBUG: 00:02:48.8319981 C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.HealthcareApis.1.3.2\Az.HealthcareApis.1.3.2.nupkgDEBUG: 00:02:48.9495255 Returning the call 'NuGetClient'::'InstallPackageLocal'.VERBOSE: Validating the 'Az.HDInsight' module contents under 'C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.HDInsight.5.0.0' path.DEBUG: 00:02:49.0088213 Returning the call 'NuGetClient'::'InstallSinglePackage'.VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.HDInsight.5.0.0'.VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.HDInsight'.DEBUG: 00:02:49.1110236 Calling 'NuGetClient'::'InstallPackage'.VERBOSE: InstallPackage' - name='Az.IotHub', version='2.7.4',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197'VERBOSE: DownloadPackage' - name='Az.IotHub', version='2.7.4',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.IotHub.2.7.4\Az.IotHub.2.7.4.nupkg',uri='https://www.powershellgallery.com/api/v2/package/Az.IotHub/2.7.4'VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.IotHub/2.7.4'.DEBUG: 00:02:49.1661552 Catalog file 'Az.HDInsight.cat' is not found in the contents of the previously-installed module 'Az.HDInsight' with the same name.DEBUG: 00:02:49.1715304 Using the previously-installed module 'Az.HDInsight' with version '5.0.0' under 'C:\Program Files\WindowsPowerShell\Modules\Az.HDInsight\5.0.0' for getting thepublisher details.DEBUG: 00:02:49.1758749 Using the 'C:\Program Files\WindowsPowerShell\Modules\Az.HDInsight\5.0.0\Az.HDInsight.psd1' file for getting the authenticode signature.DEBUG: 00:02:49.2716619 For publisher validation, using the previously-installed module 'Az.HDInsight' with version '5.0.0' under 'C:\ProgramFiles\WindowsPowerShell\Modules\Az.HDInsight\5.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.VERBOSE: Catalog file 'Az.HDInsight.cat' is not found in the contents of the module 'Az.HDInsight' being installed.DEBUG: 00:02:49.2834587 Using the 'Az.HDInsight.psd1' file for getting the authenticode signature.VERBOSE: Valid authenticode signature found in the file 'Az.HDInsight.psd1' for the module 'Az.HDInsight'.DEBUG: 00:02:49.3700792 For publisher validation, current module 'Az.HDInsight' with version '5.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond,S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed byMicrosoft: 'True'.VERBOSE: For publisher validation, current module 'Az.HDInsight' with version '5.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.VERBOSE: For publisher validation, using the previously-installed module 'Az.HDInsight' with version '5.0.0' under 'C:\Program Files\WindowsPowerShell\Modules\Az.HDInsight\5.0.0' withpublisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=MicrosoftCorporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.DEBUG: 00:02:49.3898380 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:49.3940112 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:49.3982248 Is previously-installed module signed by Microsoft: TrueDEBUG: 00:02:49.4109702 Is current module signed by Microsoft: TrueVERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Az.HDInsight' with version '5.0.0' matches with theauthenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Az.HDInsight' with version '5.0.0'.VERBOSE: Checking for possible command collisions for the module 'Az.HDInsight' commands.VERBOSE: Installing the dependency module 'Az.HDInsight' with version '5.0.0' for the module 'Az'.VERBOSE: Module 'Az.HDInsight' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\Az.HDInsight\5.0.0'.VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.IotHub/2.7.4'.VERBOSE: Completed downloading 'Az.IotHub'.VERBOSE: Hash for package 'Az.IotHub' does not match hash provided from the server.DEBUG: 00:02:49.8072723 Calling 'NuGetClient'::'InstallPackageLocal'.VERBOSE: InstallPackageLocal' - name='Az.IotHub', version='2.7.4',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197'DEBUG: 00:02:49.8152253 C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.IotHub.2.7.4\Az.IotHub.2.7.4.nupkgDEBUG: 00:02:50.0401094 Returning the call 'NuGetClient'::'InstallPackageLocal'.VERBOSE: Validating the 'Az.HealthcareApis' module contents under 'C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.HealthcareApis.1.3.2' path.DEBUG: 00:02:50.0986271 Returning the call 'NuGetClient'::'InstallSinglePackage'.VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.HealthcareApis.1.3.2'.VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.HealthcareApis'.DEBUG: 00:02:50.2100570 Calling 'NuGetClient'::'InstallPackage'.VERBOSE: InstallPackage' - name='Az.KeyVault', version='4.2.1',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197'DEBUG: 00:02:50.2194129 Catalog file 'Az.HealthcareApis.cat' is not found in the contents of the previously-installed module 'Az.HealthcareApis' with the same name.VERBOSE: DownloadPackage' - name='Az.KeyVault', version='4.2.1',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.KeyVault.4.2.1\Az.KeyVault.4.2.1.nupkg',uri='https://www.powershellgallery.com/api/v2/package/Az.KeyVault/4.2.1'DEBUG: 00:02:50.2383691 Using the previously-installed module 'Az.HealthcareApis' with version '1.3.1' under 'C:\Program Files\WindowsPowerShell\Modules\Az.HealthcareApis\1.3.1' forgetting the publisher details.VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.KeyVault/4.2.1'.DEBUG: 00:02:50.2463778 Using the 'C:\Program Files\WindowsPowerShell\Modules\Az.HealthcareApis\1.3.1\Az.HealthcareApis.psd1' file for getting the authenticode signature.DEBUG: 00:02:50.3384018 For publisher validation, using the previously-installed module 'Az.HealthcareApis' with version '1.3.1' under 'C:\ProgramFiles\WindowsPowerShell\Modules\Az.HealthcareApis\1.3.1' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificateauthority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.VERBOSE: Catalog file 'Az.HealthcareApis.cat' is not found in the contents of the module 'Az.HealthcareApis' being installed.DEBUG: 00:02:50.3502087 Using the 'Az.HealthcareApis.psd1' file for getting the authenticode signature.VERBOSE: Valid authenticode signature found in the file 'Az.HealthcareApis.psd1' for the module 'Az.HealthcareApis'.DEBUG: 00:02:50.4302069 For publisher validation, current module 'Az.HealthcareApis' with version '1.3.2' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond,S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed byMicrosoft: 'True'.VERBOSE: For publisher validation, current module 'Az.HealthcareApis' with version '1.3.2' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington,C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.VERBOSE: For publisher validation, using the previously-installed module 'Az.HealthcareApis' with version '1.3.1' under 'C:\Program Files\WindowsPowerShell\Modules\Az.HealthcareApis\1.3.1'with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011,O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.DEBUG: 00:02:50.4598417 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:50.4641984 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USDEBUG: 00:02:50.4684088 Is previously-installed module signed by Microsoft: TrueDEBUG: 00:02:50.4723769 Is current module signed by Microsoft: TrueVERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Az.HealthcareApis' with version '1.3.2' matches with theauthenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Az.HealthcareApis' with version '1.3.1'.VERBOSE: Checking for possible command collisions for the module 'Az.HealthcareApis' commands.VERBOSE: Installing the dependency module 'Az.HealthcareApis' with version '1.3.2' for the module 'Az'.VERBOSE: Module 'Az.HealthcareApis' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\Az.HealthcareApis\1.3.2'.VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.KeyVault/4.2.1'.VERBOSE: Completed downloading 'Az.KeyVault'.VERBOSE: Hash for package 'Az.KeyVault' does not match hash provided from the server.DEBUG: 00:02:51.1278020 Calling 'NuGetClient'::'InstallPackageLocal'.VERBOSE: InstallPackageLocal' - name='Az.KeyVault', version='4.2.1',destination='C:\Users\sakala_a\AppData\Local\Temp\1948153197'DEBUG: 00:02:51.1370286 C:\Users\sakala_a\AppData\Local\Temp\1948153197\Az.KeyVault.4.2.1\Az.KeyVault.4.2.1.nupkgDEBUG: 00:02:51.2671819 System.IO.InvalidDataException: A local file header is corrupt. at System.IO.Compression.ZipArchiveEntry.ThrowIfNotOpenable(Boolean needToUncompress, Boolean needToLoadIntoMemory) at System.IO.Compression.ZipArchiveEntry.OpenInReadMode(Boolean checkOpenable) at System.IO.Compression.ZipFileExtensions.ExtractToFile(ZipArchiveEntry source, String destinationFileName, Boolean overwrite) at System.IO.Compression.ZipFileExtensions.ExtractToDirectory(ZipArchive source, String destinationDirectoryName) at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding) at Microsoft.PackageManagement.NuGetProvider.PackageUtility.DecompressFile(String fullZipPath) at Microsoft.PackageManagement.NuGetProvider.NuGetClient.InstallPackageLocal(String packageName, String version, NuGetRequest request, PackageSource source, String sourceFilePath,ProgressTracker progressTracker)ConfirmPackage 'Az.KeyVault' failed to be installed because: A local file header is corrupt.[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): aPackageManagement\Install-Package : Package 'Az.KeyVault' failed to be installed because: A local file header is corrupt.At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidResult: (Az.KeyVault:String) [Install-Package], Exception + FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Environment data
PS C:\Windows\system32>$PSVersionTable
Name Value
---------
PSVersion 5.1.17763.2183
PSEdition Desktop
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
BuildVersion 10.0.17763.2183
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Windows 2019 server
Visuals
The text was updated successfully, but these errors were encountered:
@sagarkalangi Can you try upgrading to the 2.2.5 version of PowerShellGet? Can you try this cmdlet to update Install-Module -Name PowerShellGet -RequiredVersion 2.2.5 -Force
and if you have issues with the above then can you follow the instructions in this blog post
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Prerequisites
Steps to reproduce
Am trying to install azure module using below command and facing multiple errors on diff submodules. whereas individual submodules are installing correctly.
Install-module -name az
Raising a case here as per the direction provided in this issue - Azure/azure-powershell#17144
Expected behavior
Powershell Az module should be installed
Actual behavior
Error details
Environment data
Visuals
The text was updated successfully, but these errors were encountered: