Azure Storage Emulator store data on specific path

回眸只為那壹抹淺笑 提交于 2019-12-04 02:52:51
Gaurav Mantri

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.

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