簡體   English   中英

Azure 存儲 blob - ConditionNotMet

[英]Azure storage blob - ConditionNotMet

我曾嘗試從 azure 存儲 (az cli) 下載 blob,但我得到了這個。 有人可以知道如何解決嗎?

ErrorCode: ConditionNotMet
<?xml version="1.0" encoding="utf-8"?><Error><Code>ConditionNotMet</Code><Message>The condition specified using HTTP conditional header(s) is not met.
RequestId:8nnpca91-201e-011p-7n9e-b1a77b000900
Time:2020-11-23T11:48:11.4500961Z</Message></Error>

我無法在不知道您嘗試運行的確切命令的情況下重現您的問題,但這里是az storage blob download命令的基本語法和一個有效示例:

az storage blob download --container-name <storage-account-container-name> --file <file-path-to-write-out-to> --name <blob-name> --account-name <storage-account-name> --account-key <storage-account-access-key>

例子:

$ az storage blob download --container-name testbkp --file backup1.log --name backup1.log --account-name myStorageAccount --account-key r+nHfm5ZZxf9r4TueZ7bmkVFwO8cBi+wmq/9g==

Finished[#############################################################]  100.0000%
{
  "content": null,
  "deleted": false,
  "metadata": {},
  "name": "backup1.log",
  "properties": {
    "appendBlobCommittedBlockCount": null,
    "blobTier": null,
    "blobTierChangeTime": null,
    "blobTierInferred": false,
    "blobType": "BlockBlob",
    "contentLength": 503,
    "contentRange": "bytes 0-502/503",
    "contentSettings": {
      "cacheControl": null,
      "contentDisposition": null,
      "contentEncoding": null,
      "contentLanguage": null,
      "contentMd5": "b8Lzmr+LfkdoZaPujOqVlg==",
      "contentType": "application/octet-stream"
    },
    "copy": {
      "completionTime": null,
      "id": null,
      "progress": null,
      "source": null,
      "status": null,
      "statusDescription": null
    },
    "creationTime": "2020-10-11T16:23:35+00:00",
    "deletedTime": null,
    "etag": "\"0x8D86E0100F405DC\"",
    "lastModified": "2020-10-11T16:23:35+00:00",
    "lease": {
      "duration": null,
      "state": "available",
      "status": "unlocked"
    },
    "pageBlobSequenceNumber": null,
    "remainingRetentionDays": null,
    "serverEncrypted": true
  },
  "snapshot": null
}

請注意,您傳遞給帳戶的參數名稱區分大小寫。 如果您在使用最新版本的 Azure CLI(截至今天為2.15.1 )后仍然遇到問題,您也可以嘗試使用Azure Cloud Shell

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM