Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.21k stars 3.81k forks source link

Az.DevOps.Blueprint won't install #11449

Closed o-l-a-v closed 4 years ago

o-l-a-v commented 4 years ago

Error description

"Az.DevOps.Blueprint" v1.0.3 won't install due to "Az.Blueprint" v0.2.9 not being catalog signed, according to the error message.

Module:

Reproduce

Install-Module -Name 'Az.DevOps.Bluprint' -Confirm:$false -Scope 'AllUsers' -AllowClobber -AcceptLicense:$true -Verbose:$false -Debug:$false -Force

Error message:

image

PackageManagement\Install-Package : The version '0.2.9' of the module 'Az.Blueprint' being installed is not catalog signed. Ensure that the version '0.2.9' of the module 'Az.Blueprint' has the catalog file 'Az.Blueprint.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.Blueprint' with version '0.2.11' under the directory 'C:\Program 
Files\WindowsPowerShell\Modules\Az.Blueprint\0.2.11'. 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

Environment

PowerShell ISE

$PSVersionTable | clip
Name                           Value                                                                                                                                                                                                   
----                           -----                                                                                                                                                                                                   
PSVersion                      5.1.19041.1                                                                                                                                                                                             
PSEdition                      Desktop                                                                                                                                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                                 
BuildVersion                   10.0.19041.1                                                                                                                                                                                            
CLRVersion                     4.0.30319.42000                                                                                                                                                                                         
WSManStackVersion              3.0                                                                                                                                                                                                     
PSRemotingProtocolVersion      2.3                                                                                                                                                                                                     
SerializationVersion           1.1.0.1                                                                                                                                                                                                 

Az modules installed

Get-InstalledModule -Name 'Az','Az.*' | clip

Version              Name                                Repository           Description                                                                                                                                              
-------              ----                                ----------           -----------                                                                                                                                              
1.7.3                Az.Accounts                         PSGallery            Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....             
1.1.1                Az.Advisor                          PSGallery            Microsoft Azure PowerShell - Azure Advisor Cmdlets for Advisor in Windows PowerShell and PowerShell Core. Get Advisor recommendations, Manage Advisor ...
1.0.3                Az.Aks                              PSGallery            Microsoft Azure PowerShell - Azure managed Kubernetes cmdlets for Windows PowerShell and PowerShell Core....                                             
0.1.1                Az.AlertsManagement                 PSGallery            Microsoft Azure PowerShell - AlertsManagement service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                   
1.1.2                Az.AnalysisServices                 PSGallery            Microsoft Azure PowerShell - Analysis Services cmdlets for Windows PowerShell and PowerShell Core....                                                    
1.4.0                Az.ApiManagement                    PSGallery            Microsoft Azure PowerShell - Api Management service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                     
0.1.4                Az.AppConfiguration                 PSGallery            Microsoft Azure PowerShell: AppConfiguration cmdlets                                                                                                     
1.0.3                Az.ApplicationInsights              PSGallery            Microsoft Azure PowerShell - Application Insights management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.  Creates an...
1.0.1                Az.ApplicationMonitor               PSGallery            This package contains files required for code-less Application Insights injection. For use on Windows Servers with IIS.                                  
0.1.5                Az.Attestation                      PSGallery            Microsoft Azure PowerShell - Attestation service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                        
1.3.6                Az.Automation                       PSGallery            Microsoft Azure PowerShell - Automation service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                         
2.0.2                Az.Batch                            PSGallery            Microsoft Azure PowerShell - Batch service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                              
1.0.2                Az.Billing                          PSGallery            Microsoft Azure PowerShell - Billing service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                            
0.2.11               Az.Blueprint                        PSGallery            Microsoft Azure PowerShell - Blueprint service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                          
1.4.2                Az.Cdn                              PSGallery            Microsoft Azure PowerShell - CDN service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                                
1.6                  Az.CloneVirtualMachine              PSGallery            Clones Virtual Machines to migrate or remove from Availability Sets...                                                                                   
1.2.3                Az.CognitiveServices                PSGallery            Microsoft Azure PowerShell - Cognitive Services management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. Creates and m...
3.5.0                Az.Compute                          PSGallery            Microsoft Azure PowerShell - Compute service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.  Manages virtual machines, ...
0.7.0                Az.Compute.ManagedService           PSGallery            Microsoft Azure PowerShell - Managed Compute service cmdlets for Azure Resource Manager in PowerShell and PowerShell Core.                               
0.7.0                Az.Consumption                      PSGallery            Microsoft Azure PowerShell - Consumption service cmdlets for Azure Resource Manager in PowerShell and PowerShell Core                                    
1.0.3                Az.ContainerInstance                PSGallery            Microsoft Azure PowerShell - Container Instance cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                         
1.1.1                Az.ContainerRegistry                PSGallery            Microsoft Azure PowerShell - Container Registry service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                 
0.1.2                Az.CosmosDB                         PSGallery            Microsoft Azure PowerShell - CosmosDB service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                           
0.1.1                Az.DataBox                          PSGallery            Microsoft Azure PowerShell - DataBox service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                            
1.1.0                Az.DataBoxEdge                      PSGallery            Microsoft Azure PowerShell - DataBoxEdge service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                        
1.6.1                Az.DataFactory                      PSGallery            Microsoft Azure PowerShell - Data Factory service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                       
1.0.2                Az.DataLakeAnalytics                PSGallery            Microsoft Azure PowerShell - Data Lake Analytics in Windows PowerShell and PowerShell Core....                                                           
1.2.7                Az.DataLakeStore                    PSGallery            Microsoft Azure PowerShell - Azure Data Lake Store cmdlets in Windows PowerShell and PowerShell Core....                                                 
0.7.4                Az.DataMigration                    PSGallery            Microsoft Azure PowerShell - Database Migration Service cmdlets for Azure Sql in Windows PowerShell and PowerShell Core....                              
0.1.1                Az.DataShare                        PSGallery            Microsoft Azure PowerShell - DataShare service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.                             
1.1.0                Az.DeploymentManager                PSGallery            PowerShell .Net Core Microsoft Azure PowerShell - Deployment Manager cmdlets for Azure Resource Manager....                                              
0.7.2                Az.DeviceProvisioningServices       PSGallery            Microsoft Azure PowerShell - IoT Device Provisioning Service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....            
0.7.3                Az.DevSpaces                        PSGallery            Microsoft Azure PowerShell -  Azure Dev Spaces commands for Windows PowerShell and PowerShell Core....                                                   
1.0.2                Az.DevTestLabs                      PSGallery            Microsoft Azure PowerShell - DevTest Labs service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                       
1.1.2                Az.Dns                              PSGallery            Microsoft Azure PowerShell - DNS service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                                
1.2.3                Az.EventGrid                        PSGallery            Microsoft Azure PowerShell - Event Grid service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                         
1.4.3                Az.EventHub                         PSGallery            Microsoft Azure PowerShell - Event Hubs service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                         
1.4.0                Az.FrontDoor                        PSGallery            Microsoft Azure PowerShell - Front Door service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                         
0.10.7               Az.GuestConfiguration               PSGallery            Microsoft Azure PowerShell - Guest Configuration service cmdlets for Azure Resource Manager. Allows querying VM compliance statuses for initiatives (p...
3.0.3                Az.HDInsight                        PSGallery            Microsoft Azure PowerShell - HDInsight service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                          
1.0.1                Az.HealthcareApis                   PSGallery            Microsoft Azure PowerShell - HealthcareApis management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. Creates and manag...
0.7.0                Az.Insights                         PSGallery            Microsoft Azure PowerShell - Insights service cmdlets for Azure Resource Manager in PowerShell and PowerShell Core                                       
0.7.3                Az.IotCentral                       PSGallery            Microsoft Azure PowerShell - IoT Central service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                        
2.2.0                Az.IotHub                           PSGallery            Microsoft Azure PowerShell - IoT Hub service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                            
1.5.1                Az.KeyVault                         PSGallery            Microsoft Azure PowerShell - Key Vault service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                          
0.1.3                Az.Kusto                            PSGallery            Microsoft Azure PowerShell - Kusto service management cmdlets for Azure Resource Manager.  Creates and manages Kusto Servers and Databases in Azure Re...
1.3.2                Az.LogicApp                         PSGallery            Microsoft Azure PowerShell - Logic Apps cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                                 
1.1.3                Az.MachineLearning                  PSGallery            Microsoft Azure PowerShell - Machine Learning Web Services cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....              
0.7.0                Az.MachineLearningCompute           PSGallery            Microsoft Azure PowerShell - Machine Learning Compute cmdlets for Azure Resource Manager in PowerShell and PowerShell Core                               
0.7.3                Az.ManagedServiceIdentity           PSGallery            Microsoft Azure PowerShell - Managed Service Identity cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.  Manages user assi...
1.0.2                Az.ManagedServices                  PSGallery            Microsoft Azure PowerShell - ManagedServices cmdlets for Azure Resource Manager                                                                          
0.7.2                Az.ManagementPartner                PSGallery            Microsoft Azure PowerShell - Management Partner cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.                            
0.7.2                Az.Maps                             PSGallery            Microsoft Azure PowerShell - Maps management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. Creates and manages Maps ac...
1.0.2                Az.MarketplaceOrdering              PSGallery            Microsoft Azure PowerShell - Marketplace Ordering agreements service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....    
1.1.1                Az.Media                            PSGallery            Microsoft Azure PowerShell - Media service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                              
0.1.3                Az.MixedReality                     PSGallery            Microsoft Azure PowerShell - Mixed Reality services cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                     
1.6.1                Az.Monitor                          PSGallery            Microsoft Azure PowerShell - Monitor service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                            
0.1.3                Az.NetAppFiles                      PSGallery            Microsoft Azure PowerShell - Azure NetApp Files (ANF) service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....           
2.3.2                Az.Network                          PSGallery            Microsoft Azure PowerShell - Networking service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                         
1.1.1                Az.NotificationHubs                 PSGallery            Microsoft Azure PowerShell - Notification Hubs cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                          
1.3.4                Az.OperationalInsights              PSGallery            Microsoft Azure PowerShell - Operational Insights service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.                  
0.1.7                Az.Peering                          PSGallery            Microsoft Azure PowerShell - Microsoft Peering Service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                  
1.2.0                Az.PolicyInsights                   PSGallery            Microsoft Azure PowerShell - Azure Policy Insights cmdlets for Windows PowerShell and PowerShell Core. Allows querying policy evaluation events and co...
1.1.1                Az.PowerBIEmbedded                  PSGallery            Microsoft Azure PowerShell - Power BI Embedded service management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.  Creat...
1.0.2                Az.PrivateDns                       PSGallery            Microsoft Azure PowerShell - Private DNS service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                        
0.7.0                Az.Profile                          PSGallery            Microsoft Azure PowerShell - Profile credential management cmdlets for Azure Resource Manager in PowerShell and PowerShell Core                          
2.7.0                Az.RecoveryServices                 PSGallery            Microsoft Azure PowerShell - Recovery Services cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                          
1.2.1                Az.RedisCache                       PSGallery            Microsoft Azure PowerShell - Redis Cache service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                        
1.0.3                Az.Relay                            PSGallery            Microsoft Azure PowerShell - Relay service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                              
0.8.2                Az.Reservations                     PSGallery            Microsoft Azure PowerShell - Reservations service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.  Manages Reservations,...
0.7.7                Az.ResourceGraph                    PSGallery            Microsoft Azure PowerShell - Azure Resource Graph cmdlets in Windows PowerShell and PowerShell Core. Allows querying resources with a powerful query l...
1.12.0               Az.Resources                        PSGallery            Microsoft Azure PowerShell - Azure Resource Manager and Active Directory cmdlets in Windows PowerShell and PowerShell Core.  Manages subscriptions, te...
0.7.4                Az.Search                           PSGallery            Microsoft Azure PowerShell - Azure Search management cmdlets for Windows PowerShell and PowerShell Core....                                              
0.7.7                Az.Security                         PSGallery            Microsoft Azure PowerShell - Azure Security Center cmdlets in Windows PowerShell and PowerShell Core. Allows managing and monitoring the security post...
1.4.1                Az.ServiceBus                       PSGallery            Microsoft Azure PowerShell - Service Bus service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                        
2.0.1                Az.ServiceFabric                    PSGallery            Microsoft Azure PowerShell - Service Fabric cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                             
1.1.1                Az.SignalR                          PSGallery            Microsoft Azure PowerShell - Azure SignalR service commands for Windows PowerShell and PowerShell Core....                                               
2.5.0                Az.Sql                              PSGallery            Microsoft Azure PowerShell - SQL service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                                
1.1.0                Az.SqlVirtualMachine                PSGallery            Microsoft Azure PowerShell - SqlVirtualMachine service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.                     
0.0.1                Az.StackEdge                        PSGallery            Microsoft Azure PowerShell - StackEdge service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                          
1.13.0               Az.Storage                          PSGallery            Microsoft Azure PowerShell - Storage service data plane and management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.  ...
1.2.3                Az.StorageSync                      PSGallery            Microsoft Azure PowerShell - Storage Sync cmdlets in Windows PowerShell and PowerShell Core. Manages operations pertaining to Azure File Sync in Power...
1.0.7                Az.StorageTable                     PSGallery            Sample functions to add/retrieve/update entities on Azure Storage Tables from PowerShell. It requires latest Azure PowerShell module installed, which ...
1.0.1                Az.StreamAnalytics                  PSGallery            Microsoft Azure PowerShell - Stream Analytics service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                   
0.1.0                Az.Support                          PSGallery            Microsoft Azure PowerShell - Azure Support cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.                                 
0.7.0                Az.Tags                             PSGallery            Microsoft Azure PowerShell - Tags service cmdlets for Azure Resource Manager in PowerShell and PowerShell Core                                           
1.0.3                Az.TrafficManager                   PSGallery            Microsoft Azure PowerShell - Traffic Manager service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....                    
0.7.0                Az.UsageAggregates                  PSGallery            Microsoft Azure PowerShell - UsageAggregates service cmdlets for Azure Resource Manager in PowerShell and PowerShell Core                                
1.7.0                Az.Websites                         PSGallery            Microsoft Azure PowerShell - App Service (Web Apps) service cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core....             
3.6.1                Az                                  PSGallery            Microsoft Azure PowerShell - Cmdlets to manage resources in Azure. This module is compatible with WindowsPowerShell and PowerShell Core....              
dingmeng-xue commented 4 years ago

This issue is due to the psd1 in old version of Az.Blueprint 0.2.9 was not signed. The latest version 0.2.11 is signed. User has to use -SkipPublisherCheck parameter.

Sign all files are required by security ask. Sorry for inconvenience.