1
votes

Running the following Windows Azure PowerShell cmdlet for Windows Azure: Import-Module 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1' generates the error below. I ran PowerShell with elevated priveleges and Get-ExecutionPolicy returns RemoteSigned.

Here is the error:

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

The script does not complete after this error.

1
Did you run that from a regular PowerShell console, the Windows Azure PowerShell console, or from a tool like PowerGUI?mcollier
From the Windows Azure PowerShell console as administratorsrallenpost
Did u installed powershell from thew link below: go.microsoft.com/?linkid=9811175&clcid=0x409 (Try re-installing it and then when you launch Azure PS you should have it ready to go)AvkashChauhan
The installation was from your link. So I uninstall Azure PS, then re-installed from your link. Still getting the same error.srallenpost
are you explicitly loading the module? can you remove that line?D3vtr0n

1 Answers

0
votes

After half a day of being stuck on this, I just decided to continue with the steps, and it worked flawlessly. So I guess it was simply a warning, but did not effect the rest of the process. I have not had any issues as a result.