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

"Import-Module ..\" is not correct #614

Open
HassanAlmanasrah opened this issue Jul 27, 2021 · 0 comments
Open

"Import-Module ..\" is not correct #614

HassanAlmanasrah opened this issue Jul 27, 2021 · 0 comments

Comments

@HassanAlmanasrah
Copy link

In https://github.com/Azure/AzureStack-Tools/blob/master/Identity/README.md
Import-Module ..\Connect\AzureStack.Connect.psm1
Import-Module ..\Identity\AzureStack.Identity.psm1

importing the above modules throw below exception
Import-Module : The specified module '..\Connect\AzureStack.Connect.psm1' was not loaded because no valid module file was found in any module directory.
At line:1 char:1

  • Import-Module ..\Connect\AzureStack.Connect.psm1
  •   + CategoryInfo          : ResourceUnavailable: (..\Connect\AzureStack.Connect.psm1:String) [Import-Module], FileNotFoundException
      + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    
    

- it should be with single "."
Import-Module .\Connect\AzureStack.Connect.psm1
Import-Module .\Identity\AzureStack.Identity.psm1

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