Skip to content

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

@HassanAlmanasrah

Description

@HassanAlmanasrah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions