Azure / azure-devtestlab

Azure DevTestLab artifacts, scripts and samples
MIT License
458 stars 602 forks source link

ImportVirtualMachines_ps6.ps1 on Azure CLI throws error #802

Closed bclingan closed 3 years ago

bclingan commented 3 years ago

Getting errors below when running script however if I run Import-AzureRmContext standalone - it prompts me for info so it is installed.

ObjectNotFound: The term 'Import-AzureRmContext' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. ObjectNotFound: The term 'Invoke-AzureRmResourceAction' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

bclingan commented 3 years ago

Apparently I did not need to use the PS6 version.