運行下面的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
腳本不會此錯誤後完成。
你從一個普通PowerShell控制檯,在Windows Azure PowerShell控制檯運行,或像PowerGUI的工具? – mcollier 2013-02-08 18:19:48
從管理員的Windows Azure PowerShell控制檯 – srallenpost 2013-02-08 19:35:19
您是否通過以下鏈接安裝了powershell:http://go.microsoft.com/?linkid=9811175&clcid=0x409(嘗試重新安裝它,然後在啓動Azure PS時應該已經準備好去) – AvkashChauhan 2013-02-08 20:41:45