AZ-400 · Question #114
AZ-400 Question #114: Real Exam Question with Answer & Explanation
The correct answer walks through the Azure Deployment Center workflow, which is the proper mechanism for setting up continuous deployment (CD) from a GitHub repository to an Azure Function App. By navigating to the Function App's Deployment Center, selecting GitHub as the source,
Question
SIMULATION You have an Azure function hosted in an App Service plan named az400-9940427-func1. You need to configure az400-9940427-func1 to upgrade the functions automatically whenever new code is committed to the master branch of https://github.com/Azure-Samples/functions-quickstart. To complete this task, sign in to the Microsoft Azure portal. Answer: 1. Open Microsoft Azure Portal 2. Log into your Azure account, select App Services in the Azure portal left navigation, and then select configure az400-9940427-func1. 3. On the app page, select Deployment Center in the left menu. 4. On the Build provider page, select Azure Pipelines (Preview), and then select Continue. 5. On the Configure page, in the Code section: For GitHub, drop down and select the Organization, Repository, and Branch you want to deploy continuously. 6. Select Continue. 7. On the Test page, choose whether to enable load tests, and then select Continue. 8. Depending on your App Service plan pricing tier, you may see a Deploy to staging page. Choose whether to enable deployment slots, and then select Continue. 9. After you configure the build provider, review the settings on the Summary page, and then select Finish. References: https://docs.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment
Options
- taskConfigure Azure function az400-9940427-func1 to automatically upgrade functions whenever new code is committed to the master branch of https://github.com/Azure-Samples/functions-quickstart in the Microsoft Azure portal.
- prerequisitesMicrosoft Azure portal access
Explanation
The correct answer walks through the Azure Deployment Center workflow, which is the proper mechanism for setting up continuous deployment (CD) from a GitHub repository to an Azure Function App. By navigating to the Function App's Deployment Center, selecting GitHub as the source, and specifying the organization, repository (Azure-Samples/functions-quickstart), and branch (master), Azure automatically configures a webhook or pipeline that triggers a deployment whenever new code is pushed to that branch. This fulfills the requirement of automatic upgrades on every commit to master without any manual intervention.
Topics
Community Discussion
No community discussion yet for this question.