I struggled with the same issue for a couple of days and here is what I did to fix the issue;
- Close all PS sessions.
- Navigate to C:\Users\<User Name>\ .Azure
- Rename "AzureRmContext.json" to AzureRmContextOld
- Open a new session.
The above steps fixed my issue, hope that works for you too.
Please don’t forget to "Accept the answer" and
up-vote wherever the information provided helps you, this can be beneficial to other community members.