az storage blob upload-batch terminates with error in 2.10 but worked in 2.08
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az storage blob upload-batch
Errors:
[Errno 2] No such file or directory: 'batch-pool-startup-script'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 709, in _run_job
cmd_copy.exception_handler(ex)
...
command_modules/storage/operations/blob.py, ln 444, in upload_block_blob
return client.create_blob_from_path(**create_blob_args)
storage/v2018_11_09/blob/blockblobservice.py, ln 453, in create_blob_from_path
count = path.getsize(file_path)
../lib/python3.8/genericpath.py, ln 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'batch-pool-startup-script'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az storage blob upload-batch -d {} -s {} --account-name {}
Expected Behavior
Environment Summary
macOS-10.15.6-x86_64-i386-64bit
Python 3.8.5
Installer: HOMEBREW
azure-cli 2.10.0
Extensions:
application-insights 0.1.1
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Error from az storage blob upload-batch command in Azure ...
I mean without changing anything, the release task (Azure CLI) was working to upload the same files to az storage blob, but now...
Read more >Azure blob storage upload fail - Microsoft Q&A
I have an issue uploading a large file to my azure storage blob thru azure storage explorer. The file is approx. 160GB.
Read more >az cmd "account clear" fails after "az storage blob upload-batch"
You can try running the Azure CLI task with the Fail on Standard Error option unchecked. This could be the script is writing...
Read more >Azure CLI logging errors from progress - Octopus Server
... the az cli command az storage blob upload-batch to upload a bunch ... that sort of worked, in that it failed after...
Read more >How to host your static website in Azure Storage
Verify your Azure CLI works by running az command in your terminal. ... az storage blob upload-batch \ --account-name soheilstorage \ --source ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Juliehzl is looking into this and will update here later.
With the
azure-cli 2.9.1 *
version it still works. The Dockerfilemcr.microsoft.com/azure-cli:2.9.1
provides a remedy in the CI / CD context