github-actions/cli
Jennifer Davis 843845a958 Converting relative link to specific link for login action (#55)
Simple documentation fix to resolve Issue 54
Signed-off-by: Jennifer Davis <iennae@gmail.com>
2019-03-18 17:05:04 +05:30
..
Dockerfile Updated names and description 2019-02-06 16:14:42 +05:30
README.md Converting relative link to specific link for login action (#55) 2019-03-18 17:05:04 +05:30
entrypoint.sh Eliminating shellcheck failures (#48) 2019-02-12 22:47:23 +05:30

README.md

GitHub Action for the Azure CLI

The GitHub Action for Azure CLI wraps the Azure CLI to enable managing Azure resources inside of an Action.

To log into a Azure, we recommend using the Azure Login Action.

Usage


 action "Azure CLI" {
  uses = "Azure/github-actions/cli@master"
  env = {
    AZURE_SCRIPT_PATH = "<Relative path in your repository>"
    AZURE_SCRIPT = "<Azure CLI script>"
  }
   needs = ["Azure Login"]
}

Environment variables

One of AZURE_SCRIPT_PATH / AZURE_SCRIPT is mandatory, in case both are defined AZURE_SCRIPT_PATH gets preference.

  • AZURE_SCRIPTOptional Example: az account list
  • AZURE_SCRIPT_PATHOptional