Comments (5)
Thank you @MoChilia I used the instruction here: https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt and it worked.
For anyone who might also need this, this is how my workflow looks like:
- name: uninstall azure-cli
run: |
sudo apt-get remove -y azure-cli
- name: install azure-cli 2.61.0
run: |
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
gpg --dearmor | sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
AZ_DIST=$(lsb_release -cs)
echo "Types: deb
URIs: https://packages.microsoft.com/repos/azure-cli/
Suites: ${AZ_DIST}
Components: main
Architectures: $(dpkg --print-architecture)
Signed-by: /etc/apt/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/azure-cli.sources
sudo apt-get update
sudo apt-get install azure-cli
apt-cache policy azure-cli
# Obtain the currently installed distribution
AZ_DIST=$(lsb_release -cs)
# Store an Azure CLI version of choice
AZ_VER=2.61.0
# Install a specific version
sudo apt-get install azure-cli=${AZ_VER}-1~${AZ_DIST} --allow-downgrades
- name: check azure-cli version
run: |
az --version
from cli.
Hi @cYKatherine, as you mentioned, running docker inside docker is not recommended, so the azure/cli action does not support running docker commands inside. A current solution is to run these commands directly in bash. We may consider an enhancement to enable users to run Docker commands within azure/cli.
from cli.
Similar issue to #152.
from cli.
Hello @MoChilia , thank you for getting back to me.
Can I confirm it is not possible to run az confcom
using this azure/cli
action?
A side question is: is there any way to run a specific az
version on bash? From this comment you left last year it seems that it's not possible, has anything been upgraded between now and then?
Thank you so much!
from cli.
From the error message you provided, it appears that az confcom
requires docker to start. Currently, this is not supported in the azure/cli action. Running a specific az version on bash can be a bit complex. You may refer to the downgrade scripts I have given in Azure/login#372 (comment).
from cli.
Related Issues (20)
- Unable to fetch all az cli versions HOT 11
- what are the benefits on using azure/CLI action over standard run command HOT 2
- Azure/CLI@V1 Error on Self-Hosted Runner on Azure AKS HOT 4
- az cli script failed in github action. HOT 2
- curl: command not found HOT 3
- Pre Azure Login is getting added and GitHub actions is failing HOT 4
- Update Node from version 16 to version 20 HOT 2
- allow pulling azure cli docker image from artifactory HOT 2
- New version release with node 20 compatibility updates HOT 3
- 📢 Azure/cli v2 Release Announcement HOT 1
- [bug] Unable to use GitHub action local resources / [feature] Allow mapping custom paths HOT 1
- az ssh command doesn't work due to OpenSSH not being installed in the docker container HOT 4
- Error: Unable to find image 'mcr.microsoft.com/azure-cli:latest' locally HOT 13
- Add docker.sock mapping for linux agents HOT 1
- Unable to fetch all az cli versions (azure/CLI@v2) HOT 10
- Warning: Unable to fetch all az cli versions HOT 1
- GitHub Action fails with "Please enter a valid azure cli version" error message with default "azcliversion" parameter HOT 7
- Warning about Alpine-based image vs latest Azure Linux based image HOT 1
- 📢We're now open to meet and talk for GitHub Actions with you.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.