Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

az-cli fails with 'NoneType' object is not callable


We have a job, that cleans out container registry. If you run these commands locally, everything seems to work fine. The pipeline itself was fine, no changes were introduced. Today it just stopped working all of a sudden.

- az account set --subscription "Staging Subscription"
- az acr run --cmd "acr purge --filter 'b2b:.*' --untagged --ago 30d" --registry "staging" /dev/null
- az account set --subscription "Production Subscription"
- az acr run --cmd "acr purge --filter 'b2b:.*' --untagged --ago 180d" --registry "production" /dev/null


The trace as follows. Any ideas?

+ az acr run --cmd "acr purge --filter 'b2b:.*' --untagged --ago 30d" --registry "staging" /dev/nullERROR: The command failed with an unexpected error. Here is the traceback:ERROR: 'NoneType' object is not callableTraceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/knack/", line 231, in invoke cmd_result = self.invocation.execute(args) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/", line 657, in execute raise ex File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/", line 720, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/", line 691, in _run_job result = cmd_copy(params) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/", line 328, in __call__ return self.handler(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/", line 121, in handler return op(**command_args) File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/acr/", line 90, in acr_run platform=PlatformProperties(TypeError: 'NoneType' object is not callableTo open an issue, please run: 'az feedback'

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,204 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you