You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Warning ("Could not find uninstall candidate for {0}:{1} - module may require manual uninstall. Available versions are: {2}" -f $_.name,$version,($availableModules.Version -join ', '))
77
78
}
78
79
}
79
80
}
@@ -109,12 +110,17 @@ Uninstalling Az.AnalysisServices version 0.7.0
109
110
...
110
111
```
111
112
113
+
> [!NOTE]
114
+
> If this script can't match an exact dependent module version to uninstall, it won't uninstall _any_ version of that module. This is because there may be other versions
115
+
> of `Az` on your system which rely on these modules. In this case, the versions of the module that couldn't be found will be listed, if any were installed. You can
116
+
> then remove any old versions manually with `Uninstall-Module`.
117
+
112
118
Run this command for every version of Azure PowerShell that you want to uninstall. For convenience, the following
113
119
script will uninstall all versions of Az __except__ for the latest.
114
120
115
121
```powershell-interactive
116
122
$versions = (Get-InstalledModule Az -AllVersions | Select-Object Version)
Write-Warning ("Could not find uninstall candidate for {0}:{1} - module may require manual uninstall. Available versions are: {2}" -f $_.name,$version,($availableModules.Version -join ', '))
77
78
}
78
79
}
79
80
}
@@ -109,12 +110,17 @@ Uninstalling Az.AnalysisServices version 0.7.0
109
110
...
110
111
```
111
112
113
+
> [!NOTE]
114
+
> If this script can't match an exact dependency with the same version to uninstall, it won't uninstall _any_ version of that dependecy. This is because there may be
115
+
> other versions of the target module on your system which rely on these dependencies. In this case, the available versions of the dependency are listed.
116
+
> You can then remove any old versions manually with `Uninstall-Module`.
117
+
112
118
Run this command for every version of Azure PowerShell that you want to uninstall. For convenience, the following
113
119
script will uninstall all versions of Az __except__ for the latest.
114
120
115
121
```powershell-interactive
116
122
$versions = (Get-InstalledModule Az -AllVersions | Select-Object Version)
As the script runs, it will display the name and version of each submodule that is being
84
-
uninstalled.
100
+
uninstalled. To run the script to only see what would be deleted, without removing it,
101
+
use the `-WhatIf` option.
85
102
86
103
```output
87
104
Creating list of dependencies...
@@ -92,4 +109,16 @@ Uninstalling Azure.AnalysisServices version 0.4.7
92
109
...
93
110
```
94
111
95
-
Run this command for every version of Azure PowerShell that you want to uninstall.
112
+
> [!NOTE]
113
+
> If this script can't match an exact dependency with the same version to uninstall, it won't uninstall _any_ version of that dependecy. This is because there may be
114
+
> other versions of the target module on your system which rely on these dependencies. In this case, the available versions of the dependency are listed.
115
+
> You can then remove any old versions manually with `Uninstall-Module`.
116
+
117
+
118
+
Run this command for every version of Azure PowerShell that you want to uninstall. For convenience, the following
119
+
script will uninstall all versions of AzureRM __except__ for the latest.
Copy file name to clipboardExpand all lines: docs-conceptual/azurermps-6.13.0/uninstall-azurerm-ps.md
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Uninstall Azure PowerShell
3
3
description: How to perform a complete uninstall of Azure PowerShell
4
-
ms.date: 11/30/2018
4
+
ms.date: 06/10/2019
5
5
author: sptramer
6
6
ms.author: sttramer
7
7
ms.manager: carmonm
@@ -123,10 +123,16 @@ Uninstalling Azure.AnalysisServices version 0.4.7
123
123
...
124
124
```
125
125
126
+
> [!NOTE]
127
+
> If this script can't match an exact dependency with the same version to uninstall, it won't uninstall _any_ version of that dependecy. This is because there may be
128
+
> other versions of the target module on your system which rely on these dependencies. In this case, the available versions of the dependency are listed.
129
+
> You can then remove any old versions manually with `Uninstall-Module`.
130
+
131
+
126
132
Run this command for every version of Azure PowerShell that you want to uninstall. For convenience, the following
127
133
script will uninstall all versions of AzureRM __except__ for the latest.
0 commit comments