This solution no longer works after installing Azure CLI v2.30.0 or higher on the host
jdthorpe opened this issue · comments
To get this working, I had to downgrade to Azure CLI v2.29 or earlier on both the host and in the container. In the Container this meant changing this line to the following:
RUN apt-get update \
&& apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y
RUN curl -sL https://packages.microsoft.com/keys/microsoft.asc | \
gpg --dearmor | \
tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
RUN AZ_REPO=$(lsb_release -cs) \
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
tee /etc/apt/sources.list.d/azure-cli.list
RUN apt-get update && \
apt-get install azure-cli=2.29.2-1~buster
and then installing the same version on the host machine from the Azure CLI Releases page
Thanks. Yes, we are aware. And are researching possible solutions. For now use the previous version in containers.
any ideas if we'll have a solution soon?
I've pinned our container to 2.29, but the az cli on devs machine are being auto upgraded by default, which shouldn't be happening by default.
Unfortunately, we don't have a solution. Going to close this as it is being tracked here: Azure/azure-sdk-for-net#19167