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.
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"]
}
One of AZURE_SCRIPT_PATH / AZURE_SCRIPT is mandatory, in case both are defined AZURE_SCRIPT_PATH gets preference.
AZURE_SCRIPT
– Optional Example: az account listAZURE_SCRIPT_PATH
– Optional