Releases: Azure/cli
Releases · Azure/cli
GitHub Action for Azure CLI v1.0.2
Default environment variables provided by GitHub are now accessible while execution of Azure CLI script. Environment variables with prefix GITHUB_*
are accessible during the script execution.
GitHub Action for Azure CLI v1.0.1
GITHUB_SHA default environment variable is available to use in the script.
GitHub Action for Azure CLI v1.0.0
Azure CLI GitHub Action enables you to automate your Action workflow by executing Azure CLI commands to manage Azure resources inside of an Action.
Sample workflow
Dependencies on other GitHub Actions
- Azure Login – Required Login with your Azure credentials
- Checkout – Optional To execute the scripts present in your repository
Workflow to execute an AZ CLI script of a specific CLI version
# File: .github/workflows/workflow.yml
on: [push]
name: AzureCLISample
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Azure CLI script
uses: azure/CLI@v1
with:
azcliversion: 2.0.72
inlineScript: |
az account show
az storage -h
This is released under MIT License
GitHub Action for Azure CLI v0-beta
With Azure CLI GitHub Action, you can automate your workflow by executing Azure CLI commands to manage Azure resources inside of an Action.