Azure Tips and Tricks - How to use GitHub Actions from Azure App Service
How to use GitHub Actions from Azure App Service
Automated deployments create better software
When you need to manually build and deploy your app, each time that you make a change, you will make mistakes, which result in bugs and downtime for users. Automating your build and deployment processes makes them less error-prone and allows you to deploy as often as you want. GitHub Actions can help to automate your builds and deployments and integrates with Azure App Service.
In this post, we'll automatically build and deploy code to an Azure App Service using GitHub Actions.
Prerequisites
If you want to follow along, you'll need the following:
- An Azure subscription (If you don't have an Azure subscription, create a free account before you begin)
- An Azure App Service Web App. You can create one using this tutorial.
- A GitHub account with a repository in it that contains code that can run on Azure App Service (like an ASP.NET Core website)
Create a GitHub Action from an Azure App Service
We already have an Azure App Service Web App, and a GitHub repository that contains an ASP.NET Core application. Let's use GitHub Actions to deploy the code from the repository to the Web App.
- Go to the Azure portal.
- Navigate to the Azure App Service Web App
- Select the Deployment Center menu
- In the deployment center, select GitHub as the source control location
- If you haven't used your GitHub account with your Azure account before, you need to click the Authorize button to authorize Azure to access GitHub
- Select Continue to go to the next step
- In the Build providers step, select GitHub Actions
(Select GitHub Actions in the Deployment Center)
- Select Continue
- In the Configure step:
- Select the Repository that you want to use
- Select the code Branch to build and deploy from
- Select the Runtime stack. In our case, this is .NET Core with the latest version
(Configure GitHub access in the Deployment Center)
- Select Continue to proceed
- You'll now see the GitHub Action workflow configuration file that describes the GitHub action. Select Finish to finalize the workflow
We have now successfully created a GitHub Action for the Azure Web App. After a few minutes, the workflow will be finished and the code from the repository should be deployed to the Web App. You should be able to see the deployed code run in the Web App when you click on the Browse button from the Deployment Center.
(Application running in Azure App Service Web App)
And from the Deployment Center, you can click on the GitHub Action link to go to the action in GitHub. Here, you can see all the GitHub Action workflows that are configured and their builds and deployments and drill down into the logs of already executed, or in-progress workflows.
(Details of a GitHub Action workflow)
Conclusion
Automating your build and deployment processes improves the quality of your software. GitHub Actions allow you to easily automate your builds and deployments and integrate with Azure App Service.
Create a trial account today and go and check it out!
Published on:
Learn moreRelated posts
Announcing the end of support for Node.js 20.x in the Azure SDK for JavaScript
After July 9, 2026, the Azure SDK for JavaScript will no longer support Node.js 20.x. Upgrade to an Active Node.js Long Term Support (LTS) ver...
MCP Apps on Azure Functions: Quickstart with TypeScript
Learn how to build and deploy MCP (Model Context Protocol) apps on Azure Functions using TypeScript. This guide covers MCP tools, resources, l...
Setting up Power BI Version Control with Azure Dev Ops
In this blog post is a way set up version control for Power BI semantic models (and reports) using the PBIP (Power BI Project) format, Azure D...
Azure Developer CLI (azd) – March 2026: Run and Debug AI Agents Locally, GitHub Copilot Integration, & Container App Jobs
Run, invoke, and monitor AI agents locally or in Microsoft Foundry with the new azd AI agent extension commands. Plus GitHub Copilot-powered p...
Writing Azure service-related unit tests with Docker using Spring Cloud Azure
This post shows how to write Azure service-related unit tests with Docker using Spring Cloud Azure. The post Writing Azure service-related uni...
Azure SDK Release (March 2026)
Azure SDK releases every month. In this post, you find this month's highlights and release notes. The post Azure SDK Release (March 2026) appe...
Specifying client ID and secret when creating an Azure ACS principal via AppRegNew.aspx will be removed
The option to specify client ID and secret when creating Azure ACS principals will be removed. Users must adopt the system-generated client ID...
Azure Developer CLI (azd): Run and test AI agents locally with azd
New azd ai agent run and invoke commands let you start and test AI agents from your terminal—locally or in the cloud. The post Azure Developer...