question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The copy properties of "az storage blob list" are not correct

See original GitHub issue

When I use az storage blob show, I can get the copy properties of the blob.

    "copy": {
      "completionTime": null,
      "id": "<redacted",
      "progress": "0/3221225984",
      "source": "<redacted>",
      "status": "pending",
      "statusDescription": null
    },

But using az storage blob list, the copy properties are null values.

      "copy": {
        "completionTime": null,
        "id": null,
        "progress": null,
        "source": null,
        "status": null,
        "statusDescription": null
      },

Environment summary

interactive script / 2.0.23 / Ubuntu / bash

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
williexucommented, Jan 26, 2018

Though minor, removing these properties may be breaking for some users; ex. piping the results from storage blob list and doing a check on the properties returned. It also is reasonable to have similar models for the outputs of any iteration of the list command. We have decided not to remove the null properties for now, if we get more complaints from users in the future, we will consider this further along the road. @bingosummer thanks for your input, glad I could help.

1reaction
williexucommented, Jan 25, 2018

@bingosummer we have an include option. Use the --include arg to specify that you want copy information to be provided by the endpoint. Ex. az storage blob list -c wilxcontainer --include c will give you the information you desire.

@tjprescott our current functionality is by using --include to specify whatever additional information the user may want. For example, az storage blob list -c wilxcontainer --include sc will give both snapshot and copy information. Having a inclusion flag specifically for “copy” would duplicate same function and may necessitate similar flags for the other inclusion options.

It does seem weird to have those null properties present in the output though. We may consider removing those if the user does not specify it? @troydai @tjprescott

Read more comments on GitHub >

github_iconTop Results From Across the Web

az storage blob | Microsoft Learn
Update the access control properties of a blob. az storage blob copy. Manage blob copy operations. Use az storage blob show to check...
Read more >
az blob list: show only some properties - Stack Overflow
In this query statement, you're parsing all of the entities in an array (your results), and accessing the contentLength under properties for ...
Read more >
Azure Blob Content Type List
I am not sure that the content type is set that way. You can now set blob properties using az storage blob update...
Read more >
Get the Most out of Your Cloud Hot Folders and Azure Blob ...
AzCopy is able to copy data from File Storage to Azure Storage or from ... ShellCommandPrompt$ az storage blob list --output table -c...
Read more >
Microsoft Azure Blob Storage - Rclone
If the env_auth config parameter is true then rclone will pull ... az storage blob list --container-name CONTAINER --account-name ACCOUNT ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found