[Bug]: Error Update-Module -Name AzureResourceInventory -AcceptLicense
Describe the bug
When launching the script, an error is thrown at the beginning related to the use of the -AcceptLicense parameter in Update-Module. The script executes correctly afterward. This error is non-blocking.
C:\Users\xx\xx\Documents\PowerShell\Modules\AzureResourceInventory\3.6.7\modules\Public\PublicFunctions\Invoke-ARI.ps1:271
Line |
271 | … Update-Module -Name AzureResourceInventory -AcceptLicense
| ~~~~~~~~~~~~~~
| A parameter cannot be found that matches parameter name 'AcceptLicense'.
To Reproduce Just launch the AzureResourceInventory script with PowerShell 7.5.1 installed.
Expected behavior No error should appear.
Screenshots N/A
Environment OS: Microsoft Windows 11 Enterprise Version: 10.0.26100 N/A build 26100 PSVersion : 7.5.1 PSEdition : Core
ARI Module version: 3.6.7
Installed with Install-PSResource -Name AzureResourceInventory -Scope CurrentUser
Azure cloud special setting Standard Azure commercial environment, no special settings.
Additional context
This error is related to PowerShell 7.5.1 not supporting the -AcceptLicense parameter on Update-Module.
Hello @bastienperez
That is very odd, I don't get that error, with the exact same version of components, wondering if it has something to do with the scope.
But even so, the -AcceptLicense is supported in the documentation for the PowerShellGet (PowerShellGet)
This Issue is stale and may be automatically close soon.