PowerShell / PowerShellGetv2

PowerShellGet is the Package Manager for PowerShell
https://www.PowerShellGallery.com
MIT License
430 stars 138 forks source link

Falsely throws exception as 'Administrator rights required' when running already as an admin - Install-Module #586

Open bganapa opened 4 years ago

bganapa commented 4 years ago

Steps to reproduce

This does not repro, sporadically happens in the CI run and i luckily got one repro

PS C:\Users\Administrator> Install-Module -Name Azurestack -Repository PSGallery -Verbose VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'. VERBOSE: Using the provider 'PowerShellGet' for searching packages. VERBOSE: Using the specified source names : 'PSGallery'. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azurestack'' for ''. VERBOSE: Total package yield:'1' for the specified package 'Azurestack'. VERBOSE: Performing the operation "Install-Module" on target "Version '1.8.0' of module 'AzureStack'". VERBOSE: The installation scope is specified to be 'AllUsers'. PackageManagement\Install-Package : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, and then try again, or install 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator). At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.3\PSModule.psm1:9685 char:34

PS C:\Users\Administrator> $Error[0].InvocationInfo | fl *

MyCommand : Install-Package BoundParameters : {} UnboundArguments : {} ScriptLineNumber : 9685 OffsetInLine : 34 HistoryId : 10 ScriptName : C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.3\PSModule.psm1 Line : $installedPackages = PackageManagement\Install-Package @PSBoundParameters

PositionMessage : At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.3\PSModule.psm1:9685 char:34

PS C:\Users\Administrator> $Error[0].ScriptStackTrace at Install-Module, C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.3\PSModule.psm1: line 9685 at , : line 1

PS C:\Users\Administrator>

> $PSVersionTable
PS C:\Users\Administrator> $PSVersionTable

Name                           Value                                                                                                                   
----                           -----                                                                                                                   
PSVersion                      5.1.17763.10070                                                                                                         
PSEdition                      Desktop                                                                                                                 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                 
BuildVersion                   10.0.17763.10070                                                                                                        
CLRVersion                     4.0.30319.42000                                                                                                         
WSManStackVersion              3.0                                                                                                                     
PSRemotingProtocolVersion      2.3                                                                                                                     
SerializationVersion           1.1.0.1   

```powershell
> 

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands                                     
---------- -------    ----                                ----------------                                     
Script     1.4.6      PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, G...
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, G...
Script     2.2.3      PowerShellGet                       {Find-Command, Find-DSCResource, Find-Module, Find...
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-...
PS C:\Users\Administrator>  Get-PackageProvider -ListAvailable

Name                     Version          DynamicOptions                                                                                               
----                     -------          --------------                                                                                               
msi                      3.0.0.0          AdditionalArguments                                                                                          
msu                      3.0.0.0                                                                                                                       
nuget                    2.8.5.206                                                                                                                     
NuGet                    3.0.0.1          Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersi...
PowerShellGet            2.2.3.0          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, All...
PowerShellGet            1.0.0.1                                                                                                                       
Programs                 3.0.0.0          IncludeWindowsInstaller, IncludeSystemComponent                                                              

PS C:\Users\Administrator> Get-Module

ModuleType Version    Name                                ExportedCommands                                                                             
---------- -------    ----                                ----------------                                                                             
Script     1.0.0.0    ISE                                 {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}                                          
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}                           
Manifest   3.0.0.0    Microsoft.PowerShell.Security       {ConvertFrom-SecureString, ConvertTo-SecureString, Get-Acl, Get-AuthenticodeSignature...}    
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Add-Member, Add-Type, Clear-Variable, Compare-Object...}                                    
Manifest   3.0.0.0    Microsoft.WSMan.Management          {Connect-WSMan, Disable-WSManCredSSP, Disconnect-WSMan, Enable-WSManCredSSP...}              
Script     1.4.6      PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}                    
Script     2.2.3      PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability...}                        
alerickson commented 4 years ago

So from here, could you run:

[bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")

to ensure the console is elevated. And then try running the original command again.

If that fails, could you then run: Install-Module -Name Azurestack -Repository PSGallery -Verbose -Debug -Scope CurrentUser

bganapa commented 4 years ago

image

The check returned True, but still failed with Admin rights are required. Installing at the the CurrentUser Scope went fine in that same session. Thanks for looking in to this. Again this issue is sporadic.

bganapa commented 4 years ago

@SydneyhSmith Now i hit the same error with PSCORE as well. What could help debug this issue?

image

SydneyhSmith commented 4 years ago

@bganapa is this issue still occurring sporadically or has it become a consistent issue?

bganapa commented 4 years ago

Still i dont have a consistent repro, since i do many things at a time. My guess would be a wrong error message is thrown for a scenario like 'when the module is already in use' @SydneyhSmith

alerickson commented 4 years ago

@bganapa in Core could you run the install cmdlet with -Scope CurrentUser -Verbose -Debug I'd like to see where exactly it's failing because you're right, it very well may be the wrong error getting thrown here.

keystroke commented 4 years ago
PS C:\Windows\system32> $ErrorActionPreference='Stop'

PS C:\Windows\system32> $DebugPreference='Continue'

PS C:\Windows\system32> $VerbosePreference='Continue'

PS C:\Windows\system32> Install-Module -Name AzureStack -Repository azrc -RequiredVersion 2.0.0-preview -AllowPrerelease -Scope AllUsers 
VERBOSE: Populating RepositorySourceLocation property for module PackageManagement.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.6\PackageManagement.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.6\PackageManagement.psd1'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.6\PackageManagement.format.ps1xml'.
VERBOSE: Populating RepositorySourceLocation property for module PackageManagement.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.6\PackageManagement.psm1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.6\fullclr\Microsoft.PackageManagement.dll'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.6\fullclr\Microsoft.PowerShell.PackageManagement.dll'.
VERBOSE: Importing cmdlet 'Find-Package'.
VERBOSE: Importing cmdlet 'Find-PackageProvider'.
VERBOSE: Importing cmdlet 'Get-Package'.
VERBOSE: Importing cmdlet 'Get-PackageProvider'.
VERBOSE: Importing cmdlet 'Get-PackageSource'.
VERBOSE: Importing cmdlet 'Import-PackageProvider'.
VERBOSE: Importing cmdlet 'Install-Package'.
VERBOSE: Importing cmdlet 'Install-PackageProvider'.
VERBOSE: Importing cmdlet 'Register-PackageSource'.
VERBOSE: Importing cmdlet 'Save-Package'.
VERBOSE: Importing cmdlet 'Set-PackageSource'.
VERBOSE: Importing cmdlet 'Uninstall-Package'.
VERBOSE: Importing cmdlet 'Unregister-PackageSource'.
VERBOSE: Exporting cmdlet 'Find-Package'.
VERBOSE: Exporting cmdlet 'Find-PackageProvider'.
VERBOSE: Exporting cmdlet 'Get-Package'.
VERBOSE: Exporting cmdlet 'Get-PackageProvider'.
VERBOSE: Exporting cmdlet 'Get-PackageSource'.
VERBOSE: Exporting cmdlet 'Import-PackageProvider'.
VERBOSE: Exporting cmdlet 'Install-Package'.
VERBOSE: Exporting cmdlet 'Install-PackageProvider'.
VERBOSE: Exporting cmdlet 'Register-PackageSource'.
VERBOSE: Exporting cmdlet 'Save-Package'.
VERBOSE: Exporting cmdlet 'Set-PackageSource'.
VERBOSE: Exporting cmdlet 'Uninstall-Package'.
VERBOSE: Exporting cmdlet 'Unregister-PackageSource'.
VERBOSE: Importing cmdlet 'Find-Package'.
VERBOSE: Importing cmdlet 'Find-PackageProvider'.
VERBOSE: Importing cmdlet 'Get-Package'.
VERBOSE: Importing cmdlet 'Get-PackageProvider'.
VERBOSE: Importing cmdlet 'Get-PackageSource'.
VERBOSE: Importing cmdlet 'Import-PackageProvider'.
VERBOSE: Importing cmdlet 'Install-Package'.
VERBOSE: Importing cmdlet 'Install-PackageProvider'.
VERBOSE: Importing cmdlet 'Register-PackageSource'.
VERBOSE: Importing cmdlet 'Save-Package'.
VERBOSE: Importing cmdlet 'Set-PackageSource'.
VERBOSE: Importing cmdlet 'Uninstall-Package'.
VERBOSE: Importing cmdlet 'Unregister-PackageSource'.
VERBOSE: Exporting function 'Find-Command'.
VERBOSE: Exporting function 'Find-DscResource'.
VERBOSE: Exporting function 'Find-Module'.
VERBOSE: Exporting function 'Find-RoleCapability'.
VERBOSE: Exporting function 'Find-Script'.
VERBOSE: Exporting function 'Get-CredsFromCredentialProvider'.
VERBOSE: Exporting function 'Get-InstalledModule'.
VERBOSE: Exporting function 'Get-InstalledScript'.
VERBOSE: Exporting function 'Get-PSRepository'.
VERBOSE: Exporting function 'Install-Module'.
VERBOSE: Exporting function 'Install-Script'.
VERBOSE: Exporting function 'New-ScriptFileInfo'.
VERBOSE: Exporting function 'Publish-Module'.
VERBOSE: Exporting function 'Publish-Script'.
VERBOSE: Exporting function 'Register-PSRepository'.
VERBOSE: Exporting function 'Save-Module'.
VERBOSE: Exporting function 'Save-Script'.
VERBOSE: Exporting function 'Set-PSRepository'.
VERBOSE: Exporting function 'Test-ScriptFileInfo'.
VERBOSE: Exporting function 'Uninstall-Module'.
VERBOSE: Exporting function 'Uninstall-Script'.
VERBOSE: Exporting function 'Unregister-PSRepository'.
VERBOSE: Exporting function 'Update-Module'.
VERBOSE: Exporting function 'Update-ModuleManifest'.
VERBOSE: Exporting function 'Update-Script'.
VERBOSE: Exporting function 'Update-ScriptFileInfo'.
VERBOSE: Exporting function 'Add-PackageSource'.
VERBOSE: Exporting function 'Download-Package'.
VERBOSE: Exporting function 'Find-Package'.
VERBOSE: Exporting function 'Get-DynamicOptions'.
VERBOSE: Exporting function 'Get-Feature'.
VERBOSE: Exporting function 'Get-InstalledPackage'.
VERBOSE: Exporting function 'Get-PackageProviderName'.
VERBOSE: Exporting function 'Initialize-Provider'.
VERBOSE: Exporting function 'Install-Package'.
VERBOSE: Exporting function 'Remove-PackageSource'.
VERBOSE: Exporting function 'Resolve-PackageSource'.
VERBOSE: Exporting function 'Uninstall-Package'.
VERBOSE: Exporting variable 'PSGetPath'.
VERBOSE: Exporting alias 'fimo'.
VERBOSE: Exporting alias 'inmo'.
VERBOSE: Exporting alias 'upmo'.
VERBOSE: Exporting alias 'pumo'.
VERBOSE: Exporting alias 'uimo'.
DEBUG: 00:00:00.0000001 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0000298 Verbose: False
DEBUG: 00:00:00.0000460 Name: azrc
DEBUG: 00:00:00.0000634 ErrorVariable: ev
DEBUG: 00:00:00.0007741 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0017028 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0099981 Yielding package source for azrc at location \\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc
DEBUG: 00:00:00.0111810 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0231253 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0231496 Verbose: False
DEBUG: 00:00:00.0231660 Name: azrc
DEBUG: 00:00:00.0231804 ErrorVariable: ev
DEBUG: 00:00:00.0238270 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0246826 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0267200 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0311712 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0311957 Verbose: False
DEBUG: 00:00:00.0312113 Name: azrc
DEBUG: 00:00:00.0312271 ErrorVariable: ev
DEBUG: 00:00:00.0317682 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0326166 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0349323 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0723294 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0737743 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0750457 ProviderName: PowerShellGet
DEBUG: 00:00:00.0763089 Verbose: False
DEBUG: 00:00:00.0775427 Name: azrc
DEBUG: 00:00:00.0787658 ErrorVariable: ev
DEBUG: 00:00:00.0801788 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0815683 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0851076 Yielding package source for azrc at location \\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc
DEBUG: 00:00:00.0869552 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0935826 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0948361 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0960843 ProviderName: PowerShellGet
DEBUG: 00:00:00.0973121 Verbose: False
DEBUG: 00:00:00.0985194 Name: azrc
DEBUG: 00:00:00.0997529 ErrorVariable: ev
DEBUG: 00:00:00.1009786 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.1025605 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.1063196 Yielding package source for azrc at location \\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc
DEBUG: 00:00:00.1097175 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000002 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0000506 Source: azrc
DEBUG: 00:00:00.0000779 Name: AzureStack
DEBUG: 00:00:00.0001053 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.0017629 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0026759 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0050338 Yielding package source for azrc at location \\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc
DEBUG: 00:00:00.0062432 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0100155 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0100409 Source: azrc
DEBUG: 00:00:00.0100661 Name: AzureStack
DEBUG: 00:00:00.0100859 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.0106232 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0114334 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0125192 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0179031 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0179282 Source: azrc
DEBUG: 00:00:00.0179446 Name: AzureStack
DEBUG: 00:00:00.0179618 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.0184936 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0192708 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0213641 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0247757 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0247981 Source: azrc
DEBUG: 00:00:00.0248145 Name: AzureStack
DEBUG: 00:00:00.0248301 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.0253576 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0341880 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0389651 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0444697 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0444954 Source: azrc
DEBUG: 00:00:00.0445123 Name: AzureStack
DEBUG: 00:00:00.0445308 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.0450607 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0458394 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0492034 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0936027 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0948265 ProviderName: PowerShellGet
DEBUG: 00:00:00.0960738 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.1006605 Source: azrc
DEBUG: 00:00:00.1066371 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.1095019 Scope: AllUsers
DEBUG: 00:00:00.1107525 Type: Module
DEBUG: 00:00:00.1119805 AllowPrereleaseVersions: True
DEBUG: 00:00:00.1132073 Name: AzureStack
DEBUG: 00:00:00.1145766 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.1159764 In PowerShellGet Provider - 'Resolve-PackageSource'.
VERBOSE: Repository details, Name = 'azrc', Location = '\\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc'; IsTrusted = 'True'; IsRegistered = 'True'.
DEBUG: 00:00:00.1201668 Yielding package source for azrc at location \\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc
DEBUG: 00:00:00.1219911 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.1221054 Calling SearchForPackages. Name='AzureStack'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:00.1232147 PackageProvider::FindPackage with name AzureStack
DEBUG: 00:00:00.1289809 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.1357289 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:00.1372559 ProviderName: PowerShellGet
DEBUG: 00:00:00.1384983 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.1397024 Source: azrc
DEBUG: 00:00:00.1409069 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.1421055 Scope: AllUsers
DEBUG: 00:00:00.1434318 Type: Module
DEBUG: 00:00:00.1446690 AllowPrereleaseVersions: True
DEBUG: 00:00:00.1460124 Name: AzureStack
DEBUG: 00:00:00.1475540 INVOKING PowerShell Fn Find-Package with args System.String[], 2.0.0-preview, ,  that has length 4
DEBUG: 00:00:00.1488893 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:00.1540959 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:00.1554281 OPTION: RequiredVersion => 2.0.0-preview
DEBUG: 00:00:00.1566880 OPTION: Source => azrc
DEBUG: 00:00:00.1579240 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.1592718 OPTION: Scope => AllUsers
DEBUG: 00:00:00.1605829 OPTION: Type => Module
DEBUG: 00:00:00.1685631 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:00.1714367 OPTION: Name => AzureStack
VERBOSE: Using the specified source names : 'azrc'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is '\\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:00.2007771 PackageProvider::FindPackage with name AzureStack
DEBUG: 00:00:00.2059408 Calling 'NuGet'::'FindPackage' - name='AzureStack', requiredVersion='2.0.0-preview',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:00.2110199 Iterating 'AzureStack'.
DEBUG: 00:00:00.2134556 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:00.2157106 Calling 'NuGetRequest'::'GetPackageById', 'AzureStack'.
DEBUG: 00:00:00.2177437 Calling 'LocalPackageRepository'::'FindPackagesById', 'AzureStack'.
DEBUG: 00:00:00.2195957 Calling 'LocalPackageRepository'::'GetPackages', 'AzureStack'.
DEBUG: 00:00:00.2280427 Calling 'LocalPackageRepository'::'OpenPackage', '\\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc\AzureStack.2.0.0-preview.nupkg'.
DEBUG: 00:00:00.2597151 Calling 'LocalPackageRepository'::'GetPackages', 'AzureStack'.
DEBUG: 00:00:00.2676412 Calling 'LocalPackageRepository'::'OpenPackage', '\\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc\AzureStack.2.0.0-preview.nupkg'.
DEBUG: 00:00:00.2890175 Calling 'LocalPackageRepository'::'GetPackages', 'AzureStack'.
VERBOSE: Total package yield:'1' for the specified package 'AzureStack'.
DEBUG: 00:00:00.3002483 Completed iterating for 'AzureStack'.
DEBUG: 00:00:00.3208721 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:00.3309339 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:00.3321680 ProviderName: PowerShellGet
DEBUG: 00:00:00.3334312 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:00.3346843 Source: azrc
DEBUG: 00:00:00.3359054 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.3371861 Scope: AllUsers
DEBUG: 00:00:00.3383948 Type: Module
DEBUG: 00:00:00.3396026 AllowPrereleaseVersions: True
DEBUG: 00:00:00.3408188 Name: AzureStack
DEBUG: 00:00:00.3420549 INVOKING PowerShell Fn Get-InstalledPackage with args AzureStack, 2.0.0-preview, ,  that has length 4
DEBUG: 00:00:00.3436893 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:00.3447944 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:00.3462010 OPTION: RequiredVersion => 2.0.0-preview
DEBUG: 00:00:00.3474616 OPTION: Source => azrc
DEBUG: 00:00:00.3487294 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.3560293 OPTION: Scope => AllUsers
DEBUG: 00:00:00.3593886 OPTION: Type => Module
DEBUG: 00:00:00.3606529 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:00.3620558 OPTION: Name => AzureStack
DEBUG: 00:00:01.0722072 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null.
DEBUG: 00:00:01.0735866 Done calling powershell «Get-InstalledPackage» «PSModule»
DEBUG: 00:00:01.0782747 Calling New() : MethodName = 'InstallPackage'
DEBUG: 00:00:01.0793977 ProviderName: PowerShellGet
DEBUG: 00:00:01.0805846 RequiredVersion: 2.0.0-preview
DEBUG: 00:00:01.0817537 Source: azrc
DEBUG: 00:00:01.0830272 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:01.0842518 Scope: AllUsers
DEBUG: 00:00:01.0854641 Type: Module
DEBUG: 00:00:01.0866912 AllowPrereleaseVersions: True
DEBUG: 00:00:01.0879054 Name: AzureStack
DEBUG: 00:00:01.0891318 INVOKING PowerShell Fn Install-Package with args NuGet|AzureStack|2.0.0-preview|\\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc|Module that has length 1
DEBUG: 00:00:01.0903573 In PowerShellGet Provider - 'Install-Package'.
DEBUG: 00:00:01.0916083 In PowerShellGet Provider - 'Install-PackageUtility'.
DEBUG: 00:00:01.0960047 The FastPackageReference is 'NuGet|AzureStack|2.0.0-preview|\\azlabsscratch.redmond.corp.microsoft.com\scratch\bganapa\Az-Rc|Module'.
DEBUG: 00:00:01.0972760 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:01.0985846 OPTION: RequiredVersion => 2.0.0-preview
DEBUG: 00:00:01.0999594 OPTION: Source => azrc
DEBUG: 00:00:01.1011962 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:01.1024239 OPTION: Scope => AllUsers
DEBUG: 00:00:01.1036669 OPTION: Type => Module
DEBUG: 00:00:01.1048918 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:01.1061259 OPTION: Name => AzureStack
VERBOSE: The installation scope is specified to be 'AllUsers'.
DEBUG: 00:00:01.1105354 PowerShell Script 'PSModule' Function 'Install-Package' returns null.
PackageManagement\Install-Package : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator 
rights, and then try again, or install 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell 
session with elevated rights (Run as Administrator).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.3\PSModule.psm1:9685 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : InstallModuleAdminPrivilegeRequiredForAllUsersScope,Install-PackageUtility,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Windows\system32> whoami
hc1n25r2237\administrator

PS C:\Windows\system32> [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")
True

PS C:\Windows\system32> $Error[0] | fl * -Force

ErrorRecord                 : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, 
                              and then try again, or install 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try running the 
                              Windows PowerShell session with elevated rights (Run as Administrator).
WasThrownFromThrowStatement : False
Message                     : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Administrator rights are required to install modules 
                              in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, and then try again, or install 
                              'C:\Users\Administrator\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with 
                              elevated rights (Run as Administrator).
Data                        : {System.Management.Automation.Interpreter.InterpretedFrameInfo}
InnerException              : 
TargetSite                  : Void CheckActionPreference(System.Management.Automation.Language.FunctionContext, System.Exception)
StackTrace                  :    at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
                                 at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
                                 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
                                 at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
                                 at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
                                 at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
                                 at System.Management.Automation.DlrScriptCommandProcessor.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
                              --- End of stack trace from previous location where exception was thrown ---
                                 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                                 at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
                                 at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()
                                 at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()
HelpLink                    : 
Source                      : System.Management.Automation
HResult                     : -2146233087
alerickson commented 4 years ago

Thanks @keystroke! Could you try running Install-Module -Name AzureStack -Repository azrc -RequiredVersion 2.0.0-preview -AllowPrerelease -Scope CurrentUser in PowerShell Core as well?

keystroke commented 4 years ago

@alerickson Sorry, above was not for PowerShell core, just normal PowerShell. Changing the scope to "CurrentUser" functions as a workaround for me on full PowerShell.

bganapa commented 4 years ago

@alerickson Can you please update the issue here with your findings?

alerickson commented 4 years ago

I noticed that the issue occurred to modules that have Az.Accounts as a dependency. Whenever the Az.Accounts module was being used by the process but also being checked by PowerShellGet to see if it’s installed on the system, the error would get thrown.

When this error occurs you can unload the Az.Accounts module or restart the powershell console.

If anyone’s experiencing this with a module that doesn’t take Az.Accounts as a dependency please let me know so I can investigate that as well.

deoradh commented 4 years ago

I was seeing this with 7.1.0p3 and install-module posh-git. Turned out it was protected folder access. Allowing pwsh through the block resolved the issue for me.

cblackuk commented 4 years ago

Still the same issue on 2.0.1-preview on W2016 on PS5.1.

Absolutely no issues on W2019 PS5.1.

PS C:\Users\Administrator> Install-Module -Name Az.Resources -RequiredVersion 0.10.0-preview -AllowPrerelease -Verbose -Force
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'Az.Resources'.
VERBOSE: Performing the operation "Install-Module" on target "Version '0.10.0-preview' of module 'Az.Resources'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
PackageManagement\Install-Package : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, and then try again, or install
'C:\Users\Administrator\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9709 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : InstallModuleAdminPrivilegeRequiredForAllUsersScope,Install-PackageUtility,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Users\Administrator> Install-Module -Name Az.Storage -RequiredVersion 0.10.0-preview -AllowPrerelease -Verbose -Force
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'Az.Storage'.
VERBOSE: Performing the operation "Install-Module" on target "Version '0.10.0-preview' of module 'Az.Storage'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
PackageManagement\Install-Package : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, and then try again, or install
'C:\Users\Administrator\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9709 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : InstallModuleAdminPrivilegeRequiredForAllUsersScope,Install-PackageUtility,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Users\Administrator> Install-Module -Name Az.Resources -RequiredVersion 0.10.0-preview -AllowPrerelease -Verbose -Force -Scope CurrentUser
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'Az.Resources'.
VERBOSE: Performing the operation "Install-Module" on target "Version '0.10.0-preview' of module 'Az.Resources'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Az.Resources' with version '0.10.0-preview' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''.
VERBOSE: InstallPackage' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\2065869445'
VERBOSE: DownloadPackage' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\2065869445\Az.Accounts.2.0.1-preview\Az.Accounts.2.0.1-preview.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'.
VERBOSE: Completed downloading 'Az.Accounts'.
VERBOSE: Hash for package 'Az.Accounts' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\2065869445'
VERBOSE: InstallPackage' - name='Az.Resources', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\2065869445'
VERBOSE: DownloadPackage' - name='Az.Resources', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\2065869445\Az.Resources.0.10.0-preview\Az.Resources.0.10.0-preview.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Resources/0.10.0-preview'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Resources/0.10.0-preview'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Resources/0.10.0-preview'.
VERBOSE: Completed downloading 'Az.Resources'.
VERBOSE: Hash for package 'Az.Resources' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Az.Resources', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\2065869445'
VERBOSE: Validating the 'Az.Accounts' module contents under 'C:\Users\Administrator\AppData\Local\Temp\2065869445\Az.Accounts.2.0.1-preview' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\Administrator\AppData\Local\Temp\2065869445\Az.Accounts.2.0.1-preview'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.Accounts'.
VERBOSE: Catalog file 'Az.Accounts.cat' is not found in the contents of the module 'Az.Accounts' being installed.
VERBOSE: Valid authenticode signature found in the file 'Az.Accounts.psd1' for the module 'Az.Accounts'.
VERBOSE: For publisher validation, current module 'Az.Accounts' with version '2.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.Accounts' with version '2.0.1' under 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules\Az.Accounts\2.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: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Az.Accounts' with version '2.0.1' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'
of the previously-installed module 'Az.Accounts' with version '2.0.1'.
VERBOSE: Checking for possible command collisions for the module 'Az.Accounts' commands.
VERBOSE: Installing the dependency module 'Az.Accounts' with version '2.0.1-preview' for the module 'Az.Resources'.
PackageManagement\Install-Package : Administrator rights are required to install or update. Log on to the computer with an account that has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the Windows
PowerShell session with elevated rights (Run as Administrator).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9709 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (System.Collections.ArrayList:String) [Install-Package], Exception
    + FullyQualifiedErrorId : AdministratorRightsNeededOrSpecifyCurrentUserScope,Copy-Module,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Users\Administrator> Install-Module -Name Az.Storage -RequiredVersion 0.10.0-preview -AllowPrerelease -Verbose -Force -Scope CurrentUser
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'Az.Storage'.
VERBOSE: Performing the operation "Install-Module" on target "Version '0.10.0-preview' of module 'Az.Storage'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Az.Storage' with version '0.10.0-preview' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''.
VERBOSE: InstallPackage' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1066523559'
VERBOSE: DownloadPackage' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1066523559\Az.Accounts.2.0.1-preview\Az.Accounts.2.0.1-preview.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'.
VERBOSE: Completed downloading 'Az.Accounts'.
VERBOSE: Hash for package 'Az.Accounts' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1066523559'
VERBOSE: InstallPackage' - name='Az.Storage', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1066523559'
VERBOSE: DownloadPackage' - name='Az.Storage', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1066523559\Az.Storage.0.10.0-preview\Az.Storage.0.10.0-preview.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Storage/0.10.0-preview'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Storage/0.10.0-preview'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Storage/0.10.0-preview'.
VERBOSE: Completed downloading 'Az.Storage'.
VERBOSE: Hash for package 'Az.Storage' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Az.Storage', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1066523559'
VERBOSE: Validating the 'Az.Accounts' module contents under 'C:\Users\Administrator\AppData\Local\Temp\1066523559\Az.Accounts.2.0.1-preview' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\Administrator\AppData\Local\Temp\1066523559\Az.Accounts.2.0.1-preview'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.Accounts'.
VERBOSE: Catalog file 'Az.Accounts.cat' is not found in the contents of the module 'Az.Accounts' being installed.
VERBOSE: Valid authenticode signature found in the file 'Az.Accounts.psd1' for the module 'Az.Accounts'.
VERBOSE: Checking for possible command collisions for the module 'Az.Accounts' commands.
VERBOSE: Installing the dependency module 'Az.Accounts' with version '2.0.1-preview' for the module 'Az.Storage'.
PackageManagement\Install-Package : Administrator rights are required to install or update. Log on to the computer with an account that has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the Windows
PowerShell session with elevated rights (Run as Administrator).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9709 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (System.Collections.ArrayList:String) [Install-Package], Exception
    + FullyQualifiedErrorId : AdministratorRightsNeededOrSpecifyCurrentUserScope,Copy-Module,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Users\Administrator> Install-Module -Name AzureStack -RequiredVersion 2.0.1-preview -AllowPrerelease -Scope CurrentUser -Force -Verbose
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureStack'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'AzureStack'.
VERBOSE: Performing the operation "Install-Module" on target "Version '2.0.1-preview' of module 'AzureStack'".
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules'.
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'AzureStack' with version '2.0.1-preview' from the repository 'https://www.powershellgallery.com/api/v2'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureStack'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Backup.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Azurebridge.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Commerce.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Compute.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Fabric.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Deployment.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Gallery.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Infrastructureinsights.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Keyvault.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Network.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Storage.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Subscriptions'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Subscriptions.Admin'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Azs.Update.Admin'' for ''.
VERBOSE: InstallPackage' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570'
VERBOSE: DownloadPackage' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570\Az.Accounts.2.0.1-preview\Az.Accounts.2.0.1-preview.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.0.1-preview'.
VERBOSE: Completed downloading 'Az.Accounts'.
VERBOSE: Hash for package 'Az.Accounts' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Az.Accounts', version='2.0.1-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570'
VERBOSE: InstallPackage' - name='Az.Resources', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570'
VERBOSE: DownloadPackage' - name='Az.Resources', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570\Az.Resources.0.10.0-preview\Az.Resources.0.10.0-preview.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Resources/0.10.0-preview'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Resources/0.10.0-preview'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Resources/0.10.0-preview'.
VERBOSE: Completed downloading 'Az.Resources'.
VERBOSE: Hash for package 'Az.Resources' does not match hash provided from the server.
VERBOSE: InstallPackageLocal' - name='Az.Resources', version='0.10.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570'
VERBOSE: Validating the 'Az.Accounts' module contents under 'C:\Users\Administrator\AppData\Local\Temp\1621976570\Az.Accounts.2.0.1-preview' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\Administrator\AppData\Local\Temp\1621976570\Az.Accounts.2.0.1-preview'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.Accounts'.
VERBOSE: Catalog file 'Az.Accounts.cat' is not found in the contents of the module 'Az.Accounts' being installed.
VERBOSE: InstallPackage' - name='Azs.Backup.Admin', version='0.9.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570'
VERBOSE: Valid authenticode signature found in the file 'Az.Accounts.psd1' for the module 'Az.Accounts'.
VERBOSE: DownloadPackage' - name='Azs.Backup.Admin', version='0.9.0-preview',destination='C:\Users\Administrator\AppData\Local\Temp\1621976570\Azs.Backup.Admin.0.9.0-preview\Azs.Backup.Admin.0.9.0-preview.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Azs.Backup.Admin/0.9.0-preview'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Azs.Backup.Admin/0.9.0-preview'.
VERBOSE: Checking for possible command collisions for the module 'Az.Accounts' commands.
VERBOSE: Installing the dependency module 'Az.Accounts' with version '2.0.1-preview' for the module 'AzureStack'.
PackageManagement\Install-Package : Administrator rights are required to install or update. Log on to the computer with an account that has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the Windows PowerShell session with elevated rights (Run as Administrator).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9709 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (System.Collections.ArrayList:String) [Install-Package], Exception
    + FullyQualifiedErrorId : AdministratorRightsNeededOrSpecifyCurrentUserScope,Copy-Module,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Users\Administrator> [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")
True
PS C:\Users\Administrator> Install-Module -Name AzureStack -RequiredVersion 2.0.1-preview -AllowPrerelease -Force -Verbose
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='AzureStack'' for ''.
VERBOSE: Total package yield:'1' for the specified package 'AzureStack'.
VERBOSE: Performing the operation "Install-Module" on target "Version '2.0.1-preview' of module 'AzureStack'".
VERBOSE: The installation scope is specified to be 'AllUsers'.
PackageManagement\Install-Package : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, and then try again, or install 'C:\Users\Administrator\Documents\WindowsPowerShell\Modules' by adding "-Scope CurrentUser" to your command. You can also
try running the Windows PowerShell session with elevated rights (Run as Administrator).
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.4.1\PSModule.psm1:9709 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : InstallModuleAdminPrivilegeRequiredForAllUsersScope,Install-PackageUtility,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS C:\Users\Administrator> [environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.14393.0 Microsoft Windows NT 10.0.14393.0

PS C:\Users\Administrator> Get-Module

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Script     1.4.7      PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}
Script     2.2.4.1    PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability...}
Script     1.2        PSReadline                          {Get-PSReadlineKeyHandler, Get-PSReadlineOption, Remove-PSReadlineKeyHandler, Set-PSReadlineKeyHandler...}

PS C:\Users\Administrator> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.14393.3471
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.3471
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

image

For comparison sake W2019:

PS C:\Users\adminuser> Install-Module -Name Az.BootStrapper -Force -AllowPrerelease; Install-AzProfile -Profile 2019-03-01-hybrid -Force -Verbose; Install-Module -Name AzureStack -RequiredVersion 2.0.1-preview -AllowPrerelease -Force
VERBOSE: Updating profiles
VERBOSE: GET https://azureprofile.azureedge.net/powershellcore/azprofilemap.json with 0-byte payload
VERBOSE: received 945-byte response of content type application/json
VERBOSE: Checking if there is a potential conflict for module installation
VERBOSE: Getting the version of Az from 2019-03-01-hybrid
VERBOSE: Performing the operation "Installing Module Az version: 0.10.0-preview" on target "Az".
VERBOSE: Installing module Az
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "No"): a
PS C:\Users\adminuser> Get-Module Az* -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.1      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script     0.10.0     Az.Billing                          Get-UsageAggregates
Script     0.1.0      Az.BootStrapper                     {Update-AzProfile, Uninstall-AzProfile, Install-AzProfile, Use-AzProfile...}
Script     0.10.0     Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice...}
Script     0.10.0     Az.Dns                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...}
Script     1.4.3      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}
Script     0.10.0     Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}
Script     0.10.0     Az.KeyVault                         {Add-AzKeyVaultCertificate, Set-AzKeyVaultCertificateAttribute, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...}
Script     1.6.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script     0.10.0     Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicationGatewayAuthenticationCertificate...}
Script     0.10.0     Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script     0.10.0     Az.Storage                          {Get-AzStorageTableStoredAccessPolicy, Get-AzStorageTable, New-AzStorageTableSASToken, New-AzStorageTableStoredAccessPolicy...}
Script     0.10.0     Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}
Script     0.9.1      Azs.Azurebridge.Admin               {Get-AzsAzureBridgeActivation, Get-AzsAzureBridgeDownloadedProduct, Get-AzsAzureBridgeProduct, Invoke-AzsAzureBridgeProductDownload...}
Script     0.9.0      Azs.Backup.Admin                    {Get-AzsBackup, Get-AzsBackupConfiguration, Restore-AzsBackup, Set-AzsBackupConfiguration...}
Script     0.9.0      Azs.Commerce.Admin                  Get-AzsSubscriberUsage
Script     0.9.0      Azs.Compute.Admin                   {Add-AzsPlatformImage, Add-AzsVMExtension, Get-AzsComputeQuota, Get-AzsDisk...}
Script     0.9.0      Azs.Deployment.Admin                {New-AzsProductPackage, Invoke-AzsResourceManager, New-AzsFileContainer, Get-AzsResourceManagerAccessToken...}
Script     0.9.0      Azs.Fabric.Admin                    {Add-AzsScaleUnitNode, Disable-AzsScaleUnitNode, Enable-AzsScaleUnitNode, Get-AzsDrive...}
Script     0.9.0      Azs.Gallery.Admin                   {Add-AzsGalleryItem, Get-AzsGalleryItem, Remove-AzsGalleryItem}
Script     0.9.1      Azs.Infrastructureinsights.Admin    {Close-AzsAlert, Get-AzsAlert, Get-AzsRegionHealth, Get-AzsRegistrationHealth...}
Script     0.9.1      Azs.Keyvault.Admin                  Get-AzsKeyvaultQuota
Script     0.9.0      Azs.Network.Admin                   {Get-AzsLoadBalancer, Get-AzsNetworkAdminOverview, Get-AzsNetworkQuota, Get-AzsPublicIPAddress...}
Script     0.9.0      Azs.Storage.Admin                   {Get-AzsStorageAccount, Get-AzsStorageAcquisition, Get-AzsStorageQuota, Get-AzsStorageSettings...}
Script     0.9.0      Azs.Subscriptions                   {Get-AzsDelegatedProviderOffer, Get-AzsOffer, Get-AzsSubscription, New-AzsSubscription...}
Script     0.9.0      Azs.Subscriptions.Admin             {Add-AzsPlanToOffer, Get-AzsAcquiredPlan, Get-AzsAdminManagedOffer, Get-AzsDelegatedProvider...}
Script     0.9.0      Azs.Update.Admin                    {Get-AzsUpdate, Get-AzsUpdateLocation, Get-AzsUpdateRun, Install-AzsUpdate...}
Script     0.0.0.10   AzureAD.Standard.Preview
Script     2.0.1      AzureStack

PS C:\Users\adminuser> get-module

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     0.1.0      Az.BootStrapper                     {Get-AzApiProfile, Get-AzModule, Get-ModuleVersion, Install-AzProfile...}
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Content...}
Manifest   3.0.0.0    Microsoft.PowerShell.Security       {ConvertFrom-SecureString, ConvertTo-SecureString, Get-Acl, Get-AuthenticodeSignature...}
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Manifest   1.0.0.0    MsDtc                               {Complete-DtcDiagnosticTransaction, Join-DtcDiagnosticResourceManager, New-DtcDiagnosticTransaction, Receive-DtcDiagnosticTransaction...}
Script     1.4.7      PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}
Script     0.2.0      PowerShellEditorServices.Commands   {Clear-Host, ConvertFrom-ScriptExtent, ConvertTo-ScriptExtent, Find-Ast...}
Binary     0.2.0      PowerShellEditorServices.VSCode     {Close-VSCodeHtmlContentView, New-VSCodeHtmlContentView, Set-VSCodeHtmlContentView, Show-VSCodeHtmlContentView...}
Script     2.2.4.1    PowerShellGet                       {Find-Command, Find-DscResource, Find-Module, Find-RoleCapability...}
Script     2.0.2      PSReadLine                          {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PSReadLineKeyHandler, Set-PSReadLineKeyHandler...}

PS C:\Users\adminuser> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.17763.1007
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.1007
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PS C:\Users\adminuser> [environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.17763.0 Microsoft Windows NT 10.0.17763.0
robquinn commented 4 years ago

I was seeing this with 7.1.0p3 and install-module posh-git. Turned out it was protected folder access. Allowing pwsh through the block resolved the issue for me.

This also resolved the issue for me. Specifically, these were the steps I took for any others wondering:

  1. Click Start and search for "Windows Security"
  2. Click "Virus & Threat Protection" in the left side-menu
  3. Scroll down to the middle of the page, where it says "Virus & Threat Protection Settings", and click "Manage Settings"
  4. Again, Scroll down to the middle of the page, where it says "Controlled Folder Access", and click "Manage Controlled Folder Access"
  5. Under "Controlled Folder Access", if it is "Off", switch it to "On"
  6. Then attempt to Install-Module again
  7. You should get a notification from the privacy center, I forget exactly what it says, but it talks about a block due to the "Controlled Folder Access" you just turned on, you want to click this notification and it will take you to the block. If you don't get a notification, click on "Block History", right below the switch when you turned on "Controlled Folder Access" in step 5.
  8. You should now see "Protection History". Click "Filters > Blocked Actions" and make sure these items are checked:
    • Blocked Folder Access
    • Blocked Items
    • Rule-Based Block
  9. Now you should be able to see the "block" preventing you from installing the module. Click on it and it should give you an "actions" link that will allow you to remove the block.
cblackuk commented 4 years ago

Wish I could do that, but no such thing on Win Server 2016... at least not that I can see...

bganapa commented 4 years ago

In case of AzureStack and AzureStack Specific Az modules, The issue happens when the Az.Accounts module is already loaded in the powershell session and then another module that has az.accounts module is being installed. The error message is completely misleading.. The workaround is to open a new session and install the module from there. @alerickson has a fix queued up for this issue

cblackuk commented 4 years ago

Sadly that is not really true either as I can replicate it on brand new session and even inside W2016 Core docker containers. But I agree that it is the Az.Accounts that might be causing it as the install loads this module first and then it all breaks.

As you can see here: image

VaughanJ commented 3 years ago

We saw the same issue when we upgraded from Windows 2012 r2 to Windows 2019.

We have a slightly different setup.

However the error is exactly the same that "Administrator rights required" when we are running as Admin and the error was sporadic too.

Unfortunately we couldn't get to the bottom of the issue and had to role back to Win2012 r2.

@robquinn I will try your suggestion next time we upgrade to Win2019 again.

cyungmann commented 3 years ago

Running into the same issue, but neither disabling controlled folder access nor adding an exception seemed to have any effect...

thered121 commented 3 years ago

Getting the same error, tried installing the Az.Accounts module specifically and get

`Install-Module -Name Az.Accounts -AllowClobber -Force -Debug DEBUG: 00:00:00.0000003 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0000545 Name: Az.Accounts DEBUG: 00:00:00.0000714 Force: True DEBUG: 00:00:00.0000858 Debug: True DEBUG: 00:00:00.0037429 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1 DEBUG: 00:00:00.0093563 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0347027 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.0529638 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0530173 Name: Az.Accounts DEBUG: 00:00:00.0530343 Force: True DEBUG: 00:00:00.0530490 Debug: True DEBUG: 00:00:00.0562818 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1 DEBUG: 00:00:00.0615087 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0827770 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.1009677 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.1010174 Name: Az.Accounts DEBUG: 00:00:00.1010341 Force: True DEBUG: 00:00:00.1010489 Debug: True DEBUG: 00:00:00.1042496 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1 DEBUG: 00:00:00.1093314 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.1298202 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.1486637 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.1487189 Name: Az.Accounts DEBUG: 00:00:00.1487360 Force: True DEBUG: 00:00:00.1487578 Debug: True DEBUG: 00:00:00.1519723 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1 DEBUG: 00:00:00.1570977 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.1779006 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.1971538 Calling SearchForPackages. Name='Az.Accounts' VERBOSE: Using the provider 'PowerShellGet' for searching packages.

Confirm Continue with this operation? [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A DEBUG: 00:00:00.1981654 PackageProvider::FindPackage with name Az.Accounts DEBUG: 00:00:00.2008910 Calling SearchForPackages After Select 1 DEBUG: 00:00:02.2260968 Calling New() : MethodName = 'FindPackage' DEBUG: 00:00:02.2269251 ProviderName: PowerShellGet DEBUG: 00:00:02.2275687 Name: Az.Accounts DEBUG: 00:00:02.2282326 Scope: CurrentUser DEBUG: 00:00:02.2288478 Debug: True DEBUG: 00:00:02.2296567 AllowClobber: True DEBUG: 00:00:02.2303749 Type: Module DEBUG: 00:00:02.2310748 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:02.2317990 Force: True DEBUG: 00:00:02.2353391 INVOKING PowerShell Fn Find-Package with args System.String[], , , that has length 4 DEBUG: 00:00:02.2408821 In PowerShellGet Provider - 'Find-Package'. DEBUG: 00:00:02.2417871 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:02.2424127 OPTION: Name => Az.Accounts DEBUG: 00:00:02.2430029 OPTION: Scope => CurrentUser DEBUG: 00:00:02.2435860 OPTION: Debug => True DEBUG: 00:00:02.2441674 OPTION: AllowClobber => True DEBUG: 00:00:02.2447476 OPTION: Type => Module DEBUG: 00:00:02.2453243 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:02.2459226 OPTION: Force => True VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'. DEBUG: 00:00:02.2527630 PackageProvider::FindPackage with name Az.Accounts DEBUG: 00:00:02.2613626 Calling 'NuGet'::'FindPackage' - name='Az.Accounts', requiredVersion='',minimumVersion='', maximumVersion='''. DEBUG: 00:00:02.2624124 Iterating 'Az.Accounts'. DEBUG: 00:00:02.2633671 There are '3' registered sources in 'NuGet' provider. DEBUG: 00:00:02.2643308 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:02.2652897 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:02.2663398 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:02.2672793 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:02.2685875 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Accounts'. DEBUG: 00:00:02.2695174 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:02.2712783 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:04.0546938 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:04.0596830 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:04.1401408 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:04.1518221 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:04.1519576 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:04.1521466 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:04.1523075 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:04.5363451 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:04.5374846 '0' packages received in the last request. DEBUG: 00:00:04.5487765 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:04.5498846 '0' packages received in the last request. DEBUG: 00:00:04.7673131 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:04.7685724 '0' packages received in the last request. DEBUG: 00:00:04.8092479 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:04.8104108 '3' packages received in the last request. VERBOSE: Total package yield:'1' for the specified package 'Az.Accounts'. DEBUG: 00:00:04.8124573 Completed iterating for 'Az.Accounts'. DEBUG: 00:00:04.8292188 Done calling powershell «Find-Package» «PSModule» DEBUG: 00:00:04.8455187 Calling New() : MethodName = 'GetInstalledPackages' DEBUG: 00:00:04.8462474 ProviderName: PowerShellGet DEBUG: 00:00:04.8468582 Name: Az.Accounts DEBUG: 00:00:04.8475078 Scope: CurrentUser DEBUG: 00:00:04.8481942 Debug: True DEBUG: 00:00:04.8488618 AllowClobber: True DEBUG: 00:00:04.8494532 Type: Module DEBUG: 00:00:04.8500293 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:04.8506320 Force: True DEBUG: 00:00:04.8551518 INVOKING PowerShell Fn Get-InstalledPackage with args Az.Accounts, 2.2.4, , that has length 4 DEBUG: 00:00:04.8603568 In PowerShellGet Provider - 'Get-InstalledPackage'. DEBUG: 00:00:04.8612605 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:04.8619965 OPTION: Name => Az.Accounts DEBUG: 00:00:04.8625984 OPTION: Scope => CurrentUser DEBUG: 00:00:04.8631932 OPTION: Debug => True DEBUG: 00:00:04.8637737 OPTION: AllowClobber => True DEBUG: 00:00:04.8673085 OPTION: Type => Module DEBUG: 00:00:04.8679956 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:04.8686879 OPTION: Force => True DEBUG: 00:00:05.7324563 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm Are you sure you want to perform this action? Performing the operation "Install-Module" on target "Version '2.2.4' of module 'Az.Accounts'". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A DEBUG: 00:00:07.6241166 Calling New() : MethodName = 'InstallPackage' DEBUG: 00:00:07.6249626 ProviderName: PowerShellGet DEBUG: 00:00:07.6256364 Name: Az.Accounts DEBUG: 00:00:07.6262513 Scope: CurrentUser DEBUG: 00:00:07.6268625 Debug: True DEBUG: 00:00:07.6274774 AllowClobber: True DEBUG: 00:00:07.6281559 Type: Module DEBUG: 00:00:07.6288306 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:07.6294575 Force: True DEBUG: 00:00:07.6329703 INVOKING PowerShell Fn Install-Package with args NuGet|Az.Accounts|2.2.4|https://www.powershellgallery.com/api/v2|Module that has length 1 DEBUG: 00:00:07.6399086 In PowerShellGet Provider - 'Install-Package'. DEBUG: 00:00:07.6407669 In PowerShellGet Provider - 'Install-PackageUtility'. DEBUG: 00:00:07.6415623 The FastPackageReference is 'NuGet|Az.Accounts|2.2.4|https://www.powershellgallery.com/api/v2|Module'. DEBUG: 00:00:07.6424341 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:07.6430792 OPTION: Name => Az.Accounts DEBUG: 00:00:07.6437071 OPTION: Scope => CurrentUser DEBUG: 00:00:07.6443087 OPTION: Debug => True DEBUG: 00:00:07.6449144 OPTION: AllowClobber => True DEBUG: 00:00:07.6455318 OPTION: Type => Module DEBUG: 00:00:07.6462668 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:07.6471159 OPTION: Force => True VERBOSE: The installation scope is specified to be 'CurrentUser'. VERBOSE: The specified module will be installed in 'C:\Users\n0158752\OneDrive - Liberty Mutual\Documents\PowerShell\Modules'. DEBUG: 00:00:07.6503092 ArtifactType is Module VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'. VERBOSE: Downloading module 'Az.Accounts' with version '2.2.4' from the repository 'https://www.powershellgallery.com/api/v2'. DEBUG: 00:00:07.7624597 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXouQWNjb3VudHM=\Mi4yLjQ=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='. DEBUG: 00:00:07.7635773 Calling 'NuGetRequest'::'GetPackageByFastpath', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXouQWNjb3VudHM=\Mi4yLjQ=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='. DEBUG: 00:00:07.7646613 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2'. DEBUG: 00:00:07.7656223 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2'. DEBUG: 00:00:07.7665850 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:07.9461923 Calling 'NuGetPackageRepository'::'FindPackage', 'Az.Accounts'. DEBUG: 00:00:07.9473918 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Accounts'. DEBUG: 00:00:07.9486732 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:07.9506839 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:08.5220365 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:08.5316813 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:08.5317818 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:08.5319109 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:08.5320581 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:08.6003609 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:08.6016054 '3' packages received in the last request. DEBUG: 00:00:08.6026164 'Package version' is '2.2.4'. DEBUG: 00:00:08.6039681 'Request's Destination' is 'C:\Users\n0158752\AppData\Local\Temp\376949273'. DEBUG: 00:00:08.6049077 Calling 'NuGetPackageRepository'::'InstallPackage'. DEBUG: 00:00:08.6058297 Calling 'NuGetFilesFeed2'::'InstallPackage'. DEBUG: 00:00:08.6069403 Calling 'NuGetFilesFeed2'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXouQWNjb3VudHM=\Mi4yLjQ=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='. DEBUG: 00:00:08.6081605 Calling 'NuGetClient'::'GetPackageDependencies'. DEBUG: 00:00:08.6091676 Returning the call 'NuGetClient'::'GetPackageDependencies'. DEBUG: 00:00:08.6106265 Calling 'NuGetClient'::'InstallPackage'. VERBOSE: InstallPackage' - name='Az.Accounts', version='2.2.4',destination='C:\Users\n0158752\AppData\Local\Temp\376949273' VERBOSE: DownloadPackage' - name='Az.Accounts', version='2.2.4',destination='C:\Users\n0158752\AppData\Local\Temp\376949273\Az.Accounts.2.2.4\Az.Accounts.2.2.4.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.4'VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.4'. DEBUG: 00:00:08.8471458 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:08.8491386 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:08.8492457 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.4'. VERBOSE: Completed downloading 'Az.Accounts'. DEBUG: 00:00:11.8208699 Calling 'NuGetClient'::'InstallPackageLocal'. VERBOSE: InstallPackageLocal' - name='Az.Accounts', version='2.2.4',destination='C:\Users\n0158752\AppData\Local\Temp\376949273' DEBUG: 00:00:11.8257092 C:\Users\n0158752\AppData\Local\Temp\376949273\Az.Accounts.2.2.4\Az.Accounts.2.2.4.nupkg DEBUG: 00:00:12.4210784 Returning the call 'NuGetClient'::'InstallPackageLocal'. DEBUG: 00:00:12.4810588 Returning the call 'NuGetClient'::'InstallSinglePackage'. DEBUG: 00:00:12.4821431 Returning the call 'NuGetFilesFeed2'::'InstallPackage'. VERBOSE: Validating the 'Az.Accounts' module contents under 'C:\Users\n0158752\AppData\Local\Temp\376949273\Az.Accounts.2.2.4' path. VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\n0158752\AppData\Local\Temp\376949273\Az.Accounts.2.2.4'. VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.Accounts'. DEBUG: 00:00:13.0341854 Catalog file 'Az.Accounts.cat' is not found in the contents of the previously-installed module 'Az.Accounts' with the same name. DEBUG: 00:00:13.0352547 Using the previously-installed module 'Az.Accounts' with version '2.2.4' under 'C:\Users\n0158752\OneDrive - Liberty Mutual\Documents\PowerShell\Modules\Az.Accounts\2.2.4' for getting the publisher details. DEBUG: 00:00:13.0361367 Using the 'C:\Users\n0158752\OneDrive - Liberty Mutual\Documents\PowerShell\Modules\Az.Accounts\2.2.4\Az.Accounts.psd1' file for getting the authenticode signature. DEBUG: 00:00:13.3358573 For publisher validation, using the previously-installed module 'Az.Accounts' with version '2.2.4' under 'C:\Users\n0158752\OneDrive - Liberty Mutual\Documents\PowerShell\Modules\Az.Accounts\2.2.4' 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.Accounts.cat' is not found in the contents of the module 'Az.Accounts' being installed. DEBUG: 00:00:13.3378167 Using the 'Az.Accounts.psd1' file for getting the authenticode signature. VERBOSE: Valid authenticode signature found in the file 'Az.Accounts.psd1' for the module 'Az.Accounts'. DEBUG: 00:00:13.5614096 For publisher validation, current module 'Az.Accounts' with version '2.2.4' 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, current module 'Az.Accounts' with version '2.2.4' 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.Accounts' with version '2.2.4' under 'C:\Users\n0158752\OneDrive - Liberty Mutual\Documents\PowerShell\Modules\Az.Accounts\2.2.4' 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:00:13.5648694 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US DEBUG: 00:00:13.5656435 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US DEBUG: 00:00:13.5663225 Is previously-installed module signed by Microsoft: True DEBUG: 00:00:13.5669710 Is current module signed by Microsoft: True VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Az.Accounts' with version '2.2.4' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Az.Accounts' with version '2.2.4'. VERBOSE: Checking for possible command collisions for the module 'Az.Accounts' commands. DEBUG: 00:00:13.8943600 PowerShell Script 'PSModule' Function 'Install-Package' returns null. Install-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9711 Line | 9711 | … talledPackages = PackageManagement\Install-Package @PSBoundParameters | ~~~~~~~~~~~~ | Administrator rights are required to install or update. Log on to the computer with an account that | has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your | command. You can also try running the Windows PowerShell session with elevated rights (Run as | Administrator).`

jmutchek-msft commented 3 years ago

I am getting the same error when trying to install the Az.Accounts module. I am in a PowerShell 7.1.1 admin session with Controlled Folder Access off. Results are the same with and without -scope CurrentUser:

> [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")
True
> get-module

ModuleType Version    PreRelease Name
---------- -------    ---------- ----
Script     1.3.1                 Configuration
Manifest   7.0.0.0               Microsoft.PowerShell.Management
Manifest   7.0.0.0               Microsoft.PowerShell.Utility
Script     1.4.7                 PackageManagement
Script     2.1.0                 Pansies
Script     3.2.2                 PowerLine
Script     2.2.5                 PowerShellGet
Script     2.1.0                 PSReadLine

> Install-Module Az.Accounts -Repository PSGallery -Force -Scope CurrentUser -verbose -debug
DEBUG: 00:00:00 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0000223 Name: PSGallery
DEBUG: 00:00:00.0000295 Verbose: False
DEBUG: 00:00:00.0000360 ErrorVariable: ev
DEBUG: 00:00:00.0012363 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0030253 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0039236 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2
DEBUG: 00:00:00.0054805 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0091089 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0091322 Name: PSGallery
DEBUG: 00:00:00.0091389 Verbose: False
DEBUG: 00:00:00.0091461 ErrorVariable: ev
DEBUG: 00:00:00.0223681 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0240732 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0259974 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0292725 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0292967 Name: PSGallery
DEBUG: 00:00:00.0293033 Verbose: False
DEBUG: 00:00:00.0293103 ErrorVariable: ev
DEBUG: 00:00:00.0303654 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0318817 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0339210 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0450102 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0454118 ProviderName: PowerShellGet
DEBUG: 00:00:00.0457216 Name: PSGallery
DEBUG: 00:00:00.0459988 Verbose: False
DEBUG: 00:00:00.0462697 ErrorVariable: ev
DEBUG: 00:00:00.0465455 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0477710 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0494926 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0504739 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2
DEBUG: 00:00:00.0522479 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0701035 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0720855 ProviderName: PowerShellGet
DEBUG: 00:00:00.0732592 Name: PSGallery
DEBUG: 00:00:00.0740803 Verbose: False
DEBUG: 00:00:00.0747829 ErrorVariable: ev
DEBUG: 00:00:00.0754760 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0768399 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0784693 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0793805 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2
DEBUG: 00:00:00.0810915 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000002 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0000216 Name: Az.Accounts
DEBUG: 00:00:00.0000289 Debug: True
DEBUG: 00:00:00.0000353 Source: PSGallery
DEBUG: 00:00:00.0000422 Verbose: True
DEBUG: 00:00:00.0000485 Force: True
DEBUG: 00:00:00.0010911 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0026410 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0034129 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2
DEBUG: 00:00:00.0051573 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0083377 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0083563 Name: Az.Accounts
DEBUG: 00:00:00.0083636 Debug: True
DEBUG: 00:00:00.0083701 Source: PSGallery
DEBUG: 00:00:00.0083769 Verbose: True
DEBUG: 00:00:00.0083832 Force: True
DEBUG: 00:00:00.0093840 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0108297 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0127324 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0159051 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0159278 Name: Az.Accounts
DEBUG: 00:00:00.0159347 Debug: True
DEBUG: 00:00:00.0159417 Source: PSGallery
DEBUG: 00:00:00.0159480 Verbose: True
DEBUG: 00:00:00.0159548 Force: True
DEBUG: 00:00:00.0169457 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0183911 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0204587 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0249100 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0249308 Name: Az.Accounts
DEBUG: 00:00:00.0249374 Debug: True
DEBUG: 00:00:00.0249444 Source: PSGallery
DEBUG: 00:00:00.0249506 Verbose: True
DEBUG: 00:00:00.0249669 Force: True
DEBUG: 00:00:00.0261420 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0278234 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0305186 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0336124 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0336320 Name: Az.Accounts
DEBUG: 00:00:00.0336387 Debug: True
DEBUG: 00:00:00.0336457 Source: PSGallery
DEBUG: 00:00:00.0336520 Verbose: True
DEBUG: 00:00:00.0336587 Force: True
DEBUG: 00:00:00.0345904 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0360610 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0384581 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0756541 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0764852 Source: PSGallery
DEBUG: 00:00:00.0772618 Debug: True
DEBUG: 00:00:00.0779617 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0786734 Force: True
DEBUG: 00:00:00.0793714 Name: Az.Accounts
DEBUG: 00:00:00.0800762 Scope: CurrentUser
DEBUG: 00:00:00.0807638 Verbose: True
DEBUG: 00:00:00.0814522 ProviderName: PowerShellGet
DEBUG: 00:00:00.0821343 Type: Module
DEBUG: 00:00:00.0837857 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0854122 In PowerShellGet Provider - 'Resolve-PackageSource'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.
DEBUG: 00:00:00.0869771 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2
DEBUG: 00:00:00.0891815 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0893337 Calling SearchForPackages. Name='Az.Accounts'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:00.0899494 PackageProvider::FindPackage with name Az.Accounts
DEBUG: 00:00:00.0911852 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.0934857 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:00.0942143 Source: PSGallery
DEBUG: 00:00:00.0949413 Debug: True
DEBUG: 00:00:00.0956813 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.0963953 Force: True
DEBUG: 00:00:00.0970813 Name: Az.Accounts
DEBUG: 00:00:00.0977660 Scope: CurrentUser
DEBUG: 00:00:00.0984632 Verbose: True
DEBUG: 00:00:00.0992879 ProviderName: PowerShellGet
DEBUG: 00:00:00.0999785 Type: Module
DEBUG: 00:00:00.1011986 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:00.1028982 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:00.1036491 OPTION: Source => PSGallery
DEBUG: 00:00:00.1066993 OPTION: Debug => True
DEBUG: 00:00:00.1074620 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.1081881 OPTION: Force => True
DEBUG: 00:00:00.1088931 OPTION: Name => Az.Accounts
DEBUG: 00:00:00.1095936 OPTION: Scope => CurrentUser
DEBUG: 00:00:00.1102979 OPTION: Verbose => True
DEBUG: 00:00:00.1109966 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:00.1116994 OPTION: Type => Module
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:00.1153290 PackageProvider::FindPackage with name Az.Accounts
DEBUG: 00:00:00.1196232 Calling 'NuGet'::'FindPackage' - name='Az.Accounts', requiredVersion='',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:00.1224599 Iterating 'Az.Accounts'.
DEBUG: 00:00:00.1233282 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:00.1241750 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:00.1250527 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:00.1258658 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'.
DEBUG: 00:00:00.1266438 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.Accounts'.
DEBUG: 00:00:00.1274466 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Accounts'.
DEBUG: 00:00:00.1283446 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''.
DEBUG: 00:00:00.1299891 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'.
DEBUG: 00:00:00.7026297 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'.
DEBUG: 00:00:00.7053390 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'.
DEBUG: 00:00:00.8444634 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'.
DEBUG: 00:00:00.8475621 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'.
DEBUG: 00:00:00.8476092 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'.
DEBUG: 00:00:00.8476535 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'.
DEBUG: 00:00:00.8476883 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'.
DEBUG: 00:00:00.9179526 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'.
DEBUG: 00:00:00.9205614 '3' packages received in the last request.
DEBUG: 00:00:01.2462760 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'.
DEBUG: 00:00:01.2489442 '0' packages received in the last request.
DEBUG: 00:00:01.2856730 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'.
DEBUG: 00:00:01.2876993 '0' packages received in the last request.
DEBUG: 00:00:01.3262524 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'.
DEBUG: 00:00:01.3281178 '0' packages received in the last request.
VERBOSE: Total package yield:'1' for the specified package 'Az.Accounts'.
DEBUG: 00:00:01.3299159 Completed iterating for 'Az.Accounts'.
DEBUG: 00:00:01.3340238 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:01.3411166 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:01.3475464 Source: PSGallery
DEBUG: 00:00:01.3541990 Debug: True
DEBUG: 00:00:01.3601354 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:01.3619222 Force: True
DEBUG: 00:00:01.3635292 Name: Az.Accounts
DEBUG: 00:00:01.3645987 Scope: CurrentUser
DEBUG: 00:00:01.3659058 Verbose: True
DEBUG: 00:00:01.3671124 ProviderName: PowerShellGet
DEBUG: 00:00:01.3697484 Type: Module
DEBUG: 00:00:01.3725458 INVOKING PowerShell Fn Get-InstalledPackage with args Az.Accounts, 2.2.4, ,  that has length 4
DEBUG: 00:00:01.3758674 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:01.3792419 OPTION: Source => PSGallery
DEBUG: 00:00:01.3802758 OPTION: Debug => True
DEBUG: 00:00:01.3810310 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:01.3819779 OPTION: Force => True
DEBUG: 00:00:01.3829202 OPTION: Name => Az.Accounts
DEBUG: 00:00:01.3838494 OPTION: Scope => CurrentUser
DEBUG: 00:00:01.3849094 OPTION: Verbose => True
DEBUG: 00:00:01.3857234 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:01.3865248 OPTION: Type => Module
DEBUG: 00:00:01.5497307 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm
Are you sure you want to perform this action?
Performing the operation "Install-Module" on target "Version '2.2.4' of module 'Az.Accounts'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): Y                                                     DEBUG: 00:00:08.4116437 Calling New() : MethodName = 'InstallPackage'                                                                         DEBUG: 00:00:08.4124374 Source: PSGallery                                                                                                     DEBUG: 00:00:08.4131779 Debug: True                                                                                                           DEBUG: 00:00:08.4139055 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString                                      DEBUG: 00:00:08.4147106 Force: True                                                                                                           DEBUG: 00:00:08.4155190 Name: Az.Accounts                                                                                                     DEBUG: 00:00:08.4162835 Scope: CurrentUser                                                                                                    DEBUG: 00:00:08.4169921 Verbose: True                                                                                                         DEBUG: 00:00:08.4176524 ProviderName: PowerShellGet                                                                                           DEBUG: 00:00:08.4182831 Type: Module                                                                                                          DEBUG: 00:00:08.4196859 INVOKING PowerShell Fn Install-Package with args NuGet|Az.Accounts|2.2.4|https://www.powershellgallery.com/api/v2|Module that has length 1                                                                                                                          DEBUG: 00:00:08.4217128 In PowerShellGet Provider - 'Install-Package'.                                                                        DEBUG: 00:00:08.4233221 In PowerShellGet Provider - 'Install-PackageUtility'.                                                                 DEBUG: 00:00:08.4241498 The FastPackageReference is 'NuGet|Az.Accounts|2.2.4|https://www.powershellgallery.com/api/v2|Module'.                DEBUG: 00:00:08.4249017 OPTION: Source => PSGallery                                                                                           DEBUG: 00:00:08.4255880 OPTION: Debug => True                                                                                                 DEBUG: 00:00:08.4262648 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString                            DEBUG: 00:00:08.4269457 OPTION: Force => True                                                                                                 DEBUG: 00:00:08.4276223 OPTION: Name => Az.Accounts                                                                                           DEBUG: 00:00:08.4282939 OPTION: Scope => CurrentUser
DEBUG: 00:00:08.4290336 OPTION: Verbose => True
DEBUG: 00:00:08.4297188 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:08.4303963 OPTION: Type => Module
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\jmutchek\OneDrive - Microsoft\Documents\PowerShell\Modules'.
DEBUG: 00:00:08.4325100 ArtifactType is Module
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'Az.Accounts' with version '2.2.4' from the repository 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:08.4746587 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXouQWNjb3VudHM=\Mi4yLjQ=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:08.4754685 Calling 'NuGetRequest'::'GetPackageByFastpath', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXouQWNjb3VudHM=\Mi4yLjQ=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:08.4762643 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:08.4770238 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2'.
DEBUG: 00:00:08.4777884 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:08.8046554 Calling 'NuGetPackageRepository'::'FindPackage', 'Az.Accounts'.
DEBUG: 00:00:08.8066294 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Accounts'.
DEBUG: 00:00:08.8074858 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''.
DEBUG: 00:00:08.8090620 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'.
DEBUG: 00:00:09.2338874 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'.
DEBUG: 00:00:09.2373850 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'.
DEBUG: 00:00:09.2374479 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'.
DEBUG: 00:00:09.2374813 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'.
DEBUG: 00:00:09.2375269 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'.
DEBUG: 00:00:09.4661756 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'.
DEBUG: 00:00:09.4685297 '3' packages received in the last request.
DEBUG: 00:00:09.4695646 'Package version' is '2.2.4'.
DEBUG: 00:00:09.4705038 'Request's Destination' is 'C:\Users\jmutchek\AppData\Local\Temp\1651028058'.
DEBUG: 00:00:09.4715570 Calling 'NuGetPackageRepository'::'InstallPackage'.
DEBUG: 00:00:09.4726059 Calling 'NuGetFilesFeed2'::'InstallPackage'.
DEBUG: 00:00:09.4734888 Calling 'NuGetFilesFeed2'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXouQWNjb3VudHM=\Mi4yLjQ=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:09.4747185 Calling 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:09.4781807 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:09.4794622 Calling 'NuGetClient'::'InstallPackage'.
VERBOSE: InstallPackage' - name='Az.Accounts', version='2.2.4',destination='C:\Users\jmutchek\AppData\Local\Temp\1651028058'
VERBOSE: DownloadPackage' - name='Az.Accounts', version='2.2.4',destination='C:\Users\jmutchek\AppData\Local\Temp\1651028058\Az.Accounts.2.2.4\Az.Accounts.2.2.4.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.4'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.4'.
DEBUG: 00:00:09.5209576 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'.
DEBUG: 00:00:09.5541009 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'.
DEBUG: 00:00:09.5541449 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.4'.
VERBOSE: Completed downloading 'Az.Accounts'.
DEBUG: 00:00:10.6045149 Calling 'NuGetClient'::'InstallPackageLocal'.
VERBOSE: InstallPackageLocal' - name='Az.Accounts', version='2.2.4',destination='C:\Users\jmutchek\AppData\Local\Temp\1651028058'
DEBUG: 00:00:10.6072741 C:\Users\jmutchek\AppData\Local\Temp\1651028058\Az.Accounts.2.2.4\Az.Accounts.2.2.4.nupkg
DEBUG: 00:00:11.8531501 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:11.8708250 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:11.8761434 Returning the call 'NuGetFilesFeed2'::'InstallPackage'.
VERBOSE: Validating the 'Az.Accounts' module contents under 'C:\Users\jmutchek\AppData\Local\Temp\1651028058\Az.Accounts.2.2.4' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\jmutchek\AppData\Local\Temp\1651028058\Az.Accounts.2.2.4'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'Az.Accounts'.
DEBUG: 00:00:12.0268006 Catalog file 'Az.Accounts.cat' is not found in the contents of the previously-installed module 'Az.Accounts' with the same name.
DEBUG: 00:00:12.0286893 Using the previously-installed module 'Az.Accounts' with version '2.2.4' under 'C:\Users\jmutchek\OneDrive - Microsoft\Documents\PowerShell\Modules\Az.Accounts\2.2.4' for getting the publisher details.
DEBUG: 00:00:12.0294697 Using the 'C:\Users\jmutchek\OneDrive - Microsoft\Documents\PowerShell\Modules\Az.Accounts\2.2.4\Az.Accounts.psd1' file for getting the authenticode signature.
DEBUG: 00:00:12.1295715 For publisher validation, using the previously-installed module 'Az.Accounts' with version '2.2.4' under 'C:\Users\jmutchek\OneDrive - Microsoft\Documents\PowerShell\Modules\Az.Accounts\2.2.4' 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.Accounts.cat' is not found in the contents of the module 'Az.Accounts' being installed.
DEBUG: 00:00:12.1330721 Using the 'Az.Accounts.psd1' file for getting the authenticode signature.
VERBOSE: Valid authenticode signature found in the file 'Az.Accounts.psd1' for the module 'Az.Accounts'.
DEBUG: 00:00:12.2141739 For publisher validation, current module 'Az.Accounts' with version '2.2.4' 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, current module 'Az.Accounts' with version '2.2.4' 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.Accounts' with version '2.2.4' under 'C:\Users\jmutchek\OneDrive - Microsoft\Documents\PowerShell\Modules\Az.Accounts\2.2.4' 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:00:12.2179319 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:12.2188008 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:12.2195935 Is previously-installed module signed by Microsoft: True
DEBUG: 00:00:12.2205776 Is current module signed by Microsoft: True
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'Az.Accounts' with version '2.2.4' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'Az.Accounts' with version '2.2.4'.
VERBOSE: Checking for possible command collisions for the module 'Az.Accounts' commands.
DEBUG: 00:00:14.6792069 PowerShell Script 'PSModule' Function 'Install-Package' returns null.
Install-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9711
Line |
9711 |  … talledPackages = PackageManagement\Install-Package @PSBoundParameters
     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Administrator rights are required to install or update. Log on to the computer with an account that has Administrator
     | rights, and then try again, or install by adding "-Scope CurrentUser" to your command. You can also try running the Windows
     | PowerShell session with elevated rights (Run as Administrator).
rakeshjjain commented 3 years ago

I am also running into the same issue trying to install Azure Package

Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\RJain> Install-Module -Name Az -Repository PSGallery -AllowClobber -Scope AllUsers -Force -Debug DEBUG: 00:00:00.0000003 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll

Confirm Continue with this operation? [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A DEBUG: 00:00:00.0001005 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll DEBUG: 00:00:00.0001044 Trying provider assembly: C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208\Microsoft.PackageManagement.NuGetProvider.dll DEBUG: 00:00:00.0003426 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll DEBUG: 00:00:00.0001545 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll DEBUG: 00:00:00.0035502 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll DEBUG: 00:00:00.0036737 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll DEBUG: 00:00:00.0040459 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll DEBUG: 00:00:00.0000993 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll DEBUG: 00:00:00.0041993 Attempting loading of assembly: C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208\Microsoft.PackageManagement.NuGetProvider.dll DEBUG: 00:00:00.0044280 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll DEBUG: 00:00:00.0079337 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll DEBUG: 00:00:00.0092128 Acquiring providers for assemblyC:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll DEBUG: 00:00:00.0093059 Acquiring providers for assemblyC:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll DEBUG: 00:00:00.0093733 Acquiring providers for assemblyC:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll DEBUG: 00:00:00.0093863 Acquiring providers for assemblyC:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll DEBUG: 00:00:00.0095570 Acquiring providers for assemblyC:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208\Microsoft.PackageManagement.NuGetProvider.dll DEBUG: 00:00:00.0098204 Acquiring providers for assemblyC:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll DEBUG: 00:00:00.1514176 Registering providers via metaproviders for assembly Microsoft.PackageManagement.MetaProvider.PowerShell.Internal.PowerShellMetaProvider DEBUG: 00:00:00.1992965 Initializing provider 'zipfile' DEBUG: 00:00:00.2004991 Initializing provider 'WebDownloader' DEBUG: 00:00:00.2006849 Initializing provider 'Bootstrap' DEBUG: 00:00:00.2007531 Initializing provider 'msu' DEBUG: 00:00:00.2011072 Initializing provider 'NuGet' DEBUG: 00:00:00.2035711 Initializing provider 'msi' DEBUG: 00:00:00.2081328 Initializing provider 'Programs' DEBUG: 00:00:00.2244266 Provider 'zipfile' Initialized DEBUG: 00:00:00.2244676 Using Archiver Provider zipfile DEBUG: 00:00:00.2296850 Trying to register metaprovider DEBUG: 00:00:00.2411616 Initializing PowerShell MetaProvider DEBUG: 00:00:00.2444181 Calling 'zipfile::GetFeatures' DEBUG: 00:00:00.2479511 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll DEBUG: 00:00:00.2520483 Provider 'WebDownloader' Initialized DEBUG: 00:00:00.2521090 Using Downloader Provider WebDownloader DEBUG: 00:00:00.2548719 Calling 'msi::InitializeProvider' DEBUG: 00:00:00.2549168 Provider 'msi' Initialized DEBUG: 00:00:00.2549511 Using Package Provider msi DEBUG: 00:00:00.2564282 Calling 'Programs::InitializeProvider' DEBUG: 00:00:00.2564775 Provider 'Programs' Initialized DEBUG: 00:00:00.2565078 Using Package Provider Programs DEBUG: 00:00:00.2568118 Initialize Bootstrapper DEBUG: 00:00:00.2577416 Calling 'WebDownloader::GetFeatures' DEBUG: 00:00:00.2597245 Calling 'msu::InitializeProvider' DEBUG: 00:00:00.2597663 Provider 'msu' Initialized DEBUG: 00:00:00.2597908 Using Package Provider msu DEBUG: 00:00:00.2614074 Calling 'NuGet'::'InitializeProvider'. DEBUG: 00:00:00.2614555 Provider 'NuGet' Initialized DEBUG: 00:00:00.2614835 Using Package Provider NuGet DEBUG: 00:00:00.2622674 Calling 'msi::GetFeatures' DEBUG: 00:00:00.2625793 The provider 'msi' is imported DEBUG: 00:00:00.2631356 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsiProvider.dll DEBUG: 00:00:00.2638067 Calling 'Programs::GetFeatures' DEBUG: 00:00:00.2639668 The provider 'Programs' is imported DEBUG: 00:00:00.2645772 Calling 'msu::GetFeatures' DEBUG: 00:00:00.2648098 The provider 'msu' is imported DEBUG: 00:00:00.2652763 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MsuProvider.dll DEBUG: 00:00:00.2667317 Provider 'Bootstrap' Initialized DEBUG: 00:00:00.2667601 Using Package Provider Bootstrap DEBUG: 00:00:00.2710588 Calling 'NuGet'::'GetFeatures'. DEBUG: 00:00:00.2727010 The provider 'NuGet' is imported DEBUG: 00:00:00.2741158 SUCCESS provider assembly: C:\Program Files\PackageManagement\ProviderAssemblies\nuget\2.8.5.208\Microsoft.PackageManagement.NuGetProvider.dll DEBUG: 00:00:00.2747041 Calling 'Bootstrap::GetFeatures' DEBUG: 00:00:00.2758223 The provider 'Bootstrap' is imported DEBUG: 00:00:00.2762734 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.CoreProviders.dll DEBUG: 00:00:00.2950039 Calling 'WebDownloader::DownloadFile' 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409','C:\Users\RJain\AppData\Local\Temp\5\Microsoft.PackageMana gement\ehal0llt.3rv','40000','False' DEBUG: 00:00:00.2963540 Attempting to load PowerShell Provider Module [C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1] DEBUG: 00:00:00.4532801 Loaded PowerShell package provider: '[C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1]'. DEBUG: 00:00:00.4632200 Loaded PowerShell Provider: PowerShellGet DEBUG: 00:00:00.4650752 Calling 'WebDownloader::DownloadFile' 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409','C:\Users\RJain\AppData\Local\Temp\5\Microsoft.PackageMana gement\ehal0llt.3rv','40000','False' DEBUG: 00:00:00.4661107 Initializing provider 'PowerShellGet' DEBUG: 00:00:00.4759844 Calling New() : MethodName = 'InitializeProvider' DEBUG: 00:00:00.4760218 ErrorAction: SilentlyContinue DEBUG: 00:00:00.4760337 WarningAction: SilentlyContinue DEBUG: 00:00:00.4824604 INVOKING PowerShell Fn Initialize-Provider with args that has length 0 DEBUG: 00:00:00.5099515 In PowerShellGet Provider - 'Initialize-Provider'. DEBUG: 00:00:00.5102177 PowerShell Script 'PSModule' Function 'Initialize-Provider' returns null. DEBUG: 00:00:00.5108730 Done calling powershell «Initialize-Provider» «PSModule» DEBUG: 00:00:00.5109223 Provider 'PowerShellGet' Initialized DEBUG: 00:00:00.5109397 Using Package Provider PowerShellGet DEBUG: 00:00:00.5181499 Calling New() : MethodName = 'GetFeatures' DEBUG: 00:00:00.5181850 ErrorAction: SilentlyContinue DEBUG: 00:00:00.5182027 WarningAction: SilentlyContinue DEBUG: 00:00:00.5190304 INVOKING PowerShell Fn Get-Feature with args that has length 0 DEBUG: 00:00:00.5320289 In PowerShellGet Provider - 'Get-Feature'. DEBUG: 00:00:00.5465889 Done calling powershell «Get-Feature» «PSModule» DEBUG: 00:00:00.5466781 The provider 'PowerShellGet' is imported DEBUG: 00:00:00.5487927 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.MetaProvider.PowerShell.dll DEBUG: 00:00:00.0000003 Calling New() : MethodName = 'ResolvePackageSources'

Confirm Continue with this operation? [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A DEBUG: 00:00:00.0003075 Verbose: False DEBUG: 00:00:00.0003379 Name: PSGallery DEBUG: 00:00:00.0003548 ErrorVariable: ev DEBUG: 00:00:00.0021351 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0 DEBUG: 00:00:00.0188456 In PowerShellGet Provider - 'Resolve-PackageSource'. DEBUG: 00:00:00.2303455 Yielding packge source for PSGallery at location https://www.powershellgallery.com/api/v2 DEBUG: 00:00:00.2352770 Done calling powershell «Resolve-PackageSource» «PSModule» DEBUG: 00:00:00.2624559 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.2624921 Verbose: False DEBUG: 00:00:00.2625091 Name: PSGallery DEBUG: 00:00:00.2625312 ErrorVariable: ev DEBUG: 00:00:00.2633292 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1 DEBUG: 00:00:00.2801632 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.3015186 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.3054317 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.3054537 Verbose: False DEBUG: 00:00:00.3054683 Name: PSGallery DEBUG: 00:00:00.3054825 ErrorVariable: ev DEBUG: 00:00:00.3060882 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1 DEBUG: 00:00:00.3067727 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.3089098 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:02.5565423 Calling New() : MethodName = 'ResolvePackageSources' DEBUG: 00:00:02.5581570 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:02.5595761 ProviderName: PowerShellGet DEBUG: 00:00:02.5609829 Verbose: False DEBUG: 00:00:02.5623819 Name: PSGallery DEBUG: 00:00:02.5638830 ErrorVariable: ev DEBUG: 00:00:02.5658770 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0 DEBUG: 00:00:02.5675599 In PowerShellGet Provider - 'Resolve-PackageSource'. DEBUG: 00:00:02.5718476 Yielding packge source for PSGallery at location https://www.powershellgallery.com/api/v2 DEBUG: 00:00:02.5733700 Done calling powershell «Resolve-PackageSource» «PSModule» DEBUG: 00:00:02.5782006 Calling New() : MethodName = 'ResolvePackageSources' DEBUG: 00:00:02.5794379 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:02.5808842 ProviderName: PowerShellGet DEBUG: 00:00:02.5923351 Verbose: False DEBUG: 00:00:02.5936856 Name: PSGallery DEBUG: 00:00:02.5950739 ErrorVariable: ev DEBUG: 00:00:02.5965983 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0 DEBUG: 00:00:02.6006647 In PowerShellGet Provider - 'Resolve-PackageSource'. DEBUG: 00:00:02.6033405 Yielding packge source for PSGallery at location https://www.powershellgallery.com/api/v2 DEBUG: 00:00:02.6149653 Done calling powershell «Resolve-PackageSource» «PSModule» DEBUG: 00:00:00 Calling New() : MethodName = 'ResolvePackageSources'

Confirm Continue with this operation? [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A DEBUG: 00:00:00.0000295 Force: True DEBUG: 00:00:00.0000465 Debug: True DEBUG: 00:00:00.0000587 Source: PSGallery DEBUG: 00:00:00.0000725 Name: Az DEBUG: 00:00:00.0013552 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0 DEBUG: 00:00:00.0020957 In PowerShellGet Provider - 'Resolve-PackageSource'. DEBUG: 00:00:00.0044284 Yielding packge source for PSGallery at location https://www.powershellgallery.com/api/v2 DEBUG: 00:00:00.0051507 Done calling powershell «Resolve-PackageSource» «PSModule» DEBUG: 00:00:00.0084514 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0084747 Force: True DEBUG: 00:00:00.0084873 Debug: True DEBUG: 00:00:00.0085015 Source: PSGallery DEBUG: 00:00:00.0085149 Name: Az DEBUG: 00:00:00.0091004 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1 DEBUG: 00:00:00.0097562 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0109970 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.0141960 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0142185 Force: True DEBUG: 00:00:00.0142331 Debug: True DEBUG: 00:00:00.0142469 Source: PSGallery DEBUG: 00:00:00.0142611 Name: Az DEBUG: 00:00:00.0148683 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1 DEBUG: 00:00:00.0155043 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0176016 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.0208365 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0208625 Force: True DEBUG: 00:00:00.0208783 Debug: True DEBUG: 00:00:00.0208921 Source: PSGallery DEBUG: 00:00:00.0209063 Name: Az DEBUG: 00:00:00.0214740 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1 DEBUG: 00:00:00.0221069 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0300564 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:00.0332282 Calling New() : MethodName = 'GetDynamicOptions' DEBUG: 00:00:00.0332499 Force: True DEBUG: 00:00:00.0332645 Debug: True DEBUG: 00:00:00.0332779 Source: PSGallery DEBUG: 00:00:00.0332917 Name: Az DEBUG: 00:00:00.0338307 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1 DEBUG: 00:00:00.0344616 In PowerShellGet Provider - 'Get-DynamicOptions'. DEBUG: 00:00:00.0375214 Done calling powershell «Get-DynamicOptions» «PSModule» DEBUG: 00:00:02.5104697 Calling New() : MethodName = 'ResolvePackageSources' DEBUG: 00:00:02.5125741 ProviderName: PowerShellGet DEBUG: 00:00:02.5151177 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:02.5165332 Type: Module DEBUG: 00:00:02.5178987 Source: PSGallery DEBUG: 00:00:02.5193044 AllowClobber: True DEBUG: 00:00:02.5206565 Force: True DEBUG: 00:00:02.5220428 Debug: True DEBUG: 00:00:02.5234722 Scope: AllUsers DEBUG: 00:00:02.5250699 Name: Az DEBUG: 00:00:02.5269811 INVOKING PowerShell Fn Resolve-PackageSource with args that has length 0 DEBUG: 00:00:02.5315045 In PowerShellGet Provider - 'Resolve-PackageSource'. VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2'; IsTrusted = 'False'; IsRegistered = 'True'.

Confirm Continue with this operation? [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A DEBUG: 00:00:04.4405157 Yielding packge source for PSGallery at location https://www.powershellgallery.com/api/v2 DEBUG: 00:00:04.4445478 Done calling powershell «Resolve-PackageSource» «PSModule» DEBUG: 00:00:04.4479771 Calling SearchForPackages. Name='Az' VERBOSE: Using the provider 'PowerShellGet' for searching packages. DEBUG: 00:00:04.4642125 PackageProvider::FindPackage with name Az DEBUG: 00:00:04.4669395 Calling SearchForPackages After Select 1 DEBUG: 00:00:04.4766409 Calling New() : MethodName = 'FindPackage' DEBUG: 00:00:04.4783947 ProviderName: PowerShellGet DEBUG: 00:00:04.4799992 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:04.4855261 Type: Module DEBUG: 00:00:04.4869322 Source: PSGallery DEBUG: 00:00:04.4883962 AllowClobber: True DEBUG: 00:00:04.4900018 Force: True DEBUG: 00:00:04.4915053 Debug: True DEBUG: 00:00:04.4928459 Scope: AllUsers DEBUG: 00:00:04.4943202 Name: Az DEBUG: 00:00:04.4982522 INVOKING PowerShell Fn Find-Package with args System.String[], , , that has length 4 DEBUG: 00:00:04.5782124 In PowerShellGet Provider - 'Find-Package'. DEBUG: 00:00:04.5832654 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:04.5843639 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:04.5858275 OPTION: Type => Module DEBUG: 00:00:04.5873239 OPTION: Source => PSGallery DEBUG: 00:00:04.5887844 OPTION: AllowClobber => True DEBUG: 00:00:04.5928229 OPTION: Force => True DEBUG: 00:00:04.5946201 OPTION: Debug => True DEBUG: 00:00:04.5961476 OPTION: Scope => AllUsers DEBUG: 00:00:04.5976310 OPTION: Name => Az VERBOSE: Using the specified source names : 'PSGallery'. VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'. VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'. DEBUG: 00:00:04.6668306 PackageProvider::FindPackage with name Az DEBUG: 00:00:04.6764690 Calling 'NuGet'::'FindPackage' - name='Az', requiredVersion='',minimumVersion='', maximumVersion='''. DEBUG: 00:00:04.6795579 Iterating 'Az'. DEBUG: 00:00:04.7010119 Calling 'NuGetRequest'::'RegisteredPackageSources', 'C:\Users\RJain\AppData\Roaming\NuGet\nuget.config'. DEBUG: 00:00:04.7050760 Loading a configuration from file 'C:\Users\RJain\AppData\Roaming\NuGet\nuget.config'. DEBUG: 00:00:04.7069769 Loaded a configuration from file 'C:\Users\RJain\AppData\Roaming\NuGet\nuget.config'. DEBUG: 00:00:04.7106021 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:04.7122736 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:05.2541369 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:05.2585227 Calling 'NuGetRequest'::'GetPackageById', 'Az'. DEBUG: 00:00:05.4158698 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az'. DEBUG: 00:00:05.4176063 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'' for ''. DEBUG: 00:00:05.4384014 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=0&$top=40'. DEBUG: 00:00:05.9275737 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=0&$top=40'. DEBUG: 00:00:05.9842862 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=120&$top=40'. DEBUG: 00:00:05.9844380 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=40&$top=40'. DEBUG: 00:00:05.9845918 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=160&$top=40'. DEBUG: 00:00:05.9847448 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=80&$top=40'. DEBUG: 00:00:06.1429058 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=120&$top=40'. DEBUG: 00:00:06.1470436 '0' packages received in the last request. DEBUG: 00:00:06.2264490 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=160&$top=40'. DEBUG: 00:00:06.2306802 '0' packages received in the last request. DEBUG: 00:00:06.3588088 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=40&$top=40'. DEBUG: 00:00:06.3628929 '14' packages received in the last request. DEBUG: 00:00:06.5334528 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=80&$top=40'. DEBUG: 00:00:06.5374912 '0' packages received in the last request. VERBOSE: Total package yield:'1' for the specified package 'Az'. DEBUG: 00:00:06.5410967 Completed iterating for 'Az'. DEBUG: 00:00:06.8418023 Done calling powershell «Find-Package» «PSModule» DEBUG: 00:00:06.8729991 Calling New() : MethodName = 'GetInstalledPackages' DEBUG: 00:00:06.8743701 ProviderName: PowerShellGet DEBUG: 00:00:06.8758586 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:06.8772816 Type: Module DEBUG: 00:00:06.8787721 Source: PSGallery DEBUG: 00:00:06.8803264 AllowClobber: True DEBUG: 00:00:06.8816848 Force: True DEBUG: 00:00:06.8830574 Debug: True DEBUG: 00:00:06.8844268 Scope: AllUsers DEBUG: 00:00:06.8858061 Name: Az DEBUG: 00:00:06.9022733 INVOKING PowerShell Fn Get-InstalledPackage with args Az, 5.5.0, , that has length 4 DEBUG: 00:00:06.9170324 In PowerShellGet Provider - 'Get-InstalledPackage'. DEBUG: 00:00:06.9200567 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:06.9221063 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:06.9235940 OPTION: Type => Module DEBUG: 00:00:06.9250581 OPTION: Source => PSGallery DEBUG: 00:00:06.9266712 OPTION: AllowClobber => True DEBUG: 00:00:06.9282310 OPTION: Force => True DEBUG: 00:00:06.9297645 OPTION: Debug => True DEBUG: 00:00:06.9315708 OPTION: Scope => AllUsers DEBUG: 00:00:06.9330514 OPTION: Name => Az DEBUG: 00:00:08.1867467 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null. DEBUG: 00:00:08.1886748 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm Are you sure you want to perform this action? Performing the operation "Install-Module" on target "Version '5.5.0' of module 'Az'". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A DEBUG: 00:00:16.3356013 Calling New() : MethodName = 'InstallPackage' DEBUG: 00:00:16.3370886 ProviderName: PowerShellGet DEBUG: 00:00:16.3385909 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:16.3422197 Type: Module DEBUG: 00:00:16.3436636 Source: PSGallery DEBUG: 00:00:16.3450358 AllowClobber: True DEBUG: 00:00:16.3466008 Force: True DEBUG: 00:00:16.3480384 Debug: True DEBUG: 00:00:16.3493853 Scope: AllUsers DEBUG: 00:00:16.3509381 Name: Az DEBUG: 00:00:16.3530803 INVOKING PowerShell Fn Install-Package with args NuGet|Az|5.5.0|https://www.powershellgallery.com/api/v2|Module that has length 1 DEBUG: 00:00:16.3651736 In PowerShellGet Provider - 'Install-Package'. DEBUG: 00:00:16.4014025 In PowerShellGet Provider - 'Install-PackageUtility'. DEBUG: 00:00:16.4040266 The FastPackageReference is 'NuGet|Az|5.5.0|https://www.powershellgallery.com/api/v2|Module'. DEBUG: 00:00:16.4096832 OPTION: ProviderName => PowerShellGet DEBUG: 00:00:16.4107364 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString DEBUG: 00:00:16.4122288 OPTION: Type => Module DEBUG: 00:00:16.4139362 OPTION: Source => PSGallery DEBUG: 00:00:16.4155903 OPTION: AllowClobber => True DEBUG: 00:00:16.4172203 OPTION: Force => True DEBUG: 00:00:16.4226294 OPTION: Debug => True DEBUG: 00:00:16.4241230 OPTION: Scope => AllUsers DEBUG: 00:00:16.4259529 OPTION: Name => Az VERBOSE: The installation scope is specified to be 'AllUsers'. VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'. DEBUG: 00:00:16.4402464 ArtfactType is Module VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'. VERBOSE: Downloading module 'Az' with version '5.5.0' from the repository 'https://www.powershellgallery.com/api/v2'. DEBUG: 00:00:16.5122787 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXo=\NS41LjA=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2 FwaS92Mg==\cG93ZXJzaGVsbGdldA=='. DEBUG: 00:00:16.5148697 Calling 'NuGetRequest'::'GetPackageByFastpath', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mg==\QXo=\NS41LjA=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2 FwaS92Mg==\cG93ZXJzaGVsbGdldA=='. DEBUG: 00:00:16.5197768 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2'. DEBUG: 00:00:16.5210429 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2'. DEBUG: 00:00:16.5224844 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:16.9334638 Calling 'HttpClientPackageRepository'::'FindPackage', 'Az'. DEBUG: 00:00:16.9351510 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'' for ''. DEBUG: 00:00:16.9393657 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=0&$top=40'. DEBUG: 00:00:17.3805210 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=0&$top=40'. DEBUG: 00:00:17.4131389 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=80&$top=40'. DEBUG: 00:00:17.4132808 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=120&$top=40'. DEBUG: 00:00:17.4134212 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=40&$top=40'. DEBUG: 00:00:17.4135699 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=160&$top=40'. DEBUG: 00:00:17.5762874 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=80&$top=40'. DEBUG: 00:00:17.5803235 '0' packages received in the last request. DEBUG: 00:00:17.6903500 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=160&$top=40'. DEBUG: 00:00:17.6946924 '0' packages received in the last request. DEBUG: 00:00:17.7519952 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=120&$top=40'. DEBUG: 00:00:17.7561220 '0' packages received in the last request. DEBUG: 00:00:17.8926523 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az'&$skip=40&$top=40'. DEBUG: 00:00:17.8967878 '14' packages received in the last request. DEBUG: 00:00:17.9035887 'Package version' is '5.5.0'. DEBUG: 00:00:17.9053544 'Request's Destination' is 'C:\Users\RJain\AppData\Local\Temp\5\1276414795'. DEBUG: 00:00:17.9154241 Calling 'NuGetClient'::'GetPackageDependencies'. DEBUG: 00:00:17.9284617 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:17.9300551 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:18.7501392 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:18.7519274 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:18.9329303 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:18.9347678 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:18.9381107 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:19.0938806 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:19.1028825 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:19.1030367 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:19.1031822 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:19.1033257 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:19.2170046 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:19.2213672 '4' packages received in the last request. DEBUG: 00:00:19.2943419 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:19.2984848 '0' packages received in the last request. DEBUG: 00:00:19.3310830 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:19.3352409 '0' packages received in the last request. DEBUG: 00:00:19.4086052 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:19.4131062 '0' packages received in the last request. DEBUG: 00:00:19.4162109 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:19.4183046 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:19.6701057 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:19.6717732 Calling 'NuGetRequest'::'GetPackageById', 'Az.Advisor'. DEBUG: 00:00:19.8449800 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Advisor'. DEBUG: 00:00:19.8465241 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Advisor'' for ''. DEBUG: 00:00:19.8490823 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Advisor'&$skip=0&$top=40'. DEBUG: 00:00:20.0380509 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Advisor'&$skip=0&$top=40'. DEBUG: 00:00:20.0423271 '6' packages received in the last request. DEBUG: 00:00:20.0447738 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:20.0462402 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:20.2220521 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:20.2238336 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:20.4097459 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:20.4119757 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:20.4193097 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:20.5158223 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:20.5236354 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:20.5237829 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:20.5239682 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:20.5241161 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:20.6035266 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:20.6083280 '0' packages received in the last request. DEBUG: 00:00:20.6875690 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:20.6913866 '4' packages received in the last request. DEBUG: 00:00:20.7209743 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:20.7244315 '0' packages received in the last request. DEBUG: 00:00:20.8105984 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:20.8145099 '0' packages received in the last request. DEBUG: 00:00:20.8163970 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:20.8178579 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:21.0883111 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:21.0901871 Calling 'NuGetRequest'::'GetPackageById', 'Az.Aks'. DEBUG: 00:00:21.2997683 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Aks'. DEBUG: 00:00:21.3013707 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Aks'' for ''. DEBUG: 00:00:21.3040607 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Aks'&$skip=0&$top=40'. DEBUG: 00:00:21.5301631 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Aks'&$skip=0&$top=40'. DEBUG: 00:00:21.5344874 '24' packages received in the last request. DEBUG: 00:00:21.5370811 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:21.5387545 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:21.7358280 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:21.7374360 Calling 'NuGetRequest'::'GetPackageById', 'Az.AnalysisServices'. DEBUG: 00:00:21.9132361 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.AnalysisServices'. DEBUG: 00:00:21.9150519 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.AnalysisServices'' for ''. DEBUG: 00:00:21.9184831 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.AnalysisServices'&$skip=0&$top=40'. DEBUG: 00:00:22.0811679 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.AnalysisServices'&$skip=0&$top=40'. DEBUG: 00:00:22.0850695 '15' packages received in the last request. DEBUG: 00:00:22.0876711 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:22.0892369 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:22.2802949 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:22.2818741 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:22.4277186 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:22.4293644 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:22.4367572 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:22.5911352 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:22.5984645 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:22.5986116 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:22.5987685 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:22.5989239 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:22.7190442 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:22.7229702 '0' packages received in the last request. DEBUG: 00:00:22.7959966 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:22.7999207 '0' packages received in the last request. DEBUG: 00:00:22.9475420 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:22.9518631 '4' packages received in the last request. DEBUG: 00:00:23.0507096 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:23.0546428 '0' packages received in the last request. DEBUG: 00:00:23.0564451 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:23.0579431 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:23.2965346 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:23.2982609 Calling 'NuGetRequest'::'GetPackageById', 'Az.ApiManagement'. DEBUG: 00:00:23.4559207 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.ApiManagement'. DEBUG: 00:00:23.4574766 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ApiManagement'' for ''. DEBUG: 00:00:23.4608049 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ApiManagement'&$skip=0&$top=40'. DEBUG: 00:00:23.7526754 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ApiManagement'&$skip=0&$top=40'. DEBUG: 00:00:23.7566709 '21' packages received in the last request. DEBUG: 00:00:23.7591924 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:23.7607972 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:24.0451531 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:24.0467898 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:24.2248371 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:24.2264844 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:24.2296913 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:24.4246722 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:24.4326020 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:24.4327424 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:24.4329392 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:24.4331150 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:24.5427678 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:24.5429251 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:24.5502690 '4' packages received in the last request. DEBUG: 00:00:24.5520808 '0' packages received in the last request. DEBUG: 00:00:24.6379429 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:24.6381034 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:24.6442198 '0' packages received in the last request. DEBUG: 00:00:24.6460896 '0' packages received in the last request. DEBUG: 00:00:24.6474550 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:24.6495511 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:25.0758089 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:25.0774835 Calling 'NuGetRequest'::'GetPackageById', 'Az.AppConfiguration'. DEBUG: 00:00:25.3176495 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.AppConfiguration'. DEBUG: 00:00:25.3197669 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.AppConfiguration'' for ''. DEBUG: 00:00:25.3236492 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.AppConfiguration'&$skip=0&$top=40'. DEBUG: 00:00:25.5066000 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.AppConfiguration'&$skip=0&$top=40'. DEBUG: 00:00:25.5109460 '4' packages received in the last request. DEBUG: 00:00:25.5130768 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:25.5147001 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:25.7391666 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:25.7409875 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:25.9433628 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:25.9449553 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:25.9479217 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:26.1029799 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:26.1103589 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:26.1105008 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:26.1106487 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:26.1107934 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:26.1966350 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:26.2007842 '0' packages received in the last request. DEBUG: 00:00:26.2161549 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:26.2184588 '4' packages received in the last request. DEBUG: 00:00:26.2916382 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:26.2957831 '0' packages received in the last request. DEBUG: 00:00:26.3322438 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:26.3361147 '0' packages received in the last request. DEBUG: 00:00:26.3378331 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:26.3395092 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:26.5286162 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:26.5302692 Calling 'NuGetRequest'::'GetPackageById', 'Az.ApplicationInsights'. DEBUG: 00:00:26.6845301 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.ApplicationInsights'. DEBUG: 00:00:26.6864058 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ApplicationInsights'' for ''. DEBUG: 00:00:26.6907881 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ApplicationInsights'&$skip=0&$top=40'. DEBUG: 00:00:26.8797093 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ApplicationInsights'&$skip=0&$top=40'. DEBUG: 00:00:26.8841531 '12' packages received in the last request. DEBUG: 00:00:26.8867342 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:26.8885252 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:27.1275410 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:27.1293958 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:27.3017118 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:27.3033947 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:27.3065464 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:27.4578342 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:27.4980689 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:27.4982116 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:27.4983673 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:27.4985030 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:27.6032037 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:27.6074527 '4' packages received in the last request. DEBUG: 00:00:27.6674418 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:27.6735953 '0' packages received in the last request. DEBUG: 00:00:27.6847332 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:27.6868612 '0' packages received in the last request. DEBUG: 00:00:27.7388030 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:27.7431936 '0' packages received in the last request. DEBUG: 00:00:27.7453039 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:27.7469761 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:27.9702999 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:27.9719611 Calling 'NuGetRequest'::'GetPackageById', 'Az.Automation'. DEBUG: 00:00:28.1314734 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Automation'. DEBUG: 00:00:28.1332599 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Automation'' for ''. DEBUG: 00:00:28.1364049 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Automation'&$skip=0&$top=40'. DEBUG: 00:00:28.3743257 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Automation'&$skip=0&$top=40'. DEBUG: 00:00:28.3785960 '26' packages received in the last request. DEBUG: 00:00:28.3820087 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:28.3836766 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:28.6037028 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:28.6054224 Calling 'NuGetRequest'::'GetPackageById', 'Az.Batch'. DEBUG: 00:00:28.7656692 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Batch'. DEBUG: 00:00:28.7674507 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Batch'' for ''. DEBUG: 00:00:28.7707333 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Batch'&$skip=0&$top=40'. DEBUG: 00:00:29.0689315 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Batch'&$skip=0&$top=40'. DEBUG: 00:00:29.0733989 '17' packages received in the last request. DEBUG: 00:00:29.0760285 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:29.0775123 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:29.3102366 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:29.3119380 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:29.5149876 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:29.5166574 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:29.5197370 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:29.6884920 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:29.6960780 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:29.6962279 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:29.6963757 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:29.6965196 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:29.7759601 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:29.7799891 '4' packages received in the last request. DEBUG: 00:00:29.8174352 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:29.8215265 '0' packages received in the last request. DEBUG: 00:00:29.8712934 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:29.8757588 '0' packages received in the last request. DEBUG: 00:00:29.9057033 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:29.9095001 '0' packages received in the last request. DEBUG: 00:00:29.9112701 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:29.9130902 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:30.1546158 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:30.1562202 Calling 'NuGetRequest'::'GetPackageById', 'Az.Billing'. DEBUG: 00:00:30.3224695 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Billing'. DEBUG: 00:00:30.3240786 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Billing'' for ''. DEBUG: 00:00:30.3271849 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Billing'&$skip=0&$top=40'. DEBUG: 00:00:30.5494334 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Billing'&$skip=0&$top=40'. DEBUG: 00:00:30.5539257 '15' packages received in the last request. DEBUG: 00:00:30.5565707 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:30.5581081 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:30.7681297 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:30.7700823 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:30.9417820 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:30.9439010 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:30.9471181 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:31.1262508 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:31.1335683 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:31.1337106 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:31.1338597 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:31.1340068 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:31.2138593 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:31.2180606 '0' packages received in the last request. DEBUG: 00:00:31.3064091 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:31.3104377 '0' packages received in the last request. DEBUG: 00:00:31.3190449 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:31.3213863 '4' packages received in the last request. DEBUG: 00:00:31.4008457 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:31.4050312 '0' packages received in the last request. DEBUG: 00:00:31.4105093 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:31.4121019 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:31.5895111 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:31.5916447 Calling 'NuGetRequest'::'GetPackageById', 'Az.Cdn'. DEBUG: 00:00:31.7509645 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Cdn'. DEBUG: 00:00:31.7525906 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Cdn'' for ''. DEBUG: 00:00:31.7557391 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Cdn'&$skip=0&$top=40'. DEBUG: 00:00:31.9979697 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Cdn'&$skip=0&$top=40'. DEBUG: 00:00:32.0022349 '19' packages received in the last request. DEBUG: 00:00:32.0048692 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:32.0063750 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:32.2105053 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:32.2122008 Calling 'NuGetRequest'::'GetPackageById', 'Az.CognitiveServices'. DEBUG: 00:00:32.3580304 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.CognitiveServices'. DEBUG: 00:00:32.3596151 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.CognitiveServices'' for ''. DEBUG: 00:00:32.3634895 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.CognitiveServices'&$skip=0&$top=40'. DEBUG: 00:00:32.6142362 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.CognitiveServices'&$skip=0&$top=40'. DEBUG: 00:00:32.6190601 '22' packages received in the last request. DEBUG: 00:00:32.6218676 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:32.6238123 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:32.8065619 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:32.8083114 Calling 'NuGetRequest'::'GetPackageById', 'Az.Compute'. DEBUG: 00:00:32.9766849 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Compute'. DEBUG: 00:00:32.9784572 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'' for ''. DEBUG: 00:00:32.9816633 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=0&$top=40'. DEBUG: 00:00:33.3254216 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=0&$top=40'. DEBUG: 00:00:33.3369593 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=80&$top=40'. DEBUG: 00:00:33.3371087 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=120&$top=40'. DEBUG: 00:00:33.3372542 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=40&$top=40'. DEBUG: 00:00:33.3374033 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=160&$top=40'. DEBUG: 00:00:33.4671276 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=80&$top=40'. DEBUG: 00:00:33.4714057 '0' packages received in the last request. DEBUG: 00:00:33.5204747 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=120&$top=40'. DEBUG: 00:00:33.5247596 '0' packages received in the last request. DEBUG: 00:00:33.5433103 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=160&$top=40'. DEBUG: 00:00:33.5473890 '0' packages received in the last request. DEBUG: 00:00:33.6425180 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Compute'&$skip=40&$top=40'. DEBUG: 00:00:33.6466546 '8' packages received in the last request. DEBUG: 00:00:33.6490519 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:33.6506512 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:33.8557799 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:33.8576509 Calling 'NuGetRequest'::'GetPackageById', 'Az.ContainerInstance'. DEBUG: 00:00:34.0509935 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.ContainerInstance'. DEBUG: 00:00:34.0526559 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ContainerInstance'' for ''. DEBUG: 00:00:34.0566293 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ContainerInstance'&$skip=0&$top=40'. DEBUG: 00:00:34.2548214 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ContainerInstance'&$skip=0&$top=40'. DEBUG: 00:00:34.2590783 '11' packages received in the last request. DEBUG: 00:00:34.2615640 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:34.2630690 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:34.4324566 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:34.4341962 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:34.5869761 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:34.5885494 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:34.5916632 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:34.7800199 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:34.7875183 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:34.7876890 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:34.7878416 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:34.7879930 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:34.8714412 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:34.8754915 '0' packages received in the last request. DEBUG: 00:00:34.9522381 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:34.9564453 '0' packages received in the last request. DEBUG: 00:00:34.9807974 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:34.9845263 '4' packages received in the last request. DEBUG: 00:00:35.0611318 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:35.0652479 '0' packages received in the last request. DEBUG: 00:00:35.0671335 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:35.0689449 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:35.2757107 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:35.2774279 Calling 'NuGetRequest'::'GetPackageById', 'Az.ContainerRegistry'. DEBUG: 00:00:35.4421595 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.ContainerRegistry'. DEBUG: 00:00:35.4440455 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ContainerRegistry'' for ''. DEBUG: 00:00:35.4481600 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ContainerRegistry'&$skip=0&$top=40'. DEBUG: 00:00:36.1141777 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ContainerRegistry'&$skip=0&$top=40'. DEBUG: 00:00:36.1185757 '15' packages received in the last request. DEBUG: 00:00:36.1213256 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:36.1228385 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:36.3698469 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:36.3717963 Calling 'NuGetRequest'::'GetPackageById', 'Az.CosmosDB'. DEBUG: 00:00:36.5428904 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.CosmosDB'. DEBUG: 00:00:36.5444246 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.CosmosDB'' for ''. DEBUG: 00:00:36.5476516 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.CosmosDB'&$skip=0&$top=40'. DEBUG: 00:00:36.7178214 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.CosmosDB'&$skip=0&$top=40'. DEBUG: 00:00:36.7220543 '10' packages received in the last request. DEBUG: 00:00:36.7244552 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:36.7259933 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:36.9389986 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:36.9406803 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:37.1085411 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:37.1101586 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:37.1131691 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:37.3022496 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:37.3095541 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:37.3097047 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:37.3098451 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:37.3099894 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:37.4088284 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:37.4129256 '0' packages received in the last request. DEBUG: 00:00:37.5053544 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:37.5094610 '0' packages received in the last request. DEBUG: 00:00:37.5334875 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:37.5354720 '4' packages received in the last request. DEBUG: 00:00:37.6201894 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:37.6242748 '0' packages received in the last request. DEBUG: 00:00:37.6259868 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:37.6276311 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:37.7903431 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:37.7919802 Calling 'NuGetRequest'::'GetPackageById', 'Az.DataBoxEdge'. DEBUG: 00:00:37.9585631 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DataBoxEdge'. DEBUG: 00:00:37.9602125 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataBoxEdge'' for ''. DEBUG: 00:00:37.9632624 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataBoxEdge'&$skip=0&$top=40'. DEBUG: 00:00:38.1596084 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataBoxEdge'&$skip=0&$top=40'. DEBUG: 00:00:38.1638901 '4' packages received in the last request. DEBUG: 00:00:38.1658735 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:38.1677074 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:38.3799323 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:38.3815360 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:38.5502047 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:38.5518075 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:38.5549087 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:38.8589280 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:38.8665124 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:38.8666694 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:38.8668650 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:38.8670483 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:39.0604090 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:39.0646261 '4' packages received in the last request. DEBUG: 00:00:39.0891324 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:39.0929074 '0' packages received in the last request. DEBUG: 00:00:39.1818829 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:39.1820363 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:39.1880175 '0' packages received in the last request. DEBUG: 00:00:39.1900982 '0' packages received in the last request. DEBUG: 00:00:39.1916155 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:39.1937093 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:39.4484073 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:39.4502629 Calling 'NuGetRequest'::'GetPackageById', 'Az.Databricks'. DEBUG: 00:00:39.6320110 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Databricks'. DEBUG: 00:00:39.6336872 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Databricks'' for ''. DEBUG: 00:00:39.6369165 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Databricks'&$skip=0&$top=40'. DEBUG: 00:00:39.8169664 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Databricks'&$skip=0&$top=40'. DEBUG: 00:00:39.8216069 '7' packages received in the last request. DEBUG: 00:00:39.8238548 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:39.8262822 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:40.1076618 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:40.1094409 Calling 'NuGetRequest'::'GetPackageById', 'Az.DataFactory'. DEBUG: 00:00:40.3108222 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DataFactory'. DEBUG: 00:00:40.3124136 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataFactory'' for ''. DEBUG: 00:00:40.3154087 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataFactory'&$skip=0&$top=40'. DEBUG: 00:00:40.7165399 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataFactory'&$skip=0&$top=40'. DEBUG: 00:00:40.7207215 '27' packages received in the last request. DEBUG: 00:00:40.7235991 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:40.7250935 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:40.9951496 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:40.9969374 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:41.1806657 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:41.1824050 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:41.1853765 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:41.3695022 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:41.3767949 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:41.3769455 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:41.3770993 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:41.3773047 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:41.4950540 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:41.4990976 '4' packages received in the last request. DEBUG: 00:00:41.5557778 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:41.5601719 '0' packages received in the last request. DEBUG: 00:00:41.5726113 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:41.5782183 '0' packages received in the last request. DEBUG: 00:00:41.6482547 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:41.6524516 '0' packages received in the last request. DEBUG: 00:00:41.6542603 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:41.6558028 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:41.8853834 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:41.8871147 Calling 'NuGetRequest'::'GetPackageById', 'Az.DataLakeAnalytics'. DEBUG: 00:00:42.0472362 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DataLakeAnalytics'. DEBUG: 00:00:42.0488694 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataLakeAnalytics'' for ''. DEBUG: 00:00:42.0527675 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataLakeAnalytics'&$skip=0&$top=40'. DEBUG: 00:00:42.2165204 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataLakeAnalytics'&$skip=0&$top=40'. DEBUG: 00:00:42.2208928 '10' packages received in the last request. DEBUG: 00:00:42.2234061 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:42.2248875 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:42.4959081 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:42.4975358 Calling 'NuGetRequest'::'GetPackageById', 'Az.DataLakeStore'. DEBUG: 00:00:42.7070522 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DataLakeStore'. DEBUG: 00:00:42.7085873 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataLakeStore'' for ''. DEBUG: 00:00:42.7123627 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataLakeStore'&$skip=0&$top=40'. DEBUG: 00:00:42.9666357 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataLakeStore'&$skip=0&$top=40'. DEBUG: 00:00:42.9708306 '21' packages received in the last request. DEBUG: 00:00:42.9734224 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:42.9748770 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:43.1696895 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:43.1715037 Calling 'NuGetRequest'::'GetPackageById', 'Az.DataShare'. DEBUG: 00:00:43.3407438 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DataShare'. DEBUG: 00:00:43.3424085 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataShare'' for ''. DEBUG: 00:00:43.3456079 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataShare'&$skip=0&$top=40'. DEBUG: 00:00:43.5330368 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DataShare'&$skip=0&$top=40'. DEBUG: 00:00:43.5371028 '4' packages received in the last request. DEBUG: 00:00:43.5390818 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:43.5408566 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:43.7952380 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:43.7969429 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:43.9900493 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:43.9917756 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:43.9949572 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:44.2491971 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:44.2566139 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:44.2567732 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:44.2569266 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:44.2570709 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:44.3610551 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:44.3658577 '0' packages received in the last request. DEBUG: 00:00:44.3992476 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:44.4019931 '4' packages received in the last request. DEBUG: 00:00:44.4728591 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:44.4772477 '0' packages received in the last request. DEBUG: 00:00:44.4773991 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:44.4810646 '0' packages received in the last request. DEBUG: 00:00:44.4828768 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:44.4846854 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:44.6560555 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:44.6578737 Calling 'NuGetRequest'::'GetPackageById', 'Az.DesktopVirtualization'. DEBUG: 00:00:44.8168020 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DesktopVirtualization'. DEBUG: 00:00:44.8188263 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DesktopVirtualization'' for ''. DEBUG: 00:00:44.8228210 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DesktopVirtualization'&$skip=0&$top=40'. DEBUG: 00:00:44.9920540 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DesktopVirtualization'&$skip=0&$top=40'. DEBUG: 00:00:44.9963645 '6' packages received in the last request. DEBUG: 00:00:44.9988064 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:45.0004940 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:45.2507754 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:45.2526318 Calling 'NuGetRequest'::'GetPackageById', 'Az.DeploymentManager'. DEBUG: 00:00:45.4531444 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DeploymentManager'. DEBUG: 00:00:45.4550032 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DeploymentManager'' for ''. DEBUG: 00:00:45.4591039 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DeploymentManager'&$skip=0&$top=40'. DEBUG: 00:00:45.6742581 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DeploymentManager'&$skip=0&$top=40'. DEBUG: 00:00:45.6786234 '5' packages received in the last request. DEBUG: 00:00:45.6809415 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:45.6824312 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:45.9548878 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:45.9566851 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:46.1344314 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:46.1362736 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:46.1399323 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:46.2689441 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:46.2764047 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:46.2765514 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:46.2767347 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:46.2768455 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:46.3628062 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:46.3669996 '0' packages received in the last request. DEBUG: 00:00:46.4401305 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:46.4445238 '0' packages received in the last request. DEBUG: 00:00:46.4577850 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:46.4599702 '0' packages received in the last request. DEBUG: 00:00:46.5449707 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:46.5490782 '4' packages received in the last request. DEBUG: 00:00:46.5512910 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:46.5529916 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:46.8309838 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:46.8328047 Calling 'NuGetRequest'::'GetPackageById', 'Az.DevTestLabs'. DEBUG: 00:00:46.9771001 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.DevTestLabs'. DEBUG: 00:00:46.9787400 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DevTestLabs'' for ''. DEBUG: 00:00:46.9819405 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DevTestLabs'&$skip=0&$top=40'. DEBUG: 00:00:47.1969177 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.DevTestLabs'&$skip=0&$top=40'. DEBUG: 00:00:47.2012148 '10' packages received in the last request. DEBUG: 00:00:47.2035589 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:47.2050723 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:47.4329751 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:47.4346741 Calling 'NuGetRequest'::'GetPackageById', 'Az.Dns'. DEBUG: 00:00:47.5951552 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Dns'. DEBUG: 00:00:47.5966878 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Dns'' for ''. DEBUG: 00:00:47.5997334 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Dns'&$skip=0&$top=40'. DEBUG: 00:00:47.7469836 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Dns'&$skip=0&$top=40'. DEBUG: 00:00:47.7513766 '14' packages received in the last request. DEBUG: 00:00:47.7531896 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:47.7550783 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:47.9626528 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:47.9646476 Calling 'NuGetRequest'::'GetPackageById', 'Az.EventGrid'. DEBUG: 00:00:48.1624742 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.EventGrid'. DEBUG: 00:00:48.1640703 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.EventGrid'' for ''. DEBUG: 00:00:48.1676510 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.EventGrid'&$skip=0&$top=40'. DEBUG: 00:00:48.3829326 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.EventGrid'&$skip=0&$top=40'. DEBUG: 00:00:48.3871473 '16' packages received in the last request. DEBUG: 00:00:48.3896759 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:48.3912559 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:48.6255133 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:48.6271646 Calling 'NuGetRequest'::'GetPackageById', 'Az.EventHub'. DEBUG: 00:00:48.8200045 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.EventHub'. DEBUG: 00:00:48.8216093 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.EventHub'' for ''. DEBUG: 00:00:48.8251348 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.EventHub'&$skip=0&$top=40'. DEBUG: 00:00:49.0411411 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.EventHub'&$skip=0&$top=40'. DEBUG: 00:00:49.0453325 '20' packages received in the last request. DEBUG: 00:00:49.0480670 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:49.0495756 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:49.2821950 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:49.2840293 Calling 'NuGetRequest'::'GetPackageById', 'Az.FrontDoor'. DEBUG: 00:00:49.4668322 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.FrontDoor'. DEBUG: 00:00:49.4683992 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.FrontDoor'' for ''. DEBUG: 00:00:49.4711356 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.FrontDoor'&$skip=0&$top=40'. DEBUG: 00:00:49.6148545 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.FrontDoor'&$skip=0&$top=40'. DEBUG: 00:00:49.6185834 '17' packages received in the last request. DEBUG: 00:00:49.6213215 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:49.6229756 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:49.8795552 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:49.8811864 Calling 'NuGetRequest'::'GetPackageById', 'Az.Functions'. DEBUG: 00:00:50.0266946 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Functions'. DEBUG: 00:00:50.0282127 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Functions'' for ''. DEBUG: 00:00:50.0309286 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Functions'&$skip=0&$top=40'. DEBUG: 00:00:50.2515384 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Functions'&$skip=0&$top=40'. DEBUG: 00:00:50.2552890 '7' packages received in the last request. DEBUG: 00:00:50.2570346 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:50.2588953 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:50.5059726 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:50.5080561 Calling 'NuGetRequest'::'GetPackageById', 'Az.HDInsight'. DEBUG: 00:00:50.7040962 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.HDInsight'. DEBUG: 00:00:50.7057246 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.HDInsight'' for ''. DEBUG: 00:00:50.7083700 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.HDInsight'&$skip=0&$top=40'. DEBUG: 00:00:50.9408976 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.HDInsight'&$skip=0&$top=40'. DEBUG: 00:00:50.9451391 '22' packages received in the last request. DEBUG: 00:00:50.9476027 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:50.9494271 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:51.2092862 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:51.2109103 Calling 'NuGetRequest'::'GetPackageById', 'Az.HealthcareApis'. DEBUG: 00:00:51.3556208 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.HealthcareApis'. DEBUG: 00:00:51.3574630 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.HealthcareApis'' for ''. DEBUG: 00:00:51.3617128 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.HealthcareApis'&$skip=0&$top=40'. DEBUG: 00:00:51.6420507 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.HealthcareApis'&$skip=0&$top=40'. DEBUG: 00:00:51.6456818 '7' packages received in the last request. DEBUG: 00:00:51.6479384 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:51.6494549 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:51.9109625 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:51.9125792 Calling 'NuGetRequest'::'GetPackageById', 'Az.IotHub'. DEBUG: 00:00:52.1025383 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.IotHub'. DEBUG: 00:00:52.1047160 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.IotHub'' for ''. DEBUG: 00:00:52.1076977 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.IotHub'&$skip=0&$top=40'. DEBUG: 00:00:52.3045035 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.IotHub'&$skip=0&$top=40'. DEBUG: 00:00:52.3086366 '27' packages received in the last request. DEBUG: 00:00:52.3112299 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:52.3129021 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:52.5735296 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:52.5759231 Calling 'NuGetRequest'::'GetPackageById', 'Az.KeyVault'. DEBUG: 00:00:52.8094999 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.KeyVault'. DEBUG: 00:00:52.8110885 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.KeyVault'' for ''. DEBUG: 00:00:52.8137347 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.KeyVault'&$skip=0&$top=40'. DEBUG: 00:00:53.0539531 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.KeyVault'&$skip=0&$top=40'. DEBUG: 00:00:53.0582435 '32' packages received in the last request. DEBUG: 00:00:53.0614330 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:53.0629136 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:53.2710371 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:53.2728016 Calling 'NuGetRequest'::'GetPackageById', 'Az.Kusto'. DEBUG: 00:00:53.4343370 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Kusto'. DEBUG: 00:00:53.4360479 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Kusto'' for ''. DEBUG: 00:00:53.4389409 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Kusto'&$skip=0&$top=40'. DEBUG: 00:00:53.6588429 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Kusto'&$skip=0&$top=40'. DEBUG: 00:00:53.6627697 '8' packages received in the last request. DEBUG: 00:00:53.6652065 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:53.6666989 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:53.8435132 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:53.8451594 Calling 'NuGetRequest'::'GetPackageById', 'Az.LogicApp'. DEBUG: 00:00:54.0237417 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.LogicApp'. DEBUG: 00:00:54.0255578 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.LogicApp'' for ''. DEBUG: 00:00:54.0314184 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.LogicApp'&$skip=0&$top=40'. DEBUG: 00:00:54.1173013 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.LogicApp'&$skip=0&$top=40'. DEBUG: 00:00:54.1212093 '16' packages received in the last request. DEBUG: 00:00:54.1238050 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:54.1252797 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:54.3288465 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:54.3304963 Calling 'NuGetRequest'::'GetPackageById', 'Az.MachineLearning'. DEBUG: 00:00:54.4838823 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.MachineLearning'. DEBUG: 00:00:54.4854677 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.MachineLearning'' for ''. DEBUG: 00:00:54.4888457 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.MachineLearning'&$skip=0&$top=40'. DEBUG: 00:00:54.6372142 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.MachineLearning'&$skip=0&$top=40'. DEBUG: 00:00:54.6440147 '12' packages received in the last request. DEBUG: 00:00:54.6469345 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:54.6484297 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:54.8508314 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:54.8525573 Calling 'NuGetRequest'::'GetPackageById', 'Az.Maintenance'. DEBUG: 00:00:55.0151569 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Maintenance'. DEBUG: 00:00:55.0167188 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Maintenance'' for ''. DEBUG: 00:00:55.0196981 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Maintenance'&$skip=0&$top=40'. DEBUG: 00:00:55.2200857 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Maintenance'&$skip=0&$top=40'. DEBUG: 00:00:55.2242787 '6' packages received in the last request. DEBUG: 00:00:55.2264754 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:55.2282174 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:55.4046854 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:55.4069909 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:00:55.5819523 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:00:55.5838564 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:00:55.5868180 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:55.7704624 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:00:55.7780696 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:55.7782471 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:55.7784986 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:55.7786891 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:55.9167000 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:00:55.9210307 '0' packages received in the last request. DEBUG: 00:00:55.9551918 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:00:55.9594503 '4' packages received in the last request. DEBUG: 00:00:55.9998304 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:00:56.0036019 '0' packages received in the last request. DEBUG: 00:00:56.0792259 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:00:56.0834016 '0' packages received in the last request. DEBUG: 00:00:56.0854346 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:56.0871479 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:56.3372578 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:56.3395321 Calling 'NuGetRequest'::'GetPackageById', 'Az.ManagedServices'. DEBUG: 00:00:56.5338952 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.ManagedServices'. DEBUG: 00:00:56.5355812 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ManagedServices'' for ''. DEBUG: 00:00:56.5394603 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ManagedServices'&$skip=0&$top=40'. DEBUG: 00:00:56.6575373 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ManagedServices'&$skip=0&$top=40'. DEBUG: 00:00:56.6618620 '7' packages received in the last request. DEBUG: 00:00:56.6640626 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:56.6657286 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:56.8639420 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:56.8656190 Calling 'NuGetRequest'::'GetPackageById', 'Az.MarketplaceOrdering'. DEBUG: 00:00:57.0223880 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.MarketplaceOrdering'. DEBUG: 00:00:57.0240177 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.MarketplaceOrdering'' for ''. DEBUG: 00:00:57.0280684 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.MarketplaceOrdering'&$skip=0&$top=40'. DEBUG: 00:00:57.1581471 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.MarketplaceOrdering'&$skip=0&$top=40'. DEBUG: 00:00:57.1624501 '10' packages received in the last request. DEBUG: 00:00:57.1647300 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:57.1661873 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:57.3604514 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:57.3621978 Calling 'NuGetRequest'::'GetPackageById', 'Az.Media'. DEBUG: 00:00:57.5317513 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Media'. DEBUG: 00:00:57.5333739 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Media'' for ''. DEBUG: 00:00:57.5365066 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Media'&$skip=0&$top=40'. DEBUG: 00:00:57.6431406 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Media'&$skip=0&$top=40'. DEBUG: 00:00:57.6473154 '10' packages received in the last request. DEBUG: 00:00:57.6495634 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:57.6511102 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:57.8657597 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:57.8675585 Calling 'NuGetRequest'::'GetPackageById', 'Az.Monitor'. DEBUG: 00:00:58.0338145 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Monitor'. DEBUG: 00:00:58.0353137 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Monitor'' for ''. DEBUG: 00:00:58.0382678 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Monitor'&$skip=0&$top=40'. DEBUG: 00:00:58.1539857 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Monitor'&$skip=0&$top=40'. DEBUG: 00:00:58.1582962 '22' packages received in the last request. DEBUG: 00:00:58.1611730 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:58.1626599 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:58.3395522 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:58.3412722 Calling 'NuGetRequest'::'GetPackageById', 'Az.Network'. DEBUG: 00:00:58.4905657 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Network'. DEBUG: 00:00:58.4922115 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'' for ''. DEBUG: 00:00:58.4957038 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=0&$top=40'. DEBUG: 00:00:58.8222457 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=0&$top=40'. DEBUG: 00:00:58.8553328 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=40&$top=40'. DEBUG: 00:00:58.8559562 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=80&$top=40'. DEBUG: 00:00:58.8561056 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=120&$top=40'. DEBUG: 00:00:58.8563280 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=160&$top=40'. DEBUG: 00:00:59.0235678 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=80&$top=40'. DEBUG: 00:00:59.0279225 '0' packages received in the last request. DEBUG: 00:00:59.1027311 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=120&$top=40'. DEBUG: 00:00:59.1072080 '0' packages received in the last request. DEBUG: 00:00:59.1118572 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=40&$top=40'. DEBUG: 00:00:59.1193419 '9' packages received in the last request. DEBUG: 00:00:59.2417301 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Network'&$skip=160&$top=40'. DEBUG: 00:00:59.2461818 '0' packages received in the last request. DEBUG: 00:00:59.2479881 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:00:59.2497767 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:00:59.4770786 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:00:59.4787331 Calling 'NuGetRequest'::'GetPackageById', 'Az.NotificationHubs'. DEBUG: 00:00:59.6610770 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.NotificationHubs'. DEBUG: 00:00:59.6626944 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.NotificationHubs'' for ''. DEBUG: 00:00:59.6666595 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.NotificationHubs'&$skip=0&$top=40'. DEBUG: 00:01:00.0454248 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.NotificationHubs'&$skip=0&$top=40'. DEBUG: 00:01:00.0498137 '10' packages received in the last request. DEBUG: 00:01:00.0523345 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:00.0538991 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:00.3026290 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:00.3043217 Calling 'NuGetRequest'::'GetPackageById', 'Az.OperationalInsights'. DEBUG: 00:01:00.4985866 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.OperationalInsights'. DEBUG: 00:01:00.5001669 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.OperationalInsights'' for ''. DEBUG: 00:01:00.5040615 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.OperationalInsights'&$skip=0&$top=40'. DEBUG: 00:01:00.6680833 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.OperationalInsights'&$skip=0&$top=40'. DEBUG: 00:01:00.6723493 '19' packages received in the last request. DEBUG: 00:01:00.6752636 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:00.6767276 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:00.9108750 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:00.9125709 Calling 'NuGetRequest'::'GetPackageById', 'Az.PolicyInsights'. DEBUG: 00:01:01.0847272 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.PolicyInsights'. DEBUG: 00:01:01.0863928 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PolicyInsights'' for ''. DEBUG: 00:01:01.0901946 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PolicyInsights'&$skip=0&$top=40'. DEBUG: 00:01:01.1700622 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PolicyInsights'&$skip=0&$top=40'. DEBUG: 00:01:01.1741838 '19' packages received in the last request. DEBUG: 00:01:01.1769419 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:01.1785590 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:01.3944229 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:01.3961634 Calling 'NuGetRequest'::'GetPackageById', 'Az.PowerBIEmbedded'. DEBUG: 00:01:01.5607192 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.PowerBIEmbedded'. DEBUG: 00:01:01.5623295 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PowerBIEmbedded'' for ''. DEBUG: 00:01:01.5661964 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PowerBIEmbedded'&$skip=0&$top=40'. DEBUG: 00:01:01.7361001 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PowerBIEmbedded'&$skip=0&$top=40'. DEBUG: 00:01:01.7402099 '11' packages received in the last request. DEBUG: 00:01:01.7426676 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:01.7443355 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:01.9503265 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:01.9522290 Calling 'NuGetRequest'::'GetPackageById', 'Az.PrivateDns'. DEBUG: 00:01:02.1073669 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.PrivateDns'. DEBUG: 00:01:02.1089599 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PrivateDns'' for ''. DEBUG: 00:01:02.1121924 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PrivateDns'&$skip=0&$top=40'. DEBUG: 00:01:02.3288422 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.PrivateDns'&$skip=0&$top=40'. DEBUG: 00:01:02.3331377 '8' packages received in the last request. DEBUG: 00:01:02.3355804 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:02.3374604 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:02.5478846 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:02.5495762 Calling 'NuGetRequest'::'GetPackageById', 'Az.RecoveryServices'. DEBUG: 00:01:02.7216734 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.RecoveryServices'. DEBUG: 00:01:02.7234213 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'' for ''. DEBUG: 00:01:02.7272571 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=0&$top=40'. DEBUG: 00:01:02.9281265 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=0&$top=40'. DEBUG: 00:01:02.9397458 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=80&$top=40'. DEBUG: 00:01:02.9398905 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=40&$top=40'. DEBUG: 00:01:02.9400400 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=160&$top=40'. DEBUG: 00:01:02.9402817 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=120&$top=40'. DEBUG: 00:01:03.1084887 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=40&$top=40'. DEBUG: 00:01:03.1157506 '1' packages received in the last request. DEBUG: 00:01:03.1159331 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=80&$top=40'. DEBUG: 00:01:03.1202231 '0' packages received in the last request. DEBUG: 00:01:03.1929755 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=160&$top=40'. DEBUG: 00:01:03.1973033 '0' packages received in the last request. DEBUG: 00:01:03.2581958 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RecoveryServices'&$skip=120&$top=40'. DEBUG: 00:01:03.2635749 '0' packages received in the last request. DEBUG: 00:01:03.2664572 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:03.2680952 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:03.5099535 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:03.5116593 Calling 'NuGetRequest'::'GetPackageById', 'Az.RedisCache'. DEBUG: 00:01:03.6732538 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.RedisCache'. DEBUG: 00:01:03.6750747 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RedisCache'' for ''. DEBUG: 00:01:03.6800563 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RedisCache'&$skip=0&$top=40'. DEBUG: 00:01:03.8135572 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.RedisCache'&$skip=0&$top=40'. DEBUG: 00:01:03.8183476 '13' packages received in the last request. DEBUG: 00:01:03.8207931 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:03.8225063 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:04.0494017 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:04.0510660 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:01:04.2144058 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:01:04.2160055 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:01:04.2190633 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:01:04.5145956 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:01:04.5218804 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:01:04.5220298 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:01:04.5221793 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:01:04.5223460 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:01:04.6331620 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:01:04.6372142 '0' packages received in the last request. DEBUG: 00:01:04.7029148 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:01:04.7070641 '0' packages received in the last request. DEBUG: 00:01:04.7126679 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:01:04.7150964 '4' packages received in the last request. DEBUG: 00:01:04.8561194 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:01:04.8601677 '0' packages received in the last request. DEBUG: 00:01:04.8619054 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:04.8637732 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:05.1255852 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:05.1273537 Calling 'NuGetRequest'::'GetPackageById', 'Az.Relay'. DEBUG: 00:01:05.3148922 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Relay'. DEBUG: 00:01:05.3164508 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Relay'' for ''. DEBUG: 00:01:05.3197677 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Relay'&$skip=0&$top=40'. DEBUG: 00:01:05.5238306 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Relay'&$skip=0&$top=40'. DEBUG: 00:01:05.5281198 '11' packages received in the last request. DEBUG: 00:01:05.5305373 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:05.5322237 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:05.7697932 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:05.7716867 Calling 'NuGetRequest'::'GetPackageById', 'Az.Resources'. DEBUG: 00:01:05.9712127 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Resources'. DEBUG: 00:01:05.9731511 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'' for ''. DEBUG: 00:01:05.9761640 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=0&$top=40'. DEBUG: 00:01:06.3461954 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=0&$top=40'. DEBUG: 00:01:06.3555830 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=80&$top=40'. DEBUG: 00:01:06.3557352 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=40&$top=40'. DEBUG: 00:01:06.3560459 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=160&$top=40'. DEBUG: 00:01:06.3562359 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=120&$top=40'. DEBUG: 00:01:06.5509756 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=40&$top=40'. DEBUG: 00:01:06.5550720 '11' packages received in the last request. DEBUG: 00:01:06.6352380 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=80&$top=40'. DEBUG: 00:01:06.6408595 '0' packages received in the last request. DEBUG: 00:01:06.6949968 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=120&$top=40'. DEBUG: 00:01:06.6991220 '0' packages received in the last request. DEBUG: 00:01:06.7424902 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Resources'&$skip=160&$top=40'. DEBUG: 00:01:06.7466820 '0' packages received in the last request. DEBUG: 00:01:06.7484035 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:06.7501081 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:07.0619153 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:07.0635792 Calling 'NuGetRequest'::'GetPackageById', 'Az.ServiceBus'. DEBUG: 00:01:07.2442352 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.ServiceBus'. DEBUG: 00:01:07.2458139 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ServiceBus'' for ''. DEBUG: 00:01:07.2488051 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ServiceBus'&$skip=0&$top=40'. DEBUG: 00:01:07.5152273 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ServiceBus'&$skip=0&$top=40'. DEBUG: 00:01:07.5194038 '14' packages received in the last request. DEBUG: 00:01:07.5219931 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:07.5234686 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:07.7270828 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:07.7287152 Calling 'NuGetRequest'::'GetPackageById', 'Az.ServiceFabric'. DEBUG: 00:01:07.8876881 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.ServiceFabric'. DEBUG: 00:01:07.8893272 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ServiceFabric'' for ''. DEBUG: 00:01:07.8930206 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ServiceFabric'&$skip=0&$top=40'. DEBUG: 00:01:08.1232060 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.ServiceFabric'&$skip=0&$top=40'. DEBUG: 00:01:08.1274322 '20' packages received in the last request. DEBUG: 00:01:08.1302009 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:08.1317415 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:08.2963564 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:08.2980586 Calling 'NuGetRequest'::'GetPackageById', 'Az.SignalR'. DEBUG: 00:01:08.4739482 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.SignalR'. DEBUG: 00:01:08.4757517 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SignalR'' for ''. DEBUG: 00:01:08.4788308 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SignalR'&$skip=0&$top=40'. DEBUG: 00:01:08.6247976 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SignalR'&$skip=0&$top=40'. DEBUG: 00:01:08.6288499 '13' packages received in the last request. DEBUG: 00:01:08.6312890 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:08.6328572 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:08.8111094 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:08.8127698 Calling 'NuGetRequest'::'GetPackageById', 'Az.Sql'. DEBUG: 00:01:08.9759187 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Sql'. DEBUG: 00:01:08.9777861 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'' for ''. DEBUG: 00:01:08.9816255 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=0&$top=40'. DEBUG: 00:01:09.2817104 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=0&$top=40'. DEBUG: 00:01:09.2953229 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=40&$top=40'. DEBUG: 00:01:09.2954688 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=120&$top=40'. DEBUG: 00:01:09.2956356 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=160&$top=40'. DEBUG: 00:01:09.2958131 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=80&$top=40'. DEBUG: 00:01:09.5596569 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=120&$top=40'. DEBUG: 00:01:09.5637218 '0' packages received in the last request. DEBUG: 00:01:09.5835469 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=40&$top=40'. DEBUG: 00:01:09.5876027 '13' packages received in the last request. DEBUG: 00:01:09.6799593 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=80&$top=40'. DEBUG: 00:01:09.6845088 '0' packages received in the last request. DEBUG: 00:01:09.7388756 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=160&$top=40'. DEBUG: 00:01:09.7430820 '0' packages received in the last request. DEBUG: 00:01:09.7457246 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:09.7476670 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:09.9955321 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:09.9972560 Calling 'NuGetRequest'::'GetPackageById', 'Az.SqlVirtualMachine'. DEBUG: 00:01:10.1837267 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.SqlVirtualMachine'. DEBUG: 00:01:10.1855389 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SqlVirtualMachine'' for ''. DEBUG: 00:01:10.1894196 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SqlVirtualMachine'&$skip=0&$top=40'. DEBUG: 00:01:10.5417997 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SqlVirtualMachine'&$skip=0&$top=40'. DEBUG: 00:01:10.5462037 '5' packages received in the last request. DEBUG: 00:01:10.5483160 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:10.5500107 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:10.7978790 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:10.7996056 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:01:11.1855476 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:01:11.1872695 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:01:11.1903242 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:01:11.3363757 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:01:11.3439526 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:01:11.3441072 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:01:11.3442555 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:01:11.3444010 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:01:11.4284015 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:01:11.4332858 '4' packages received in the last request. DEBUG: 00:01:11.5050311 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:01:11.5091976 '0' packages received in the last request. DEBUG: 00:01:11.5175683 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:01:11.5195639 '0' packages received in the last request. DEBUG: 00:01:11.5804189 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:01:11.5846525 '0' packages received in the last request. DEBUG: 00:01:11.5865617 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:11.5885293 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:11.9329816 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:11.9345872 Calling 'NuGetRequest'::'GetPackageById', 'Az.Storage'. DEBUG: 00:01:12.1124096 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Storage'. DEBUG: 00:01:12.1139924 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'' for ''. DEBUG: 00:01:12.1171310 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=0&$top=40'. DEBUG: 00:01:12.3482052 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=0&$top=40'. DEBUG: 00:01:12.3608820 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=40&$top=40'. DEBUG: 00:01:12.3610311 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=80&$top=40'. DEBUG: 00:01:12.3611797 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=120&$top=40'. DEBUG: 00:01:12.3613220 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=160&$top=40'. DEBUG: 00:01:12.5721326 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=80&$top=40'. DEBUG: 00:01:12.5771493 '0' packages received in the last request. DEBUG: 00:01:12.6831863 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=40&$top=40'. DEBUG: 00:01:12.6884924 '21' packages received in the last request. DEBUG: 00:01:12.7496539 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=160&$top=40'. DEBUG: 00:01:12.7543756 '0' packages received in the last request. DEBUG: 00:01:12.8631274 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=120&$top=40'. DEBUG: 00:01:12.8680155 '0' packages received in the last request. DEBUG: 00:01:12.8695020 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:12.8716959 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:13.1251988 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:13.1270173 Calling 'NuGetRequest'::'GetPackageById', 'Az.StorageSync'. DEBUG: 00:01:13.3134403 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.StorageSync'. DEBUG: 00:01:13.3152407 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageSync'' for ''. DEBUG: 00:01:13.3189791 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageSync'&$skip=0&$top=40'. DEBUG: 00:01:13.6086920 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageSync'&$skip=0&$top=40'. DEBUG: 00:01:13.6138601 '14' packages received in the last request. DEBUG: 00:01:13.6166269 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:13.6182979 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:13.9117638 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:13.9136300 Calling 'NuGetRequest'::'GetPackageById', 'Az.StreamAnalytics'. DEBUG: 00:01:14.0951475 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.StreamAnalytics'. DEBUG: 00:01:14.0969904 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StreamAnalytics'' for ''. DEBUG: 00:01:14.1015225 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StreamAnalytics'&$skip=0&$top=40'. DEBUG: 00:01:14.3933059 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StreamAnalytics'&$skip=0&$top=40'. DEBUG: 00:01:14.3980994 '9' packages received in the last request. DEBUG: 00:01:14.4005898 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:14.4021067 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:14.6442876 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:14.6461720 Calling 'NuGetRequest'::'GetPackageById', 'Az.Support'. DEBUG: 00:01:14.8413130 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Support'. DEBUG: 00:01:14.8429667 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Support'' for ''. DEBUG: 00:01:14.8463841 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Support'&$skip=0&$top=40'. DEBUG: 00:01:15.0025538 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Support'&$skip=0&$top=40'. DEBUG: 00:01:15.0072563 '2' packages received in the last request. DEBUG: 00:01:15.0094794 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:15.0111398 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:15.2041011 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:15.2058920 Calling 'NuGetRequest'::'GetPackageById', 'Az.Accounts'. DEBUG: 00:01:15.4043038 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Accounts'. DEBUG: 00:01:15.4061302 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'' for ''. DEBUG: 00:01:15.4093812 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:01:15.5725853 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=0&$top=40'. DEBUG: 00:01:15.5803302 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:01:15.5804851 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:01:15.5806429 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:01:15.5808140 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:01:15.6681756 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=40&$top=40'. DEBUG: 00:01:15.6730922 '4' packages received in the last request. DEBUG: 00:01:15.7409559 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=120&$top=40'. DEBUG: 00:01:15.7456367 '0' packages received in the last request. DEBUG: 00:01:15.7528016 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=80&$top=40'. DEBUG: 00:01:15.7549142 '0' packages received in the last request. DEBUG: 00:01:16.1000498 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Accounts'&$skip=160&$top=40'. DEBUG: 00:01:16.1057357 '0' packages received in the last request. DEBUG: 00:01:16.1073846 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:16.1097954 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:16.2828535 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:16.2847895 Calling 'NuGetRequest'::'GetPackageById', 'Az.TrafficManager'. DEBUG: 00:01:16.5623729 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.TrafficManager'. DEBUG: 00:01:16.5710802 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.TrafficManager'' for ''. DEBUG: 00:01:16.5753951 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.TrafficManager'&$skip=0&$top=40'. DEBUG: 00:01:16.8004648 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.TrafficManager'&$skip=0&$top=40'. DEBUG: 00:01:16.8055647 '12' packages received in the last request. DEBUG: 00:01:16.8083477 There are '0' registered sources in 'NuGet' provider. DEBUG: 00:01:16.8098910 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider. DEBUG: 00:01:17.0276741 Source 'https://www.powershellgallery.com/api/v2' is validated. DEBUG: 00:01:17.0293581 Calling 'NuGetRequest'::'GetPackageById', 'Az.Websites'. DEBUG: 00:01:17.2028736 Calling 'HttpClientPackageRepository'::'FindPackagesById', 'Az.Websites'. DEBUG: 00:01:17.2044784 Calling 'NuGetClient'::'FindPackage'. VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'' for ''. DEBUG: 00:01:17.2077216 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=0&$top=40'. DEBUG: 00:01:17.4827234 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=0&$top=40'. DEBUG: 00:01:17.4874006 '33' packages received in the last request. DEBUG: 00:01:17.4997616 Returning the call 'NuGetClient'::'GetPackageDependencies'. DEBUG: 00:01:17.5707821 Calling 'NuGetClient'::'InstallPackage'. VERBOSE: InstallPackage' - name='Az.Accounts', version='2.2.5',destination='C:\Users\RJain\AppData\Local\Temp\5\1276414795' VERBOSE: DownloadPackage' - name='Az.Accounts', version='2.2.5',destination='C:\Users\RJain\AppData\Local\Temp\5\1276414795\Az.Accounts\Az.Accounts.nupkg', uri='https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.5' VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.5'. VERBOSE: An error occurred while sending the request. DEBUG: 00:01:18.0093327 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.PackageManagement.NuGetProvider.NuGetClient.d15.MoveNext() VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.5' for '2' more times VERBOSE: An error occurred while sending the request. DEBUG: 00:01:18.4120021 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.PackageManagement.NuGetProvider.NuGetClient.d15.MoveNext() VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.5' for '1' more times VERBOSE: An error occurred while sending the request. DEBUG: 00:01:18.7443189 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.PackageManagement.NuGetProvider.NuGetClient.d__15.MoveNext() VERBOSE: Retry downloading 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.5' for '0' more times VERBOSE: Downloading package 'Az.Accounts' failed, please make sure 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.5' is accessable. WARNING: Source Location 'https://www.powershellgallery.com/api/v2/package/Az.Accounts/2.2.5' is not valid.

Confirm Continue with this operation? [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A

Confirm Package 'Az.Accounts' failed to download. [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): A PackageManagement\Install-Package : Package 'Az.Accounts' failed to download. At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21

lapayne commented 3 years ago

I was seeing this with 7.1.0p3 and install-module posh-git. Turned out it was protected folder access. Allowing pwsh through the block resolved the issue for me.

This was the exact solution when using PSH 7.1.2

mhectorgato commented 3 years ago

Powershell 7.1.2 Controlled Folder Access already off Ran as Admin -- entered my creds in the UAC

Install-Module AZ -AllowClobber -Force

Got the error: ....\Documents\PowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 Line | 9711 | … talledPackages = PackageManagement\Install-Package @PSBoundParameters | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Administrator rights are required to install or update. Log on to the computer with an account that | has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your | command. You can also try running the Windows PowerShell session with elevated rights (Run as | Administrator).

attrib75 commented 3 years ago

Also seeing this same issue

saradha1307 commented 3 years ago

it worked for me after changing the controlled folder access to OFF.

ayeltsov commented 3 years ago

Observation: this thread has grown unmanageably large, plus there are up several different root that all result in the same message:

Mine is of the latter category. How to proceed? Probably chip away different causes into different bugs. The other odd thing is that this has been open for a year and is not assigned to anyone. Is anyone from product team engaged here ?

VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/Az.ContainerRegistry/2.2.2'.           VERBOSE: Completed downloading 'Az.ContainerRegistry'.
Install-Package: C:\program files\powershell\7\Modules\PowerShellGet\PSModule.psm1:9711
Line |
9711 |  … talledPackages = PackageManagement\Install-Package @PSBoundParameters
     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Administrator rights are required to install or update. Log on to the computer with an account that
     | has Administrator rights, and then try again, or install by adding "-Scope CurrentUser" to your
     | command. You can also try running the Windows PowerShell session with elevated rights (Run as
     | Administrator).

DEBUG: 00:00:30.7853626 System.IO.IOException: The process cannot access the file 'C:\Users\ayeltsov\AppData\Local\Temp\374617517\Az.ContainerRegistry.2.2.2\Az.ContainerRegistry.2.2.2.nupkg' because it is being used by another process.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at Microsoft.PackageManagement.NuGetProvider.NuGetClient.InstallPackage(String packageName, String version, NuGetRequest request, PackageSource source, String queryUrl, String packageHash, String packageHashAlgorithm, ProgressTracker progressTracker)
codaamok commented 3 years ago

Similar discussion here: https://github.com/PowerShell/PowerShell/issues/12777

I experienced the same. Controlled folder access was already disabled for me. However, I enabled it and added pwsh.exe. I was still receiving the error. Some conversation about files in use... so I rebooted and now I no longer see the issue.

FWIW I saw this when running the following:

update-module psreadline -AllowPrerelease -Force -RequiredVersion 2.2.0-beta3

and

install-module psreadline -AllowPrerelease -Force -RequiredVersion 2.2.0-beta3
connde commented 2 years ago

For information, I was getting the same error, but when I tried using Powershell ISE with admin rights I was able to uninstall AzureRM and install Az module without issues.

PowerShell 7.1.4

StevenBucher98 commented 2 years ago

@connde can you show us the output of $PSVersionTable and let us know the version of PowerShellGet and PackageManagement? You can run gmo PowerShellGet, PackageManagement -ListAvailable.

connde commented 2 years ago

Sure, here it is. Note that I installed PowerShell using Microsoft Store.

PS C:\Users\lucas> $PSVersionTable

Name Value


PSVersion 7.1.4 PSEdition Core GitCommitId 7.1.4 OS Microsoft Windows 10.0.19043 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

PS C:\Users\lucas> gmo PowerShellGet, PackageManagement -ListAvailable

Directory: C:\program files\windowsapps\microsoft.powershell_7.1.4.0_x64__8wekyb3d8bbwe\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands


Script 1.4.7 PackageManagement Desk {Find-Package, Get-Package, Get-PackagePr… Script 2.2.5 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Mod…

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version PreRelease Name PSEdition ExportedCommands


Binary 1.0.0.1 PackageManagement Desk {Find-Package, Get-Package, Get-PackagePr… Script 1.0.0.1 PowerShellGet Desk {Install-Module, Find-Module, Save-Module…

PS C:\Users\lucas>

StevenBucher98 commented 2 years ago

Thank you @connde! We suspect it might have something to do with your path of your PowerShell that is making PowerShellGet v2 fail. One suggestion we have is to try and install the latest .msi file which you can find here: PowerShell Releases

connde commented 2 years ago

Hi @StevenBucher98, that means Windows Store installation is not recommended currently?

justinainsworth commented 2 years ago

I am able to consistently reproduce this issue. In the case where I can consistently reproduce it is when a module is installed via install-module, and the module that is being installed has a defined dependency that uses 4 part semantic versioning, AND that dependent module is already installed.

There are a few modules that I see happen a lot with MSAL.PS, MicrosoftTeams, Microsoft.SharePoint.Online.Powershell are a few examples.

You can reproduce it by creating a new test module, list any of those modules as dependencies (MSAL.PS is a good one to use). The initial install will work fine. Bump the version of the test module, and upgrade it. PowershellGet will attempt to reinstall the dependency, and when it does, it will corrupt the already installed dependent module, and throw the error about admin rights being required.

NeighborGeek commented 2 years ago

I just ran into this issue for the first time. I found @philosophicles detailed issue in PowershellGet Issue #622 was spot on in describing problems with the error message itself as well as possible causes not mentioned by the error. In my case, the issue is that controlled folder access is blocking access to the folder pwsh is trying to save the module to. I confirmed this by going to Windows Security > Virus & Threat Protection > Protection History and selecting the most recent entry for a blocked item. I was able to select 'allow on device' to stop controlled folder access from blocking this, and the module then installed successfully.

One intersting note, changing the install scope from the default of CurrentUser to AllUsers should have also avoided the block by CFA, since the module would now be installed under the Program Files path, but it still failed with a variant of the same error. I checked protection history again after this, and confirmed that there is no entry for CFA blocking access this time. I'm not sure what caused the error in this case.

Windows 11 Build 25169.1000 Powershell 7.2.5 PowershellGet 2.2.5

image image image