Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Storage Emulator store data on specific path

At my current PC setup I have an SSD and a normal hard drive installed. The SSD only has a capacity of 120GB and since I'm developing a large application which stores allot of files in azure blob storage I whish to specify to which hard drive the microsoft azure storage emulator has to store my files.

I am using the latest storage emulator (3.0).

Thx

like image 207
Luc Bos Avatar asked May 15 '14 06:05

Luc Bos


People also ask

Where does Azure storage emulator store files?

The Storage Emulator is installed by default to C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator .

Is Azure Blob storage region specific?

Azure Blob storage accounts with hot and cool storage tiers are generally available in six new regions: US East, US West, Germany Central, Germany Northeast, Australia Southeast and Brazil South. You can find the updated list of available regions on the Azure services by region page.


Video Answer


1 Answers

Storage emulator keeps this setting in a file called WAStorageEmulator.5.2.config which can be found in C:\Users\{Your Current User Name}\AppData\Local\AzureStorageEmulator folder. Open up this file and change the settings for PageBlobRoot and BlockBlobRoot elements in that configuration file. For example, in the XML below, I changed the settings so that the files are written in D:\ for block blobs instead of C:\.

<?xml version="1.0"?>
<StorageEmulator xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SQLInstance>.\SQLExpress</SQLInstance>
  <PageBlobRoot>C:\Users\Gaurav.Mantri\AppData\Local\AzureStorageEmulator\PageBlobRoot</PageBlobRoot>
  <BlockBlobRoot>D:\Users\Gaurav.Mantri\AppData\Local\AzureStorageEmulator\BlockBlobRoot</BlockBlobRoot>
  <LogPath>C:\Users\Gaurav.Mantri\AppData\Local\AzureStorageEmulator\Logs</LogPath>
  <LoggingEnabled>false</LoggingEnabled>
</StorageEmulator>

You may need to restart the storage emulator for the settings to take effect.

like image 137
Gaurav Mantri Avatar answered Nov 13 '22 03:11

Gaurav Mantri