Courseiva
Develop Azure compute solutionseasyMultiple SelectObjective-mapped

How to Enable Continuous Deployment from GitHub to Azure App Service

You are deploying an Azure App Service that uses a Linux container to host a custom web application. You need to configure continuous deployment from a GitHub repository. Which TWO actions should you take?

Quick Answer

The correct answer is to configure the 'Deployment Center' in the App Service to use GitHub Actions. This is the right approach because Azure App Service’s built-in CI/CD integration with GitHub Actions automatically builds and deploys your custom container to the Linux-based App Service on every push to your repository, eliminating the need for manual triggers or external pipelines. On the Microsoft Azure Developer Associate AZ-204 exam, this scenario tests your understanding of how to bridge source control with containerized deployments, often appearing as a distractor where candidates might mistakenly choose a manual Docker push or a separate Azure DevOps pipeline. A common trap is overlooking that the Deployment Center directly generates the GitHub Actions workflow YAML file for you, handling both the container build and the web app deployment in one step. Memory tip: think "Deployment Center = GitHub Actions for container CI/CD" — it’s the one-stop shop that links your code changes directly to your running app.

⚠ Common exam trap

Test-takers frequently think Kudu is the only deployment engine for App Service, but for Linux containers, the built-in CI/CD and GitHub Actions are the supported methods, and Kudu is not used for GitHub sync in this scenario.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use the App Service built-in CI/CD feature to connect to GitHub.

Azure App Service provides a built-in CI/CD feature that directly integrates with GitHub, enabling automatic deployment of code changes without additional configuration. Option C is also correct because the Deployment Center in App Service allows you to configure GitHub Actions as the CI/CD pipeline, which builds and deploys the container to the App Service on each push.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Set up an FTP trigger to poll the GitHub repository for changes.

    Why it's wrong here

    FTP is not a trigger for continuous deployment.

  • Use the App Service built-in CI/CD feature to connect to GitHub.

    Why this is correct

    Built-in CI/CD supports GitHub.

  • Configure the 'Deployment Center' in the App Service to use GitHub Actions.

    Why this is correct

    GitHub Actions can be set up for CI/CD.

  • Use the Kudu service to sync with GitHub.

    Why it's wrong here

    Kudu is for Windows App Service; Linux uses Oryx.

  • Push the container image to Docker Hub and configure webhook.

    Why it's wrong here

    This deploys a container, not the application code.

About these practice questions

Courseiva writes every AZ-204 question from scratch — 881 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on AZ-204

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You are deploying a web app to Azure App Service. You need to enable continuous deployment from a GitHub repository. Which TWO actions are required?

easy
  • A.Create a new App Service plan
  • B.Set up a build provider like GitHub Actions or Kudu
  • C.Configure the Deployment Center in the App Service to connect to GitHub
  • D.Enable Application Insights
  • E.Add a custom domain to the App Service

Why B: B and C are correct. C is correct because the Deployment Center in Azure App Service is the primary interface for configuring continuous deployment. It allows you to select GitHub as your source control, authenticate, and specify the repository and branch. This action establishes the connection between your App Service and your GitHub repository, initiating the continuous deployment pipeline. B is correct because within the Deployment Center configuration, you must also select or set up a build provider (like GitHub Actions or Kudu). This provider is responsible for compiling your code, running tests (if configured), and deploying the built application to Azure App Service. Without a build provider, the source code cannot be transformed into a runnable application on App Service.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.