Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Finally found the culprit thanks to the comments of <a href="https://stackoverflow.com/users/355583/steve">Steve</a> and <a href="https://stackoverflow.com/users/94559/smarx">smarx</a> :) Thank you guys! You got me digging in the right direction.</p> <p>Turned out the PowerShell script that my startup task fired was using the <strong>Microsoft.WindowsAzure.ServiceRuntime</strong> snapin, which, as noted by <a href="https://stackoverflow.com/users/94559/smarx">smarx</a>, was quietly added with the RemoteAccess module when remote desktop connections were enabled. And this subtle inclusion made me overlook the dependency on the snapin and hence my further headaches.</p> <p>After finding the problem I actually saw that I didn't even need the snapin, so the solution was to simply remove the <em>Add-PSSnapin Microsoft.WindowsAzure.ServiceRuntime</em> call from my PowerShell script. In case I really needed the snapin, <a href="http://blogs.msdn.com/b/jimoneil/archive/2011/02/07/azure-startup-tasks-and-powershell-lessons-learned.aspx" rel="nofollow noreferrer">this</a> article shows a way to install the snapin before using it, since it isn't installed by default on Azure VMs.</p> <p>Another helpful resource that helped me debug the startup task was <a href="http://blog.smarx.com/posts/windows-azure-startup-tasks-tips-tricks-and-gotchas" rel="nofollow noreferrer">this article</a> by <a href="https://stackoverflow.com/users/94559/smarx">smarx</a>.</p> <p>Hopefully this will spare someone all the time I lost with this problem. Thank you again <a href="https://stackoverflow.com/users/355583/steve">Steve</a> and <a href="https://stackoverflow.com/users/94559/smarx">smarx</a>!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload