Skip to content

The term 'Get-AzContext' is not recognized as a name of a cmdlet #20419

Answered by dingmeng-xue
nbhargava2022 asked this question in Q&A
Discussion options

You must be logged in to vote

This error should happen when Az.Accounts cannot be imported. Please execute Get-Module in the same console when you see that error. If you cannot see Az.Accounts in result, share the whole result of Get-Module to us.

This page https://learn.microsoft.com/en-us/powershell/azure/troubleshooting?view=azps-9.2.0#command-found-but-could-not-be-loaded can give you hints as well.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dingmeng-xue
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants