Azure/cli

The action not yet support Windows Runner

Closed this issue · 3 comments

For those need to run az cli on Windows Agent/Runner, we just used the alternative batch script/powershell script

- name: Azure login
  if: ${{ success() }}
  uses: azure/login@v1
  with:
    creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Test show Azure login
  if: ${{ success() }}
  run: az account show

- name: Upload to blob storage
  if: ${{ success() }}
  run: az storage blob upload-batch --auth-mode login --account-name storageaccount --destination containerid --destination-path path --source source --pattern *.zip --overwrite --no-progress

cli/src/main.ts

Lines 19 to 22 in 548c3ec

if (process.env.RUNNER_OS != 'Linux') {
core.setFailed('Please use Linux based OS as a runner.');
return;
}

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

#97 Issue Running az cli inline command on windows agent

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.

Thank you for the feedback @thohng.
Closing this issue for now. Please reopen if you have any more questions.