Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Run the following commands to trust the PSGallery:

Code Block
languagepowershell
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted

Run the following commands to define the names of the Azure PowerShell module collection and of any modules that are a dependency for other modules the collection:

...

Code Block
languagepowershell
$Modules, $DependencyModules$Dependencies = (Get-Module -Name "$PowerShellModuleName.*").Where({$_.Name -notin $DependsOnModuleNames},[System.Management.Automation.WhereOperatorSelectionMode]::Split)

...

Code Block
languagepowershell
$Modules | ForEach-Object { Remove-Module -Name $_.Name -Force }; $DependencyModules$Dependencies | ForEach-Object { Remove-Module -Name $_.Name -Force }

...