I am in doubts.
I have a code which create a file "foo.txt" and then copy it to a blob with UploadFile().
If I undesrtand well azure concept I can't create this file in "c:\" ?
I am obliged to use local storage in my ServiceDefinition.csdef, and create it in azureLocalResource.RootPath.
But there is a c:\ drive for write (a d:\ for the OS and a e:\ for code), isn't it?
What is it use ?
Can we just use it in the start-up task ?
I ask because I believe that code ran with c:\ util this day.
And I can't find why a similar code don't work in a new worker role.
(It is a file and directory issue, not just file)
[Answer]
I can create this file in c: but it is highly recommended to use local storage API, because the drive letter isn't always the same (after a reboot for example).
Local storage is just a short cut for use the read&write drive of the current instance.
In specific case of startup task, we can acces to this storage by 2 ways : with the azure API in a c# program/script (see this topic) or with environment variables (see this topic).