Has anybody been able to get Azure cloud drive working with VM role adapter?

Answered Has anybody been able to get Azure cloud drive working with VM role adapter?

  • Sunday, May 20, 2012 10:10 PM
     
     

    I've been following this walkthrough:  http://msdn.microsoft.com/en-us/library/windowsazure/gg466226.aspx

    I have version 1.6 of the Windows Azure Integration Components installed on Windows 2008 R2 Enterprise VM.

    First, I have not been able to get the role adapter to even start-up using the LocalService account as prescribed in the walkthrough. It seems that even accessing RoleEnvironment.IsAvailable will case this error:

    Service cannot be started. System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.

       at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.Initialize(TimeSpan timeout)

       at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.get_IsAvailable()

       at VMRoleAdapter.RoleAdapter.OnStart(String[] args)

       at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

    I can get the service to at least start up by running under LocalSystem.

    However, when it gets to the call CloudDrive.InitializeCache(), the adapter crashes.

All Replies

  • Monday, May 21, 2012 10:00 AM
    Moderator
     
     

    Hi,

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay.
     
    Appreciate your patience.


    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

  • Tuesday, May 22, 2012 2:41 AM
    Moderator
     
     

    Hi,

    It seems you're not using 1.6 SDK? If you use Reflector to open the 1.6 SDK's Microsoft.WindowsAzure.ServiceRuntime.dll you'll see the callstack is impossible to be what you've seen. Please check that and try the latest SDK to see whether it works.

    Also this is a similar thread FYI:

    http://social.msdn.microsoft.com/Forums/hr/windowsazuredevelopment/thread/efd8226d-ba2e-475c-9819-4e7fc10ac163


    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


  • Tuesday, May 22, 2012 7:21 PM
     
     

    I was using the 1.6 SDK--same version as the WAIC that I installed on the VM. The ISO that I mounted to install the WAIC on the VM role came from the v1.6 SDK folder on my development machine.

    I will try the workaround suggested in the last message of that thread though.

    • Edited by atilekt Tuesday, May 22, 2012 7:22 PM
    •  
  • Thursday, May 24, 2012 8:41 AM
    Moderator
     
     

    >I will try the workaround suggested in the last message of that thread though

    Have you resolved this problem?


    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Thursday, May 24, 2012 10:49 PM
     
     Answered
    The workaround didn't work The only way to resolve the issue is to not use v1.6 at all. v1.4 is the last version of WAIC that actually works. I hope you guys fix the problem in v1.7.
  • Wednesday, May 30, 2012 10:06 PM
     
     

    Hi Atilekt,

    We have reproduced this issue, and it will be fixed in SDK v1.7.  There is another workaround, available here: http://msdn.microsoft.com/en-us/library/windowsazure/hh708321.aspx

    Thanks
    Andrew Edwards
    Windows Azure Storage

  • Tuesday, August 14, 2012 11:33 PM
     
     

    I wouldn't use this as a production solution because MS don't support Azure VMs because it's still a "Preview".