Skip to content

segraef/azlogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action azlogin

The GitHub Action azlogin for Azure Login wraps the Azure PowerShell's Connect-AzAccount, allowing for Actions to log into Azure.

Because $HOME is persisted across Actions, the az login command will save this information on the filesystem, allowing other Actions to reuse the context. The official action azure/login@v1 does not use $HOME.

Usage


- uses: segraef/azlogin@v1
  with:
    clientId: ${{ secrets.clientId }}
    clientSecret: ${{ secrets.clientSecret }}
    tenantId: <tenantId>
    subscriptionId: <subscriptionId>

Secrets

  • clientIdRequired
  • clientSecretRequired
  • tenantIdRequired
  • subscriptionIdRequired

Variables

  • identity: yes/noOptional
  • environmentNameOptional

You can create get the above details by running following command (details).

az ad sp create-for-rbac --name "<spName>" --role contributor --scopes /subscriptions/<subscriptionId> --sdk-auth

About

Azure GitHub Action Login (azlogin)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors