exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 1 question 10 discussion

Actual exam question from Microsoft's AZ-203
Question #: 10
Topic #: 1
[All AZ-203 Questions]

DRAG DROP -
You are developing a Docker/Go using Azure App Service Web App for Containers. You plan to run the container in an App Service on Linux. You identify a
Docker container image to use.
None of your current resource groups reside in a location that supports Linux. You must minimize the number of resource groups required.
You need to create the application and perform an initial deployment.
Which three Azure CLI commands should you use to develop the solution? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
You can host native Linux applications in the cloud by using Azure Web Apps. To create a Web App for Containers, you must run Azure CLI commands that create a group, then a service plan, and finally the web app itself.

Step 1: az group create -
In the Cloud Shell, create a resource group with the az group create command.
Step 2: az appservice plan create
In the Cloud Shell, create an App Service plan in the resource group with the az appservice plan create command.

Step 3: az webapp create -
In the Cloud Shell, create a web app in the myAppServicePlan App Service plan with the az webapp create command. Don't forget to replace with a unique app name, and <docker-ID> with your Docker ID.
References:
https://docs.microsoft.com/mt-mt/azure/app-service/containers/quickstart-docker-go?view=sql-server-ver15

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
hertino
Highly Voted 4 years, 9 months ago
Today I got 900, I had this question, my answer: az group create - az appservice plan create az webapp create -
upvoted 22 times
...
chintan4190
Highly Voted 5 years, 1 month ago
given answer is correct. In question it is mentioned that None of your current resource groups reside in a location that supports Linux. --> so we have to create RG first
upvoted 17 times
MaheshBeeravelli
4 years, 9 months ago
Is there any restriction that app service should be in the same location as in Resource Group ?
upvoted 1 times
...
...
funfun
Most Recent 4 years, 4 months ago
why not just create a new app service plan in the same resource group but the plan in different region, then create web app? In such case, only 2 steps are needed without creating a new resource group
upvoted 1 times
...
SidSadhu
4 years, 8 months ago
CORRECT
upvoted 1 times
...
Jack2016
4 years, 8 months ago
Answer is correct. If the resource group does not support linux, new group should be created. {"code":"InvalidTemplateDeployment","message":"The template deployment 'Microsoft.Web-ASP-Portal-' is not valid according to the validation procedure. See inner errors for details.","details":[{"code":"ValidationForResourceFailed","message":"Validation failed for a resource. Check 'Error.Details[0]' for more information.","details":[{"code":"LinuxWorkersNotAllowedInResourceGroup","message":"Linux workers are not available in resource group ResoureIndia. Use this link to learn more https://go.microsoft.com/fwlink/?linkid=831180"}]}]}
upvoted 1 times
...
mattos
5 years, 2 months ago
Answer should be to create app service plan, create webapp, and update webapp. No need to update or create resource groups, since the question mentions there are existing RGs and that number of RGs should be minimized. Resources can be created in any location, regardless of the RG location.
upvoted 1 times
VMCoder
5 years, 1 month ago
makes sense, but what would you use the update webapp for?
upvoted 1 times
...
kl337n
5 years, 1 month ago
You can't mix Linux and Windows app service plans in one resource group, therefore you need to create new RG. https://docs.microsoft.com/pl-pl/azure/app-service/containers/app-service-linux-intro "Based on a current limitation, for the same resource group you cannot mix Windows and Linux apps in the same region."
upvoted 21 times
PT29
4 years, 9 months ago
It says "you cannot mix Windows and Linux apps in the same region." so it can be present in same RG but you will have to create ASP in diff regions for widows and linux. This works and I have it working for me.
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago