Azure Storage Emulator store data on specific path

浪尽此生 提交于 2019-12-21 09:13:41

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/23671111/azure-storage-emulator-store-data-on-specific-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!