Skip to content

@ramirezalfredo the customer can add this step for Ubuntu to stick to azure-cli 2.23.0 no matter what version is on the image. The installation takes about 40 seconds. #18472

@Deliriousafflictionz5150

Description

@ramirezalfredo the customer can add this step for Ubuntu to stick to azure-cli 2.23.0 no matter what version is on the image. The installation takes about 40 seconds.

sudo apt-get remove azure-cli
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
sudo apt-get update
sudo apt-get install azure-cli=2.23.0-1~$(lsb_release -cs)

Originally posted by @miketimofeev in actions/runner-images#3508 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions