-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Description
While installing the latest version of Az I get an error described below. This error is generated in whatever version of Powershell I use.
Steps to reproduce
Run Install-Module -name Az -AllowClobber -Force
Environment data
Name Value
---- -----
PSVersion 6.2.0
PSEdition Core
GitCommitId 6.2.0
OS Microsoft Windows 10.0.17134
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
---------- ------- ---- --------- ----------------
Script 2.3.2 Az Core,Desk
Script 1.6.0 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosa…
Script 1.5.3 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosa…
Script 1.0.0 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAdvisorReco…
Script 1.0.1 Az.Aks Core,Desk {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksC…
Script 1.1.0 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalys…
Script 1.1.0 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToProduct, Add-AzApiManagem…
Script 1.0.0 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsig…
Script 1.2.2 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutom…
Script 1.1.0 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-Az…
Script 1.0.0 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-Az…
Script 1.3.0 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzC…
Script 1.1.1 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveSe…
Script 2.3.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, …
Script 1.0.1 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGroup, Remov…
Script 1.0.1 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry,…
Script 1.1.1 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-…
Script 1.0.0 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLake…
Script 1.2.1 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDa…
Script 1.0.0 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDepl…
Script 1.0.0 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutd…
Script 1.1.1 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove…
Script 1.2.0 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-A…
Script 1.2.0 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace,…
Script 1.1.0 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor…
Script 2.0.0 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefini…
Script 1.1.0 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGrou…
Script 1.2.0 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCerti…
Script 1.2.1 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrat…
Script 1.1.0 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmen…
Script 1.0.0 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script 1.1.0 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaService…
Script 1.2.1 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLo…
Script 1.10.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate…
Script 1.1.0 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAutho…
Script 1.3.0 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSour…
Script 1.1.1 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolic…
Script 1.1.0 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerB…
Script 1.4.1 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecov…
Script 1.1.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCach…
Script 1.0.1 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-A…
Script 1.5.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment,…
Script 1.2.0 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamesp…
Script 1.1.1 Az.ServiceFabric Core,Desk {Add-AzServiceFabricApplicationCertificate, Add-Az…
Script 1.0.2 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, N…
Script 1.12.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-A…
Script 1.4.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, Ne…
Script 1.0.0 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyt…
Script 1.0.1 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remov…
Script 1.3.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-A…
Script 0.5.4 Azure.AnalysisServices Desk {Add-AzureAnalysisServicesAccount, Restart-AzureAn…
Script 4.6.1 Azure.Storage Desk {Get-AzureStorageTable, New-AzureStorageTableSASTo…
Script 6.13.1 AzureRM Desk
Script 0.6.14 AzureRM.AnalysisServices Desk {Resume-AzureRmAnalysisServicesServer, Suspend-Azu…
Script 6.1.7 AzureRM.ApiManagement Desk {Add-AzureRmApiManagementRegion, Get-AzureRmApiMan…
Script 0.1.8 AzureRM.ApplicationInsights Desk {Get-AzureRmApplicationInsights, New-AzureRmApplic…
Script 6.1.1 AzureRM.Automation Desk {Get-AzureRMAutomationHybridWorkerGroup, Remove-Az…
Script 4.0.11 AzureRM.Backup Desk {Backup-AzureRmBackupItem, Enable-AzureRmBackupCon…
Script 4.1.5 AzureRM.Batch Desk {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccou…
Script 0.14.6 AzureRM.Billing Desk {Get-AzureRmBillingInvoice, Get-AzureRmBillingPeri…
Script 5.0.6 AzureRM.Cdn Desk {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUr…
Script 0.9.12 AzureRM.CognitiveServices Desk {Get-AzureRmCognitiveServicesAccount, Get-AzureRmC…
Script 5.9.1 AzureRM.Compute Desk {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailab…
Script 0.3.7 AzureRM.Consumption Desk {Get-AzureRmConsumptionBudget, Get-AzureRmConsumpt…
Script 0.2.12 AzureRM.ContainerInstance Desk {New-AzureRmContainerGroup, Get-AzureRmContainerGr…
Script 1.0.10 AzureRM.ContainerRegistry Desk {New-AzureRmContainerRegistry, Get-AzureRmContaine…
Script 5.0.3 AzureRM.DataFactories Desk {Remove-AzureRmDataFactory, Get-AzureRmDataFactory…
Script 0.5.11 AzureRM.DataFactoryV2 Desk {Set-AzureRmDataFactoryV2, Update-AzureRmDataFacto…
Script 5.1.4 AzureRM.DataLakeAnalytics Desk {Get-AzureRmDataLakeAnalyticsDataSource, New-Azure…
Script 6.2.1 AzureRM.DataLakeStore Desk {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove…
Script 4.0.9 AzureRM.DevTestLabs Desk {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDt…
Script 5.1.0 AzureRM.Dns Desk {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConf…
Script 0.3.7 AzureRM.EventGrid Desk {New-AzureRmEventGridTopic, Get-AzureRmEventGridTo…
Script 0.7.0 AzureRM.EventHub Desk {New-AzureRmEventHubNamespace, Get-AzureRmEventHub…
Script 4.1.8 AzureRM.HDInsight Desk {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoo…
Script 5.1.5 AzureRM.Insights Desk {Get-AzureRmMetricDefinition, Get-AzureRmMetric, R…
Script 3.1.8 AzureRM.IotHub Desk {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubCo…
Script 5.2.1 AzureRM.KeyVault Desk {Add-AzureKeyVaultCertificate, Update-AzureKeyVaul…
Script 4.1.4 AzureRM.LogicApp Desk {Get-AzureRmIntegrationAccountAgreement, Get-Azure…
Script 0.18.5 AzureRM.MachineLearning Desk {Move-AzureRmMlCommitmentAssociation, Get-AzureRmM…
Script 0.4.8 AzureRM.MachineLearningCompute Desk {Get-AzureRmMlOpCluster, Get-AzureRmMlOpClusterKey…
Script 0.2.7 AzureRM.MarketplaceOrdering Desk {Get-AzureRmMarketplaceTerms, Set-AzureRmMarketpla…
Script 0.10.4 AzureRM.Media Desk {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmM…
Script 6.11.1 AzureRM.Network Desk {Add-AzureRmApplicationGatewayAuthenticationCertif…
Script 5.0.3 AzureRM.NotificationHubs Desk {Get-AzureRmNotificationHub, Get-AzureRmNotificati…
Script 5.0.6 AzureRM.OperationalInsights Desk {New-AzureRmOperationalInsightsAzureActivityLogDat…
Script 1.1.0 AzureRM.PolicyInsights Desk {Get-AzureRmPolicyEvent, Get-AzureRmPolicyState, G…
Script 4.1.10 AzureRM.PowerBIEmbedded Desk {Remove-AzureRmPowerBIWorkspaceCollection, Get-Azu…
Script 5.8.2 AzureRM.profile Desk {Disable-AzureRmDataCollection, Disable-AzureRmCon…
Script 4.1.9 AzureRM.RecoveryServices Desk {Get-AzureRmRecoveryServicesBackupProperty, Get-Az…
Script 4.5.2 AzureRM.RecoveryServices.Backup Desk {Backup-AzureRmRecoveryServicesBackupItem, Get-Azu…
Script 0.2.12 AzureRM.RecoveryServices.SiteRecov… Desk {Edit-AzureRmRecoveryServicesAsrRecoveryPlan, Get-…
Script 5.1.0 AzureRM.RedisCache Desk {Remove-AzureRmRedisCachePatchSchedule, New-AzureR…
Script 0.3.12 AzureRM.Relay Desk {New-AzureRmRelayNamespace, Get-AzureRmRelayNamesp…
Script 6.7.3 AzureRM.Resources Desk {Get-AzureRmProviderOperation, Remove-AzureRmRoleA…
Script 0.16.10 AzureRM.Scheduler Desk {Disable-AzureRmSchedulerJobCollection, Enable-Azu…
Script 0.6.13 AzureRM.ServiceBus Desk {New-AzureRmServiceBusNamespace, Get-AzureRmServic…
Script 0.3.15 AzureRM.ServiceFabric Desk {Add-AzureRmServiceFabricApplicationCertificate, A…
Script 1.0.0 AzureRM.SignalR Desk {New-AzureRmSignalR, Get-AzureRmSignalR, Get-Azure…
Script 4.12.1 AzureRM.Sql Desk {Get-AzureRmSqlDatabaseTransparentDataEncryption, …
Script 5.2.0 AzureRM.Storage Desk {Get-AzureRmStorageAccount, Get-AzureRmStorageAcco…
Script 4.0.10 AzureRM.StreamAnalytics Desk {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmSt…
Script 4.0.5 AzureRM.Tags Desk {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Script 4.1.3 AzureRM.TrafficManager Desk {Add-AzureRmTrafficManagerCustomHeaderToEndpoint, …
Script 4.0.5 AzureRM.UsageAggregates Desk Get-UsageAggregates
Script 5.2.0 AzureRM.Websites Desk {Get-AzureRmAppServicePlan, Set-AzureRmAppServiceP…
Directory: C:\program files\powershell\6\Modules
ModuleType Version Name PSEdition ExportedCommands
---------- ------- ---- --------- ----------------
Manifest 6.1.0.0 CimCmdlets Core {Get-CimAssociatedInstance, Get-CimClass, Get-CimI…
Manifest 1.2.2.0 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive}
Manifest 6.1.0.0 Microsoft.PowerShell.Diagnostics Core {Get-WinEvent, New-WinEvent}
Manifest 6.1.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript}
Manifest 6.1.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Clear-ItemProperty, J…
Manifest 6.1.0.0 Microsoft.PowerShell.Security Core {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credent…
Manifest 6.1.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Manifest 6.1.0.0 Microsoft.WSMan.Management Core {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WS…
Script 1.3.1 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, G…
Script 2.1.2 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find…
Script 0.0 PSDesiredStateConfiguration Desk {Test-ConflictingResources, Initialize-Configurati…
Script 6.1.0.0 PSDiagnostics Core {Disable-PSTrace, Disable-PSWSManCombinedTrace, Di…
Script 2.0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandle…
Binary 1.1.2 ThreadJob Desk Start-ThreadJob
Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules
ModuleType Version Name PSEdition ExportedCommands
---------- ------- ---- --------- ----------------
Manifest 1.0 Defender Core,Desk {Get-MpPreference, Set-MpPreference, Add-MpPrefere…
Debug output
Error output
HistoryId: 1
Message : Package 'Az.Aks' failed to be installed because: Value cannot be null.
StackTrace :
Exception : System.Exception
InvocationInfo : {Install-Package}
Line : $null = PackageManagement\Install-Package @PSBoundParameters
Position : At C:\program files\powershell\6\Modules\PowerShellGet\PSModule.psm1:9349 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 1
Message : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
StackTrace :
Exception : System.Exception
InvocationInfo : {Install-Package}
Line : $null = PackageManagement\Install-Package @PSBoundParameters
Position : At C:\program files\powershell\6\Modules\PowerShellGet\PSModule.psm1:9349 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 1