title: How to access Azure local storage from a startup task?
body: <p>In my Azure role startup task I need to deploy my native C++ application. I do that by running a set of actions from a .cmd file.</p>
  
  <p>The problem is that the <code>E:\</code> drive where the role contents is located and from where the startup task is run only has about 1 gigabyte of free space and that's not enough for deploying that application.</p>
  
  <p>I can of course ask for local storage in the service definition, but I can't find how to get the actual path of where the local storage will be located from the startup task - there's  <code>RoleEnvironment.GetLocalResource()</code> for that but it seems to only be available from the role code and I need to do the same from inside the startup task.</p>
  
  <p>How do I detect the path to my local storage from a startup task?</p>