Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/Az.Tools.Installer/Az.Tools.Installer.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Fix wildcard error in Install-AzModule
* Fix syntax errors in Windows Powershell'
ReleaseNotes = '* Fix bugs for Install-AzModule
* Fix syntax errors when run in Windows Powershell'

# Prerelease string of this module
# Prerelease = ''
Expand Down
3 changes: 3 additions & 0 deletions tools/Az.Tools.Installer/exports/Install-AzModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ function Install-AzModule {
$parameter.Add('RequiredVersion', $module['Az.Accounts'])
$module.Remove('Az.Accounts')
}
if ($RemovePrevious) {
Uninstall-Module -Name Az.Accounts -AllVersion -ErrorAction SilentlyContinue
}
Install-Module @parameter

$module.Keys | Foreach-Object {
Expand Down