Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.

Files

Latest commit

 

History

History

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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