Azure-Samples / LUIS-DevOps-Template

Template repo encapsulating best engineering practices and DevOps using GitHub Actions for the development of a LUIS application.
MIT License
21 stars 17 forks source link

Consider testing for Azure CLI in setup scripts #23

Closed drub0y closed 4 years ago

drub0y commented 4 years ago

While the instructions call it out, we all know people don't follow instructions well. Right now the scripts just execute assuming Azure CLI will be available, but they could be easily updated to check that they find az on the path.

In PowerShell you can do this with Get-Command and in bash you can do this with which.

The scripts can start with this check and, if not found, explicitly state that the Azure CLI was not detected on the path, ask if they have it installed and even provide the aka.ms URL where they can grab it.

AndyCW commented 4 years ago

Good call - on backlog