While attempting to run PowerCLI commands after an upgrade to VCF 9.x PowerCLI, the commands cannot find the module file to various commands.
Get-Tag : m/dd/yyyy <Time> Get-Tag Could not load file or assembly'Newtonsoft. Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.At C:\temp\toCheck\tag.ps1:45 char :1+ Get-Tag+ + CategoryInfo : NotSpecified: (:) [Get-Tag], CisException + FullyQualifiedErrorId:VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTag.Error ,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.GetTag
In VCF PowerCLI 9.x a requirement of PowerShell 7.0.13 + was introduced. Please upgrade PowerShell to the newer version.
Prerequisite
Note: PowerShell 5.1 is being deprecated. We recommend installing a supported version of PowerShell to ensure compatibility and receive the latest updates and security fixes. As of today, PowerShell 7.4 or later is officially supported and is our minimum recommended version for use.
For more information, see PowerCLI compatibility matrixes.
See https://developer.broadcom.com/powercli/installation-guide for more details.