AZ-204 – Question 11

A company is developing a Java web app. The web app code is hosted in a GitHub repository located at
The web app must be evaluated before it is moved to production. You must deploy the initial code release to a deployment slot named staging.
You need to create the web app and deploy the code.
How should you complete the commands? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Correct Answer: 

Box 1: group –
# Create a resource group.
az group create –location westeurope –name myResourceGroup

Box 2: appservice plan –
# Create an App Service plan in STANDARD tier (minimum required by deployment slots). az appservice plan create –name $webappname –resource-group myResourceGroup –sku S1

Box 3: webapp –
# Create a web app.
az webapp create –name $webappname –resource-group myResourceGroup \
–plan $webappname

Box 4: webapp deployment slot –
#Create a deployment slot with the name "staging".
az webapp deployment slot create –name $webappname –resource-group myResourceGroup \
–slot staging

Box 5: webapp deployment source –
# Deploy sample code to "staging" slot from GitHub.
az webapp deployment source config –name $webappname –resource-group myResourceGroup \
–slot staging –repo-url $gitrepo –branch master –manual-integration


Please enter your comment!
Please enter your name here