Thank you for your post and I apologize for the delayed response!
Error Message:
Line |
13 | Microsoft.PowerShell.Core\Import-Module -Name PSCloudShellUtility
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| This module requires Az.Accounts version 2.12.2. An earlier version of Az.Accounts is imported in the current PowerShell session. Please open a new session before
| importing this module. This error could indicate that multiple incompatible versions of the Azure PowerShell cmdlets are installed on your system. Please see
| https://aka.ms/azps-version-error for troubleshooting information
To hopefully help resolve your issue or point you in the right direction, I'll share some troubleshooting steps below.
- Referencing your error message, please close out of all your PS sessions and retry importing the
PSCloudShellUtility
module. - If you're still having issues, ensure you have the latest version of
Az.Accounts
, or the version required to use thePSCloudShellUtility
module. You can check for it usingGet-Module Az.Accounts
- Update the module as needed -
Update-Module -Name "ModuleName" -Force
- If updating your module and restarting your PS sessions don't help resolve your issue, you can Uninstall the Az module and re-install it, to ensure you have everything required to lever the PSCloudShellUtility module.
I hope this helps!
If you have any other questions or are still having issues, please let me know. Thank you for your time and patience throughout this issue.
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.