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

This solution no longer works after installing Azure CLI v2.30.0 or higher on the host #2

Closed
jdthorpe opened this issue Feb 9, 2022 · 3 comments

Comments

@jdthorpe
Copy link

jdthorpe commented Feb 9, 2022

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

@jongio
Copy link
Owner

jongio commented Feb 9, 2022

Thanks. Yes, we are aware. And are researching possible solutions. For now use the previous version in containers.

@goenning
Copy link

goenning commented Mar 9, 2022

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.

@jongio
Copy link
Owner

jongio commented Mar 9, 2022

Unfortunately, we don't have a solution. Going to close this as it is being tracked here: Azure/azure-sdk-for-net#19167

@jongio jongio closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants