Closed DeluxeOwl closed 1 year ago
Hi @DeluxeOwl, this generally means that .azure folder is missing in the docker. Is it possible for your to confirm content of the agent using ls
before azure/cli
action and again inside the action? We want to confirm whether .azure
folder is being created and copied correctly.
I've removed the deployment part and only did ls -la
preview:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Install az cli
run: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
- uses: azure/login@v1
name: Sign in to Azure
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
environment: azurecloud
- run: ls -la ~ && ls -la ~/.azure/
- uses: azure/cli@v1
name: Run what-if
with:
inlineScript: |
ls -la ~ && ls -la ~/.azure/
It seems like the .azure
directory is copied but the contents are not.
This issue is stale because it has been open for 7 days with no activity.
This issue is idle because it has been open for 14 days with no activity.
This issue is stale because it has been open for 7 days with no activity.
This issue is idle because it has been open for 14 days with no activity.
Have the exact same issue. My workaround was to just use the azure/login@v1
action to login and then a bash
step to run the rest of my pipeline.
Would be nice to have it working though.
This issue is idle because it has been open for 14 days with no activity.
This issue is stale because it has been open for 7 days with no activity.
We have this issue, too. Workaround is to install az cli in the runner image or in the runner at runtime and call it from bash, as @damian-archlet suggested.
Would like to have this fixed, though.
This issue is idle because it has been open for 14 days with no activity.
This issue is stale because it has been open for 7 days with no activity.
Hi @DeluxeOwl, @damian-archlet, @hansmbakker! Please let us know if you are still facing the issue. I cannot reproduce the error, since azure/cli@v1 works well with azure/login@v1 on my self-hosted runner with az cli installed manually.
It's been one year and a few months since I opened this issue. I already switched jobs since then.
Ok, thanks for your feedback. Closing this issue for now. If there is any further question, please reopen it.
Hi,
I'm running self hosted runners on k8s using https://github.com/actions-runner-controller/actions-runner-controller, which doesn't have
az cli
installed by default.So in my workflow, I'm installing it using
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
as per MS's documentation and signing in usingazure/login@v1
and a service account which works fine, but when I'm runningazure/cli@v1
right after, it gives the following errors:here is how the github job looks:
Any idea how to fix this?