Azure Storage Emulator stores data in a specific path

In my current PC setup, I have an SSD and a regular hard drive installed. The SSD has a capacity of 120 GB, and since I am developing a large application that stores the selection of files in the azure blob, I want to indicate which hard drive my microsoft azure storage emulator should be stored on.

I am using the latest storage emulator (3.0).

thanks

+7
azure azure-storage azure-storage-blobs
source share
1 answer

The storage emulator saves this setting in a file called WAStorageEmulator.5.2.config , which can be found in the folder C:\Users\{Your Current User Name}\AppData\Local\AzureStorageEmulator . Open this file and change the settings for PageBlobRoot and BlockBlobRoot elements in this configuration file. For example, in the XML below, I changed the settings so that the files are written in D:\ for block blocks, and not 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.

+14
source share

All Articles