-
Notifications
You must be signed in to change notification settings - Fork 51
Update uninstall commands for Az.Accounts #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
60ed95f
0aca626
1613c71
a98d07b
5c2abf3
07c034e
41a0272
9d6238c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,12 +56,24 @@ There are two possible issues that can cause this: | |
| 2) Role Assignment for Azure Stack HCI Device Management Role is not correct. | ||
|
|
||
| ## If any other version of Az.Accounts apart from 4.0.2 is installed on the nodes follow the below steps: | ||
| *** | ||
| 1. Uninstall all the versions of az.accounts on all nodes | ||
|
|
||
| ``` | ||
| Uninstall-Module az.accounts -allversions | ||
| $RequiredModuleName = 'Az.Accounts' | ||
| $RequiredModuleVersion = '4.0.2' | ||
|
|
||
| # Get all versions of the | ||
| Get-InstalledModule -Name $RequiredModuleName -AllVersions | ||
|
|
||
| #Uninstall all but the required version | ||
|
erskinejohn marked this conversation as resolved.
Outdated
|
||
| Get-InstalledModule -Name $RequiredModuleName -AllVersions | Where-Object { $_.Version -ne $RequiredModuleVersion } | ForEach-Object { Uninstall-Module -Name $RequiredModuleName -RequiredVersion $_.Version -Force } | ||
|
||
|
|
||
| # if the required version was not present in the first command's output, install it. | ||
|
erskinejohn marked this conversation as resolved.
Outdated
|
||
| Install-Module -Name $RequiredModuleName -RequiredVersion $RequiredModuleVersion -Force | ||
|
erskinejohn marked this conversation as resolved.
|
||
|
|
||
| # Verify only the required version is installed | ||
| Get-InstalledModule -Name $RequiredModuleName -AllVersions | ||
| ``` | ||
| 3. Retry update from portal | ||
|
|
||
|
|
||
| ## If the only version of Az.Accounts is 4.0.2 on the system, check access control | ||
| *** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.