2

Created a web role project on Azure. Looking at the service definition file I see that it adds a LocalResources section -

<LocalResources>
    <LocalStorage name="ProjName.svclog" sizeInMB="1000" cleanOnRoleRecycle="false" />
</LocalResources>

It seems to be using this for writing the log files. Each Azure compute instance also comes with some memory. I am assuming that this LocalStorage would use the memory we get with that instance and not create a storage account. Is that assumption correct?

David Makogon
  • 69,407
  • 21
  • 141
  • 189
user529265
  • 820
  • 10
  • 27

1 Answers1

2

Local storage is temporary hard disk space available for each instance. It's configured as part of the virtual machine where your instance is hosted.

This is unrelated to table storage, blob storage or SQL Azure, and comes as part of the Web role or worker role. However, it's temporary, and will go away when your instance is recycled or rebooted.

There's a great article on what it is, how it works and how to use it from code here: http://vkreynin.wordpress.com/2010/01/10/learning-azure-local-storage-with-me/.

Jeremy McGee
  • 24,842
  • 10
  • 63
  • 95
  • As a side note I would only add, that there is an option to NOT clean Local Storage when role is recycled or rebooted. But will be wiped out if the roles is Healed. Note that _healed_, _recycled_, _rebooted_ are 3 different actions. During _healing_, the role instance is being deployed to a fresh new VM, while the two others are operated over the same VM, so the storage may be preserved (default configuration for Local Storage) – astaykov Nov 03 '11 at 20:13