如何从命令行清除Azure存储模拟器数据? [英] How to clear Azure Storage Emulator Data from command line?

查看:99
本文介绍了如何从命令行清除Azure存储模拟器数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的解决方案是使用Azure仿真器.我想清除Azure存储模拟器 Blob 队列,而无需执行手动操作.我需要能够从命令行(最好是PowerShell)执行此操作.

My solution is using Azure Emulator. I would like to clear the Azure Storage Emulator Blobs, Queues and Tables without having to perform manual actions. I need to be able to do it from command line, preferably PowerShell.

Visual Studio 2015中的服务器资源管理器,Azure节点:

Server Explorer in Visual Studio 2015, Azure-node:

AzureStorageEmulator.exe帮助返回以下命令:

AzureStorageEmulator.exe help returns the following commands:

  • AzureStorageEmulator.exe初始化:初始化模拟器数据库和配置.
  • AzureStorageEmulator.exe启动:启动模拟器.
  • AzureStorageEmulator.exe停止:停止模拟器.
  • AzureStorageEmulator.exe状态:获取当前仿真器状态.
  • AzureStorageEmulator.exe清除:删除模拟器中的所有数据.
  • AzureStorageEmulator.exe帮助[命令]:显示常规或特定于命令的帮助.

但是,当尝试清除"时,将返回以下内容:

However when trying out "clear" the following is returned:

以下服务已成功清除用户数据: 没有

The following services have been succesfully cleared of user data: None

推荐答案

糟糕!我的错误,正确的命令是:

Ops! My mistake, the correct command is:

C:\ Program Files(x86)\ Microsoft SDKs \ Azure \ Storage Emulator

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator

.\AzureStorageEmulator.exe clear all

这篇关于如何从命令行清除Azure存储模拟器数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆