Skip to content
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

Get-AzContext error when running WorkspaceConfigToDCRMigrationTool.ps1 script #173

Open
DJITS-NL opened this issue Jun 1, 2023 · 0 comments

Comments

@DJITS-NL
Copy link

DJITS-NL commented Jun 1, 2023

Hi,

I get the following error when I run the script on Powershell 7.3.4:

Get-AzContext : The term 'Get-AzContext' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Temp\WorkspaceConfigToDCRMigrationTool.ps1:664 char:18

  • $azContext = Get-AzContext
    
  •              ~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Get-AzContext:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Module Az.Accounts is installed on version 2.12.3 and I run powershell as administrator.

Any ideas?

Best regards,

DJITS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant