Azure / cli

Automate your GitHub workflows using Azure CLI scripts
MIT License
124 stars 52 forks source link

Why is the Azure CLI action only available on Linux based runners? #54

Closed simonech closed 2 years ago

simonech commented 2 years ago

I tried running the AZ command using the AZ CLI action and I got the following error:

Please use Linux based OS as a runner.

I'm wondering why enforcing Linux based runners and not allowing windows runner. I ran the same az command with the run command and it worked fine on Windows

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] commented 2 years ago

This issue is idle because it has been open for 14 days with no activity.

t-dedah commented 2 years ago

Hi @simonech The docker container which is used to run the commands is only available for linux. If we try to pull that container from mcr in a windows machine which is using windows version of docker then this error is thrown.

Unable to find image 'mcr.microsoft.com/azure-cli:latest' locally
latest: Pulling from azure-cli
docker: image operating system "linux" cannot be used on this platform.
See 'docker run --help'.
t-dedah commented 2 years ago

Closing this issue for now. Please reopen if you have more followup questions.

populov commented 1 year ago

@t-dedah Are there any plans for Windows runners support?