Versions Compared

Key

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

...

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

Run the code blocks in one of the following sections to update or install the latest version of the Azure PowerShell modules from the PSGallery: 

  • To update the modules:

    Code Block
    languagepowershell
    Get-Module -ListAvailable -Name "$PowerShellModuleName.*" | ForEach-Object { Update-Module -Name $_.Name -Verbose } 
  • To install or reinstall the modules:

    Code Block
    languagepowershell
    Save-Module -Path "$env:ProgramFiles\WindowsPowerShell\Modules" -Name $PowerShellModuleName -Force -Verbose
Note

There is a bug in version 3.0.0 of the Az.Accounts module that prevents sign in to Azure via the Web Account Manager (WAM) on Windows.

Run the following commands to disable the login via WAM functionality:

Code Block
languagepowershell
Update-AzConfig -EnableLoginByWam $false

...