What is GitHub Actions for Azure
GitHub Actions helps you automate your software development workflows from within GitHub. You can deploy workflows in the same place where you store code and collaborate on pull requests and issues.
In GitHub Actions, a workflow is an automated process that you set up in your GitHub repository. You can build, test, package, release, or deploy any project on GitHub with a workflow.
Each workflow is made up of individual actions that run after a specific event (like a pull request) occur. The individual actions are packaged scripts that automate software development tasks.
With GitHub Actions for Azure, you can create workflows that you can set up in your repository to build, test, package, release, and deploy to Azure. GitHub Actions for Azure supports Azure services, including Azure App Service, Azure Functions, and Azure Key Vault.
GitHub Actions also include support for utilities, including Azure Resource Manager templates, Azure CLI, and Azure Policy.
Watch this video from GitHub Universe 2020 to learn more about continuous delivery with GitHub Actions.
Why should I use GitHub Actions for Azure
GitHub Actions for Azure are developed by Microsoft and designed to be used with Azure. You can see all of the GitHub Actions for Azure in the GitHub Marketplace. See Finding and customizing actions to learn more about incorporating actions into your workflows.
What is the difference between GitHub Actions and Azure Pipelines
Azure Pipelines and GitHub Actions both help you automate software development workflows. Learn more about how the services differ and how to migrate from Azure Pipelines to GitHub Actions.
What do I need to use GitHub Actions for Azure
You'll need Azure and GitHub accounts:
- An Azure account with an active subscription. Create an account for free.
- A GitHub account. If you don't have one, sign up for free.
How do I connect GitHub Actions and Azure
Depending on the action, you'll use a service principal or publish profile to connect to Azure from GitHub. You'll use a service principal each time you use the Azure login action. The Azure App Service action supports using a publish profile or service principal. See Application and service principal objects in Azure Active Directory to learn more about service principals.
You can use the Azure login action in combination with both the Azure CLI and Azure Azure PowerShell actions. The Azure login action also works with most other GitHub actions for Azure including deploying to web apps and accessing key vault secrets.
What is included in a GitHub Actions workflow
Workflows are made up of one or more jobs. Within a job, there are steps made up of individual actions. See Introduction to GitHub Actions to learn more about GitHub Actions concepts.
Where can I see complete workflow examples
The Azure starter action workflows repository includes end-to-end workflows to build and deploy Web apps of any language, any ecosystem to Azure.
Where can I see all the available actions
Visit the Marketplace for GitHub Actions for Azure to see all the available GitHub Actions for Azure.
- Deploy Bicep file or Azure Resource Manager template
- Deploy to a static web app
- Azure App Service settings
- Deploy to Azure Functions
- Deploy to Azure Functions for Containers
- Docker login
- Deploy to Azure Container Instances
- Container scanning action
- Kubectl tool installer
- Kubernetes set context
- AKS set context
- Kubernetes create secret
- Kubernetes deploy
- Setup Helm
- Kubernetes bake
- Build Azure virtual machine images
- Machine learning login
- Machine learning training
- Machine learning - deploy model
- Deploy to Azure SQL database
- Deploy to Azure MySQL action
- Azure Policy Compliance Scan
- Manage Azure Policy
- Trigger an Azure Pipelines run
Submit and view feedback for