Blog Post

Azure Tools Blog
1 MIN READ

Deprecation of old azure-cli docker image on Docker Hub

jamescasey's avatar
jamescasey
Icon for Microsoft rankMicrosoft
Jun 15, 2021

Summary

As previously announced, we are deprecating all /microsoft org container images hosted in Docker Hub repositories on June 30th, 2021. This includes some old azure-cli images (pre v2.12.1), all of which are already available on Microsoft Container Registry (MCR).

In preparation for the deprecation, we are removing the latest tag from the microsoft/azure-cli  container image in Dockerhub. If you are referencing microsoft/azure-cli:latest in your automation or Dockerfiles, you will see failures.

 

What should I do?

To avoid any impact on your development, deployment, or automation scripts, you should update docker pull commands, FROM statements in Dockerfiles, and other references to microsoft/azure-cli container images to explicitly reference mcr.microsoft.com/azure-cli instead.

 

What’s next?

On June 30th we will remove all version tags from Dockerhub for microsoft/azure-cli . After that date the only to consume the container images will be via MCR.

 

How to get additional help?

We understand that there may be unanswered questions. You can get additional help by submitting an issue on GitHub.

Updated Jun 15, 2021
Version 1.0

1 Comment

  • SasiReddy's avatar
    SasiReddy
    Copper Contributor

    Hi mcr.microsoft.com/azure-cli is failing with "az acr task creadentials add" failing with following error.

     

    ERROR: The command failed with an unexpected error. Here is the traceback:
    ERROR: 'TasksOperations' object has no attribute 'update'
    Traceback (most recent call last):
      File "/usr/local/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
        cmd_result = self.invocation.execute(args)
      File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
        raise ex
      File "/usr/local/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/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
        result = cmd_copy(params)
      File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
        return self.handler(*args, **kwargs)
      File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
        return op(**command_args)
      File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/acr/task.py", line 635, in acr_task_credential_add
        client.update(resource_group_name, registry_name, task_name, taskUpdateParameters)
    AttributeError: 'TasksOperations' object has no attribute 'update'
    To open an issue, please run: 'az feedback'