azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

[Storage] `az storage blob upload`: make --name optional

Open calvinhzy opened this issue 4 years ago • 1 comments

Description

Previously, the --name parameter is required even when the file path has been passed. For customers' convenience, it can be optional. This PR is to match #19553 in the main repo.

Testing Guide

Previously -n is required az storage blob upload -f {file-path} -c {container-name} -n {blob-name} Now the name would be inferred from the file-path az storage blob upload -f {file-path} -c {container-name}


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • [ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • [ ] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

calvinhzy avatar Sep 14 '21 04:09 calvinhzy

Storage

yonzhan avatar Sep 14 '21 04:09 yonzhan