Add-PSSnapin Microsoft.WindowsAzure.ServiceRuntime error
-
3. května 2012 3:55
I am trying to run through the Excercise at http://msdn.microsoft.com/en-us/wazplatformtrainingcourse_vmrolelab_topic3 and am getting an error in Task 2 when trying to run Add-PSSnapin Microsoft.WindowsAzure.ServiceRuntime:
Add-PSSnapin : Cannot load Windows PowerShell snap-in Microsoft.WindowsAzure.ServiceRuntime because of the following error: The Windows PowerShell snap-in module C:\Program Files\Windows Azure Integration Components\v1.6\Powershell\Microsoft.WindowsAzure.ServiceRuntime.Commands.dll does not have required Windows PowerShell snap-in strong name Microsoft.WindowsAzure.ServiceRuntime.Commands, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
At line:1 char:13
+ Add-PSSnapin <<<< Microsoft.WindowsAzure.ServiceRuntime
+ CategoryInfo : InvalidArgument: (Microsoft.WindowsAzure.ServiceRuntime:String) [Add-PSSnapin], PSSnapIn
Exception
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommandAll previous tasks have completed without issue and task 2, step 2 states that "the snap-in is installed with the integration components and provides access to the Windows Azure runtime environment" which was performed without issue in a previous Excercise and Task. Has anyone run into this issue?
Všechny reakce
-
3. května 2012 8:04Moderátor
Hi,
please refer to this post:
http://technet.microsoft.com/en-us/library/dd347628.aspx
try following command in PowserShell:
Set-ExecutionPolicy Unrestricted
Hope this helps.Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
-
3. května 2012 13:40
This didn't help:
PS C:\> get-executionpolicy -list
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Unrestricted
CurrentUser Unrestricted
LocalMachine Unrestricted
PS C:\> Add-PSSnapin Microsoft.WindowsAzure.ServiceRuntime
Add-PSSnapin : Cannot load Windows PowerShell snap-in Microsoft.WindowsAzure.ServiceRuntime because of the following error: The Windows PowerShell snap-in module C:\Program Files\Windows Azure Integration Components\v1.6\Powershell\Microsoft.WindowsAzure.ServiceRuntime.Commands.dll does not have required Windows PowerShell snap-in strong name Microsoft.WindowsAzure.ServiceRuntime.Commands, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
At line:1 char:13
+ Add-PSSnapin <<<< Microsoft.WindowsAzure.ServiceRuntime
+ CategoryInfo : InvalidArgument: (Microsoft.WindowsAzure.ServiceRuntime:String) [Add-PSSnapin], PSSnapIn
Exception
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommandPS C:\>
Jeff L
-
3. května 2012 22:24
Try this article:
http://msdn.microsoft.com/en-us/library/windowsazure/gg593186.aspx
-
4. května 2012 6:45Moderátor
Please refer to this similar issue:
http://www.powershellcommunity.org/Forums/tabid/54/aft/860/Default.aspx
set-alias installutil C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\installutil.exe
Have a try.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- Označen jako odpověď Arwind - MSFTModerator 9. května 2012 8:21
-
10. srpna 2012 20:00
I have just run into the exact issue using an Azure Worker Role ( osFamily=2).
I have a PowerShell script that I use that imports the Service Runtile to in turn read configuration data from the Service and apply it to my legacy application.
I have tried all the items noted here and still have the issue.
In regards to what is proposed as the answer (for one thing I can't see scripting this to simply do what used to work just fine) it does not work.
I am curious if this actually did anything to resolve the issue for the origional poster.
Brian Ehlert
http://ITProctology.blogspot.com
Learn. Apply. Repeat.
Disclaimer: Attempting change is of your own free will.