bishal-pdMSFT
released this
12 Nov 12:42
·
67 commits
to releases/v1
since this release
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