VM删除后,无法中断Blob上的租约 [英] Cannot break lease on blob as VM deleted
问题描述
我删除了VM和相关资源,但是Blob并未删除,因为它上面有租约.我试图打破租约,但失败了,并指示我需要将其与不再存在的VM分离.我卡住了无法删除的Blob.
I deleted a VM and associated resources but the blob didn't delete as it had a lease on it. I've tried to break the lease but it fails and indicates I need to detach it from the VM which no longer exists. I'm stuck with a blob that I can't delete.
有人可以帮忙吗?
谢谢
斯科特
推荐答案
1.通过Azure PowerShell
1. Check if there is any lock applied on that blob via Azure PowerShell
Get-AzureRmResourceLock -ResourceName exampleblob -ResourceType
Get-AzureRmResourceLock -ResourceName exampleblob -ResourceType Microsoft.Storage/storageAccounts -ResourceGroupName exampleresourcegroup
删除它们
lockId =(Get-AzureRmResourceLock -ResourceGroupName exampleresourcegroup -ResourceName exampleblob -ResourceType Microsoft.Storage/storageAccounts).LockId
Remove-AzureRmResourceLock -LockId
lockId = (Get-AzureRmResourceLock -ResourceGroupName exampleresourcegroup -ResourceName exampleblob -ResourceType Microsoft.Storage/storageAccounts).LockId
Remove-AzureRmResourceLock -LockId
lockId
尝试在删除锁后再次删除blob
try to delete the blob again after locks are removed
2.创建一个临时VM,将此Blob附加到新VM,然后将其全部删除.
2. create a Temp VM, attach this blob to the new VM and then delete them all.
或尝试在Azure存储资源管理器中删除此Blob,
Or try to delete this blob in Azure Storage Explorer,
https://azure.microsoft.com/zh-cn/features/storage-explorer/
https://azure.microsoft.com/en-us/features/storage-explorer/
如果以上两种方法均无效,则建议打开票证.
Suggest to open a ticket if neither of the above methods works.
这篇关于VM删除后,无法中断Blob上的租约的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!