Azure / cli

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

what are the benefits on using azure/CLI action over standard run command #115

Closed xiang-zhu-pr closed 10 months ago

xiang-zhu-pr commented 10 months ago

Hello,

Except for azcliversion in azure/CLI that I can specify the version to use, what are the other benefits of cli over - run: step, as I find that I can also run az command inside - run: step, and I write less code than azure/cli action.

MoChilia commented 10 months ago

Hi @xiang-zhu-pr,

The primary benefit of using the Azure/CLI action over the standard '- run' step with 'az' commands lies in its containerized environment. When you use the Azure/CLI action, it runs 'az' commands within a Docker container. This provides several advantages:

xiang-zhu-pr commented 10 months ago

thx a lot