andibellstedt / packageupdateinfo Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Config file includes a last checked date & a min check date --> Both PS Editions align on this date, which means - Desktop is not searching for updates, when Core is started short before Desktop
ToDo: Make module aware of both versions by default (can be achieved by specifying different paths for export/import files)
Return error
Der Wert "PackageUpdate.Info[]" vom Typ "PackageUpdate.Info[]" kann nicht in den Typ "PackageUpdate.Info" konvertiert werden.
v 1.2.3.0
$modules=Get-InstalledModule
$graph=($modules|where {$_.name -like "Microsoft.Graph.*"}).name
$az=($modules|where {$_.name -like "Az.*"}).name
Set-PackageUpdateSetting -ExcludeModuleFromChecking ($graph+$az)
Get-PackageUpdateInfo -ShowOnlyNeededUpdate
It seems that Get-PackageUpdateInfo only considers ExcludeModuleFromChecking for filtering the output, but not when checking against the gallery. (makes it incredibly slow for Az and Microsoft.Graph with more than 122 sub-modules)
WARNING: Local version for module 'Az' is higher than online version: local v9.7.1 <-- v10.4.1 online
WARNING: Local version for module 'Az.KeyVault' is higher than online version: local v4.9.3 <-- v4.12.0 online
WARNING: Local version for module 'Az.Resources' is higher than online version: local v6.6.1 <-- v6.11.1 online
Because Az.KeyVault and Az.Resources are on the exclude-list and should not be checked. (Only the main module Az is needed)
Regards,
Thomas
P.S. Cloud you add an/more "real live" examples" in the man pages for Set-PackageUpdateSetting? (e.g. excluding Az.* and Mirosoft.Graph.*)
looks very useful thanks - have you seen this
S C:\projects\scripts> Get-PackageUpdateInfo
PackageManagement\Find-Package : ModuleManagement cannot handle '74' modules.The limit is 63.
Actual I get a warning (PackageUpdateInfo 1.2.1.0)
WARNING: Local version for module 'Az.CognitiveServices' is higher than online version: local v1.9.0 <-- v1.10.0 online
which seems a little bit strange to me.
Version Name Repository Description
1.9.0 Az.CognitiveServices PSGallery Microsoft Azure PowerShell - Cognitive [...]
All other version are displayed correct.
4.1.0 -> 4.1.1
4.13.0 -> 4.14.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.