exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 3 discussion

Actual exam question from Microsoft's AZ-204
Question #: 3
Topic #: 2
[All AZ-204 Questions]

HOTSPOT -
You are creating a CLI script that creates an Azure web app and related services in Azure App Service. The web app uses the following variables:

You need to automatically deploy code from GitHub to the newly created web app.
How should you complete the script? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: az appservice plan create
The azure group creates command successfully returns JSON result. Now we can use resource group to create a azure app service plan

Box 2: az webapp create -
Create a new web app..

Box 3: --plan $webappname -
..with the serviceplan we created in step 1.

Box 4: az webapp deployment -
Continuous Delivery with GitHub. Example:
az webapp deployment source config --name firstsamplewebsite1 --resource-group websites--repo-url $gitrepo --branch master --git-token $token
Box 5: --repo-url $gitrepo --branch master --manual-integration
Reference:
https://medium.com/@satish1v/devops-your-way-to-azure-web-apps-with-azure-cli-206ed4b3e9b1

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kemtin
Highly Voted 4 years ago
Given answer is correct, got this on my test yesterday
upvoted 78 times
130nk3r5
11 months, 1 week ago
Got this today. Went with answer here. Score 927
upvoted 5 times
...
TonyMel
1 year, 8 months ago
correct, in 2023Mar24, score: 904/1000
upvoted 11 times
...
...
Wanni
Highly Voted 4 years ago
#!/bin/bash # Replace the following URL with a public GitHub repo URL gitrepo=https://github.com/Azure-Samples/php-docs-hello-world webappname=mywebapp$RANDOM # Create a resource group. az group create --location westeurope --name myResourceGroup # Create an App Service plan in `FREE` tier. az appservice plan create --name $webappname --resource-group myResourceGroup --sku FREE # Create a web app. az webapp create --name $webappname --resource-group myResourceGroup --plan $webappname # Deploy code from a public GitHub repository. az webapp deployment source config --name $webappname --resource-group myResourceGroup \ --repo-url $gitrepo --branch master --manual-integration # Copy the result of the following command into a browser to see the web app. echo http://$webappname.azurewebsites.net
upvoted 32 times
...
ozai16
Most Recent 8 months, 3 weeks ago
3/12/2024 Got this on my exam, I went with the given answer
upvoted 3 times
DaveOla
8 months, 3 weeks ago
How many questions were from here?
upvoted 1 times
...
...
Vukile
1 year, 1 month ago
On exam 9 Nov 2023, went with given answer, socre 865. Case Study: Farmers and Distributors
upvoted 2 times
Avi28
1 year ago
can you pls share what percentage of questions were from the ET dumps?
upvoted 1 times
...
...
ENGs
1 year, 2 months ago
On my exam 2023-10 before the Update of the Exam
upvoted 2 times
...
SangeethaRamasamy
1 year, 2 months ago
Got this in 14/09/2023 exam. This exam topic questions are helpful to pass the exam. But we need to understand the scenarios clearly so that we can able to answer the question if its twisted slightly.
upvoted 3 times
...
70PineApple
1 year, 9 months ago
Got this in exam today..20/02/23
upvoted 2 times
...
Priya0703
1 year, 9 months ago
Got this question on 20-02-2023 exam.
upvoted 1 times
...
carlosghosn
2 years ago
Got this in the exam today ! Nov 25, 2022
upvoted 5 times
...
AbdulMannan
2 years, 2 months ago
Got this question on 30-Sep-2022 exam. Answer is correct. Passed with 870 score.
upvoted 6 times
...
coffecold
2 years, 2 months ago
https://learn.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-github
upvoted 5 times
...
serpevi
2 years, 2 months ago
Got this in 09/22 , went with the most voted answers, score 927.
upvoted 4 times
...
ischava780225
2 years, 4 months ago
This is comming in the exam,
upvoted 1 times
...
Baskman
2 years, 9 months ago
Got this in the exam 03/22
upvoted 2 times
...
Alasmindas
2 years, 9 months ago
Got this in 03/22 , went with the given answers, the answers are right
upvoted 2 times
...
oescm
2 years, 10 months ago
Got this one 02/2022. Went with given answer.
upvoted 5 times
...
Mev4953
2 years, 10 months ago
Got this in the exam 01/22
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...