【问题标题】:Error in Deleting Azure Storage删除 Azure 存储时出错
【发布时间】:2014-03-01 11:01:49
【问题描述】:

我一直在互联网上寻找解决方案,但显然不一定有。我什至在微软的支持论坛上问过,但他们没有帮助。

我正在使用 OSX。

Error: Storage account *** has  container(s) which have an active image and/or disk artifacts. Ensure those artifacts are removed from the image repository before deleting this storage account.

at Object.ServiceClient._normalizeError (/usr/local/azure/node_modules/azure/lib/services/core/serviceclient.js:682:23)
at Object.ServiceClient._processResponse (/usr/local/azure/node_modules/azure/lib/services/core/serviceclient.js:335:32)
at Request.ServiceClient._performRequest.self._buildRequestOptions.processResponseCallback [as _callback] (/usr/local/azure/node_modules/azure/lib/services/core/serviceclient.js:183:35)
at Request.init.self.callback (/usr/local/azure/node_modules/azure/node_modules/request/index.js:148:22)
at Request.EventEmitter.emit (events.js:99:17)
at Request.onResponse (/usr/local/azure/node_modules/azure/node_modules/request/index.js:891:14)
at Request.EventEmitter.emit (events.js:126:20)
at IncomingMessage.Request.onResponse.buffer (/usr/local/azure/node_modules/azure/node_modules/request/index.js:842:12)
at IncomingMessage.EventEmitter.emit (events.js:126:20)
at IncomingMessage._emitEnd (http.js:366:10)
at storageAccount_deleteCommand__2 (/usr/local/azure/lib/commands/storage.account._js:135:8)

我有一个空的映像、磁盘和容器

Empty Disk

Empty Container

【问题讨论】:

  • 你能以某种方式检查容器是否有活动租约吗?这也可能会阻止您删除存储帐户。如果我没记错的话,您使用的是 node.js SDK。不知道你会如何通过它来做到这一点。但是如果你使用像 Cerebrata 的 Azure Explorer 这样的工具(它是一个基于 Windows 的免费 blob 管理工具),你可以查看容器的属性并检查容器的租约状态。

标签: windows azure storage


【解决方案1】:

您很可能有一个或多个具有活动租约的 blob。请参阅 MSDN 上的这篇博文,了解如何使用 node.js(Azure 跨平台 CLI 的基础)来打破租约:http://blogs.msdn.com/b/interoperability/archive/2012/08/01/node-js-script-for-releasing-a-windows-azure-blob-lease.aspx

【讨论】:

  • 我已经看到了这个,我试着把它放在我的目录中。需要使用“正确”路径(基于文件名)的文件,但它不起作用。 var cli上的错误太多
猜你喜欢
  • 2017-02-03
  • 1970-01-01
  • 2016-06-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-07-30
  • 2021-10-18
  • 2016-09-09
相关资源
最近更新 更多