File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ class ModuleInfo
399
399
function Remove-AzureRM {
400
400
process {
401
401
try {
402
- $azureModuleNames = (Get-InstalledModule - Name Azure* - ErrorAction Stop).Name | Where-Object {$_ -match " Azure(\.[a-zA-Z0-9]+)?" -or $_ -match " AzureRM(\.[a-zA-Z0-9]+)?" }
402
+ $azureModuleNames = (Microsoft.PowerShell. Core\ Get-Module - ListAvailable - Name Azure* - ErrorAction Stop).Name | Where-Object {$_ -match " Azure(\.[a-zA-Z0-9]+)?" -or $_ -match " AzureRM(\.[a-zA-Z0-9]+)?" }
403
403
foreach ($moduleName in $azureModuleNames ) {
404
404
PowerShellGet\Uninstall-Module - Name $moduleName - AllVersion - AllowPrerelease - ErrorAction Continue
405
405
}
Original file line number Diff line number Diff line change 1
1
## Upcoming Release
2
+ * Remove the usage of ` Get-InstalledModule ` from product codes.
2
3
## 0.2.1
3
4
* Fixed the issue of installation and updating when Repository is not provided (#20209 )
4
5
* Updated telemetry assembly to 2.13.1
You can’t perform that action at this time.
0 commit comments