ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 180 - AZ-204 discussion

Report
Export

HOTSPOT

A company is developing a Java web app. The web app code is hosted in a GitHub repository located at https://github.com/Contoso/webapp.

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.


Question 180
Correct answer: Question 180

Explanation:

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

Reference:

https://docs.microsoft.com/en-us/azure/app-service/scripts/cli-deploy-staging-environment

asked 02/10/2024
Mohamed Mohamed
48 questions
User
0 comments
Sorted by

Leave a comment first