Question 3 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question 3 of 179 from exam AZ-204: Developing Solutions for Microsoft Azure

Question

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:

Variable name

Value

Sgitrepo

https: //github.com/Contos/webapp

Swebappname

Webapp1103

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:

Answer Area
az group create --location westeurope --name myResourceGroup

LY. --name S$webappname --resource-group myResourceGroup --sku FREE

az webapp

az appservice plan create
az webapp deployment
az group delete

| WV --name Swebappname --resource-group myResourceGroup
az webapp create
az appservice plan create
az webapp deployment
az group delete

lv

--fepo-url $gitrepo --branch master --manual-integration
git clone $gitrepo

~plan $webappname

LW source config --name Swebappname

az webapp

az appservice plan create
az webapp deployment
az group delete

--resource-group myResourceGroup Vv
--fepo-url $gitrepo --branch master --manual-integration
git clone $gitrepo

--plan $webappname

Explanations

Answer Area
az group create --location westeurope --name myResourceGroup

lv --name S$webappname --resource-group myResourceGroup --sku FREE

az webapp

az appservice plan create
az webapp deployment
az group delete

lv --name Swebappname --resource-group myResourceGroup

az webapp create

az appservice plan create
az webapp deployment
az group delete

lv
--fepo-url $gitrepo --branch master --manual-integration
git clone $gitrepo
~plan $webappname

|W! source config --name $webappname

az webapp
az appservice plan create

az webapp deployment

az group delete

--resource-group myResourceGroup Vv
—fepo-url $gitrepo --branch master --manual-integration
git clone $gitrepo

--plan $webappname

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