作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用 Azure CLI doc 中的文档遵循 azure CLI ,我可以获得我的 azure blob 文件的租约。但是,要释放该 blob,我需要租用的 blob 的发布 ID。我可以在哪里从 CLI 获取此 ID?
最佳答案
Where can I get this ID from CLI?
遗憾的是,事后您无法获取租约 ID。租约 ID 不存储在系统中的任何位置。租赁获取方有责任存储租赁 ID。
考虑到您没有租约 ID,因此您将无法释放租约。但是你可以做的是 break the lease
与释放租约相同,并且不需要租约 ID。
az storage blob lease break --blob-name
--container-name
[--account-key]
[--account-name]
[--auth-mode {key, login}]
[--connection-string]
[--if-match]
[--if-modified-since]
[--if-none-match]
[--if-unmodified-since]
[--lease-break-period]
[--only-show-errors]
[--sas-token]
[--subscription]
[--timeout]
关于azure - 获取 azure blob 的租约后,我在哪里可以找到发布 ID 以便释放它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61073288/
我知道我们可以获取 blob 的租约 60 秒或无限。对于以下代码: var account = CloudStorageAccount.DevelopmentStorageAccount;
我是一名优秀的程序员,十分优秀!