You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use this github action to run inlineScript. The github should be running in a docker container, but I can not find any official image for this purpose.
My workflow file looks similar to the one in README. I only added container:
With image: mcr.microsoft.com/azure-powershell:latest I get error Error: Login failed with Error: Unable to locate executable file: az. in the login step.
With image:mcr.microsoft.com/azure-cli:latest I get error Error: Unable to locate executable file: pwsh. in the running script step.
Can someone help me? Or I need a customer docker image for running this simple workflow?
The text was updated successfully, but these errors were encountered:
Hi @wenwenchenbosch , it's the limitation that if you want to use Azure Login Action, Azure cli and Azure PowerShell should be installed on your runner.
May I ask why you need run the Azure PowerShell script in a docker container? It's not a suggested way to run it. You know many softwares are not installed in many docker images.
The images you have tried are only with Azure Cli or Azure PowerShell, not both of them. That's why it failes.
If you do need to run a docker image (only with Azure PowerShell but without Azure Cli) to run Azure PowerShell script in GitHub actions, I suggest you to login with Azure PowerShell directly instead of using Azure Login Action.
For example
Thanks for the reply. We use self-hosted runner for our project. The runners are shared for multiple projects, therefore, it is not possible to install software by myself.
Now I am using PowerShell command for login and it works, and I still need to figure out how to do deployment using PowerShell command. because azure/arm-deploy@v2 also requires az-cli
I want to use this github action to run inlineScript. The github should be running in a docker container, but I can not find any official image for this purpose.
My workflow file looks similar to the one in README. I only added
container
:With
image: mcr.microsoft.com/azure-powershell:latest
I get errorError: Login failed with Error: Unable to locate executable file: az.
in the login step.With
image:mcr.microsoft.com/azure-cli:latest
I get errorError: Unable to locate executable file: pwsh.
in the running script step.Can someone help me? Or I need a customer docker image for running this simple workflow?
The text was updated successfully, but these errors were encountered: