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.

--source "$web" --account-name zero360staging

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az storage blob delete-batch

Errors:

missing parameter container
Traceback (most recent call last):
python3.6/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 492, in storage_blob_delete_batch
    source_blobs = list(collect_blob_objects(client, source_container_name, pattern))
cli/command_modules/storage/util.py, ln 26, in collect_blob_objects
    raise ValueError('missing parameter container')
ValueError: missing parameter container

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 delete-batch --source {} --account-name {} --output {}

Expected Behavior

Environment Summary

Linux-4.15.0-101-generic-x86_64-with-Ubuntu-18.04-bionic
Python 3.6.9
Installer: 

azure-cli 2.6.0

Additional Context

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
Juliehzlcommented, Jun 3, 2020

Hi @Lloydkwena, you need to add \ for $. Here you need to use "\$web" for source parameter.

0reactions
kirun141commented, Jul 26, 2022

I am writing a groovy script for the automatic deployment i am having the similar issue but it still throws me the error as in the context of this ticket. Sample of the script is here ‘’‘az storage blob delete-batch -s “$web” --account-name ‘’’ + AZURE_STORAGE_ACCOUNT_NAME_DEV + ‘’’ --account-key ‘’’ + AZURE_STORAGE_ACCOUNT_KEY_DEV

any issues with the above command

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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