2013-02-08 33 views
1

運行下面的Windows Azure PowerShell命令爲Windows Azure:Import-Module 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1'產生下面的錯誤。我跑了PowerShell和高架priveleges和Get-ExecutionPolicy回報RemoteSigned的Windows Azure PowerShell命令錯誤 - 跳過文件,因爲它已經存在

以下是錯誤:

Import-Module : The following error occurred while loading the extended type data file: Microsoft.PowerShell, C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Microsoft.WindowsAzure.Manag ement.Websites.Types.ps1xml : File skipped because it was already present from "Microsoft.PowerShell". Microsoft.PowerShell, C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Microsoft.WindowsAzure.Manag ement.SqlDatabase.Types.ps1xml : File skipped because it was already present from "Microsoft.PowerShell".
At line:1 char:14 + Import-Module <<<< 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1'
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Commands.ImportModuleCommand

腳本不會此錯誤後完成。

+0

你從一個普通PowerShell控制檯,在Windows Azure PowerShell控制檯運行,或像PowerGUI的工具? – mcollier 2013-02-08 18:19:48

+0

從管理員的Windows Azure PowerShell控制檯 – srallenpost 2013-02-08 19:35:19

+0

您是否通過以下鏈接安裝了powershell:http://go.microsoft.com/?linkid=9811175&clcid=0x409(嘗試重新安裝它,然後在啓動Azure PS時應該已經準備好去) – AvkashChauhan 2013-02-08 20:41:45

回答

0

被卡在這半天之後,我決定繼續與步驟,它完美地工作。所以我想這只是一個警告,但並沒有影響剩下的過程。結果我沒有任何問題。

相關問題