Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"az acr task timer remove" fails after upgrading to cli 2.26.1 #18903

Closed
Blackbaud-EricSlater opened this issue Jul 16, 2021 · 2 comments · Fixed by #19006
Closed

"az acr task timer remove" fails after upgrading to cli 2.26.1 #18903

Blackbaud-EricSlater opened this issue Jul 16, 2021 · 2 comments · Fixed by #19006
Labels
Container Registry az acr Service Attention This issue is responsible by Azure service team.

Comments

@Blackbaud-EricSlater
Copy link

Blackbaud-EricSlater commented Jul 16, 2021

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az acr task timer remove

Errors:

The command failed with an unexpected error. Here is the traceback:
'TasksOperations' object has no attribute 'create'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/command_modules/acr/task.py", line 804, in acr_task_timer_remove
    return client.create(resource_group_name=resource_group_name,
AttributeError: 'TasksOperations' object has no attribute 'create'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az acr task timer remove -n {} -r {} -g {} --timer-name {}

This is failing on my local computer runnning mac os. It is also failing on the ubuntu-18.04 agent in VSTS.

Expected Behavior

The command should remove the schedule

Environment Summary

macOS-11.4-x86_64-i386-64bit
Python 3.8.11
Installer: HOMEBREW

azure-cli 2.26.1

Additional Context

This was working until upgrading to azure cli 2.26.1. Was previously running 2.25.x

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Jul 16, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 16, 2021
@yonzhan yonzhan added needs-triage This is a new issue that needs to be triaged to the appropriate team. Service Attention This issue is responsible by Azure service team. labels Jul 16, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 16, 2021
@ghost
Copy link

ghost commented Jul 16, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @toddysm, @yugangw-msft, @luisdlp.

Issue Details

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az acr task timer remove

Errors:

The command failed with an unexpected error. Here is the traceback:
'TasksOperations' object has no attribute 'create'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/local/Cellar/azure-cli/2.26.1/libexec/lib/python3.8/site-packages/azure/cli/command_modules/acr/task.py", line 804, in acr_task_timer_remove
    return client.create(resource_group_name=resource_group_name,
AttributeError: 'TasksOperations' object has no attribute 'create'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az acr task timer remove -n {} -r {} -g {} --timer-name {}

This is failing on my local computer runnning mac os. It is also failing on the ubuntu-18.04 agent in VSTS.

Expected Behavior

The command should remove the schedule

Environment Summary

macOS-11.4-x86_64-i386-64bit
Python 3.8.11
Installer: HOMEBREW

azure-cli 2.26.1

Additional Context

This was working until upgrading to azure cli 2.26.1. Was previously running 2.25.x

Author: Blackbaud-EricSlater
Assignees: -
Labels:

Container Registry, Service Attention, customer-reported, needs-triage, question

Milestone: -

@yonzhan yonzhan removed customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 16, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 16, 2021

route to service team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Container Registry az acr Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants