我剛纔通過以下這篇文章 https://azure.microsoft.com/en-us/documentation/articles/powershell-install-configure/的Windows Azure PowerShell的 - 安裝錯誤
我看到下面的消息時,我打開PowerShell一起安裝的Windows Azure PowerShell中,你知道如何解決這一問題:
cd : Cannot find path 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\' because it does not
exist.
At line:1 char:1
+ cd 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\'; Impo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Program File...werShell\Azure\:String) [Set-Location], ItemNotFoundE
xception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
Import-Module : The specified module '.\Azure.psd1' was not loaded because no valid module file was found in any
module directory.
At line:1 char:77
+ cd 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\'; Impo ...
+ ~~~~
+ CategoryInfo : ResourceUnavailable: (.\Azure.psd1:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Get-Content : Cannot find path 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Azure\welcome.txt'
because it does not exist.
At line:1 char:105
+ ... .\Azure.psd1; Get-Content .\welcome.txt; $VerbosePreference="Continue"; cd 'C:\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\ProgramData\...ure\welcome.txt:String) [Get-Content], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
PS C:\>
我使用Windows Server 2008 R2 Enterprise SP1。 我通過WebPI安裝了Windows Azure Powershell。
您是否知道在安裝過程中未創建文件夾「C:\ Program Files(x86)\ Microsoft SDKs \ Windows Azure \ PowerShell \ Azure」?
什麼是您的操作系統,版本和服務包版本(如果有)? – juvchan
在您引用的文檔中,還有兩個用於安裝Azure PowerShell的選項。您是從WebPI安裝Azure PowerShell還是從PowerShell Gallery安裝Azure PowerShell? – juvchan
我使用Windows Server 2008 R2企業版SP1。我通過WebPI安裝了Windows Azure Powershell –