Powershell 指定的模块';C:\CloudDeployment\ECEngine\EnterpriseCloudEngine.psm1';没有加载

Powershell 指定的模块';C:\CloudDeployment\ECEngine\EnterpriseCloudEngine.psm1';没有加载,powershell,azure,azure-stack,Powershell,Azure,Azure Stack,在向AzureStack注册时,我遇到了以下错误: 未加载指定的模块“C:\CloudDeployment\ECEngine\EnterpriseCloudEngine.psm1”,因为在任何模块目录中都找不到有效的模块文件 我已经检查了目录,没有C:\CloudDeployment\目录 是否有人对此有任何线索,或者从何处获取上述目录和PowerShell脚本?您需要安装用于使用Azure Stack的工具,这些工具在项目中列出: 要使用这些工具,请获取与Azure堆栈兼容的Azure Pow

在向AzureStack注册时,我遇到了以下错误:

未加载指定的模块“C:\CloudDeployment\ECEngine\EnterpriseCloudEngine.psm1”,因为在任何模块目录中都找不到有效的模块文件

我已经检查了目录,没有
C:\CloudDeployment\
目录


是否有人对此有任何线索,或者从何处获取上述目录和PowerShell脚本?

您需要安装用于使用Azure Stack的工具,这些工具在项目中列出:

要使用这些工具,请获取与Azure堆栈兼容的Azure PowerShell 模块。除非您是从其他来源安装的,否则只有一种方法可以做到这一点 是从公共包存储库获取的,如下所示。注意 这两种方法仍然可以用于对Azure以及 Azure堆栈,但可能缺少一些最新的Azure功能

对于PowerShell,请安装以下组件:

Install-Module -Name 'AzureRm.Bootstrapper' -Scope CurrentUser
Install-AzureRmProfile -profile '2017-03-09-profile' -Force -Scope CurrentUser
Install-Module -Name AzureStack -RequiredVersion 1.2.9 -Scope CurrentUser
通过克隆git存储库获取工具

git clone https://github.com/Azure/AzureStack-Tools.git --recursive
cd AzureStack-Tools
否则,请按如下方式下载工具:

invoke-webrequest https://github.com/Azure/AzureStack-Tools/archive/master.zip -OutFile master.zip
expand-archive master.zip -DestinationPath . -Force
cd AzureStack-Tools-master