Azure / Azure/azure-cli

Support for stdin for 'az storage blob upload' command

Open
#20,980 14 comments 0 reactions 1 assignee Claimed by @evelyn-ys View on GitHub
act-codegen-extensibility-squad customer-reported feature-request Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**

After running the following command:

```
$ echo foo bar buzz | az storage blob upload --container-name mycontainer -n test.txt -f /dev/stdin
{
"etag": "\"0x8D...\"",
"lastModified": "2022-01-13T21:50:19+00:00"
}
```

the blob content is empty.

**Describe the solution you'd like**

Correct content of the file should be uploaded.

**Describe alternatives you've considered**

Using a temporary file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.