Skip to content

Plabick/Azure-CLI-Wrapper-Action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure CLI Wrapper Action

An action to run Azure CLI commands from a GitHub Workflow. This action launches a Docker container with the Azure CLI installed, logs in, and then attempts to run the command specified in the command input.

Usage

Inputs

Parameter Description Required
username Azure Service Principal Username true
tenant Azure Service Principal Tenant true
password Azure Service Principal Tennant ID true
command A command to run true

Example

    - name: Start MyContainerGroup
      uses: Plabick/ACR-Container-Purge-Action@master
      with:
        registry: ${{ secrets.registry }}
        username: ${{ secrets.service-principal-username }}
        tenant: ${{ secrets.service-principal-tenant }}
        password: ${{ secrets.SERVICE_PRINCIPAL_TOKEN }}
        command: 'az container start --name MyContainerGroup --resource-group MyResourceGroup'