1

I want to mount vhd from my private container. After google I get that it is only possible through .net . I am more of a JAVA person. So I tried this code on visual studio 2012. But I keep getting exception RoleEnvironment not available. I don't know what it is please tell me how to set RoleEnvironment. Or please provide any other code which can mount my vhd.

Anurag Tripathi
  • 1,208
  • 1
  • 12
  • 31

1 Answers1

0

You can automate a lot of what you are trying to do using Azure Cmdlets: http://msdn.microsoft.com/en-us/library/windowsazure/jj152841

The Add-AzureDisk power shell command: http://msdn.microsoft.com/en-us/library/windowsazure/jj152837.aspx

...will allow you to add a data disk (VHD) to an existing Azure Iaas VM.

For PaaS Worker Roles look at this: http://social.msdn.microsoft.com/forums/en-us/windowsazuredevelopment/thread/6cf7de11-45f2-47ae-b84e-708b67b15f72

Bart Czernicki
  • 3,663
  • 1
  • 21
  • 19