【发布时间】: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)
我有一个空的映像、磁盘和容器
【问题讨论】:
-
你能以某种方式检查容器是否有活动租约吗?这也可能会阻止您删除存储帐户。如果我没记错的话,您使用的是 node.js SDK。不知道你会如何通过它来做到这一点。但是如果你使用像 Cerebrata 的 Azure Explorer 这样的工具(它是一个基于 Windows 的免费 blob 管理工具),你可以查看容器的属性并检查容器的租约状态。