1
votes

I have a Windows 2008 R2 machine, and I have installed the VS2010 and SP1, Windows Azure SDK 1.7 and all other tools of Azure SDK and PowerShell cmdlets from the below links

https://www.windowsazure.com/en-us/manage/downloads/

When I run the Windows Powershell for Windows Azure Cmdlets, it is showing the error:

Add-PSSnapin : The Windows PowerShell snap-in 'WAPPSCmdlets' is not installed o n this machine. At line:1 char:21 + cd c:\; add-pssnapin <<<< WAPPSCmdlets + CategoryInfo : InvalidArgument: (WAPPSCmdlets:String) [Add-PSSn apin], PSArgumentException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Ad dPSSnapinCommand

I have also tried the following link but no use. http://social.msdn.microsoft.com/Forums/is/windowsazuredevelopment/thread/4c59fc7e-3ead-482e-88c3-f5555e915c84

1

1 Answers

1
votes

Could you try loading the module manually?

Import-Module "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1"

And then simply try any CmdLet (like Add-AzureCertificate) to see if you can use it.

Update: Since Add-AzureCertificate works for you this means all cmdlets are now available. To make things easier you can simply create a shortcut on your desktop with the following target:

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command "cd 'C:\'; Get-ChildItem 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure*.psd1' | ForEach-Object {Import-Module $_}"