Skip to content

GitHub Action for Azure CLI v1.0.0

Compare
Choose a tag to compare
@bishal-pdMSFT bishal-pdMSFT released this 12 Nov 12:42
· 67 commits to releases/v1 since this release
4d518c1

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 LoginRequired Login with your Azure credentials
  • CheckoutOptional 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