exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 10 discussion

Actual exam question from Microsoft's AZ-204
Question #: 10
Topic #: 2
[All AZ-204 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.
Reference:
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
Secure01
Highly Voted 3 years, 5 months ago
Within the same resource group, you can't mix Windows and Linux apps in the same region. https://docs.microsoft.com/en-us/azure/app-service/overview#app-service-on-linux "None of your current resource groups reside in a location that supports Linux" So you have to create new resource group. Answer is correct.
upvoted 71 times
rgullini
2 years, 8 months ago
This explanation is correct and it is applicable BEFORE January 21, 2021. Now the article says: "Linux and Windows App Service plans can now share resource groups. This limitation has been lifted from the platform and existing resource groups have been updated to support this"
upvoted 27 times
kags
2 years, 7 months ago
Agreed. Just created both linux and windows, core3.1 and .net 5 respectively in same resource group.
upvoted 4 times
Netspud
2 years, 2 months ago
Many are missing the point here, it says "None of your current resource groups reside in a location that supports Linux". So you need to create a group in an area that does support Linux. Doesn't matter if you mix them or not, there is currently nothing that supports Linux, so something new is required. For me the answer is correct.
upvoted 33 times
bubbleGumStroganoff
2 years, 2 months ago
The resources inside of a resource group can be in a region that differs from the region of the resource group they reside in though no?
upvoted 6 times
...
...
...
...
rohitpatil113
1 year, 8 months ago
Limitations Note Linux and Windows App Service plans can now share resource groups. This limitation has been lifted from the platform and existing resource groups have been updated to support this.
upvoted 15 times
...
Edwardenis
3 years, 2 months ago
I don't agree with you. 1. the link you posted doesn't say anything about restriction on mixing App service plan in the same region. 2. I just created 2 app service plan in the same RG. One app service plan on windows in the region of the RG East US and the other app service plan in Linux in Central US
upvoted 1 times
azurelearner666
2 years, 10 months ago
It does if you read it... see under limitations, it says "You can't mix Windows and Linux apps in the same App Service plan."
upvoted 6 times
...
dookebroyle
1 year, 10 months ago
It also states your current resource group locations do not support Linux. So even though you can in your situation, the question specifies that that is not an option
upvoted 4 times
...
...
JulienYork
3 years, 4 months ago
https://docs.microsoft.com/en-us/azure/app-service/overview#app-service-on-linux
upvoted 2 times
...
...
lde
Highly Voted 3 years, 2 months ago
https://docs.microsoft.com/en-us/azure/app-service/overview#app-service-on-linux Historically, you can't mix Windows and Linux apps in the same resource group. However, all resource groups created on or after January 21, 2021 do support this scenario. For resource groups created before January 21, 2021, the ability to add mixed platform deployments will be rolled out across Azure regions (including National cloud regions) soon.
upvoted 20 times
azurelearner666
2 years, 10 months ago
This should be updated on the exam to reflect reality... so we have to respond wrong now to pass... LOL
upvoted 6 times
...
Edwardenis
3 years, 2 months ago
Ohhh Thanks for the notice, thats why I could create both app service plans.
upvoted 2 times
...
...
pandugadu009
Most Recent 7 months, 3 weeks ago
the given answer is correct. the az group update command can not update the location. so you need to create a new group.
upvoted 5 times
...
juanckar
10 months, 1 week ago
This was on the exam (July 2023). Went with proposed. Scored 917
upvoted 14 times
...
surprise0011
1 year ago
you can't update the resource group, you will get an error. So it has to be: az group create az group update --name acrrg --set location=centralus (InvalidResourceGroupLocation) Invalid resource group location 'centralus'. The Resource group already exists in location 'westeurope'. Code: InvalidResourceGroupLocation Message: Invalid resource group location 'centralus'. The Resource group already exists in location 'westeurope'.
upvoted 4 times
...
ucskips
1 year, 2 months ago
Once the region of a resource group is set it cannot be updated. I read this before but I don't where
upvoted 3 times
...
Esward
1 year, 2 months ago
It was there in 13 Feb 2023 exam
upvoted 1 times
...
obeesubz5
1 year, 3 months ago
All you need here is to create an app service plan and the web app. Secondly, no one said the existing rg contain Windows vm's. Thirdly, it does not say that the existing rg's don't support linux, it says "the locations" of the rg don't support linux. So here you have to bare in mind that a resource need not be in the same region as the rg. You can google, in fact try it out yourself. This supports the "Limit number of resource groups" requirement.
upvoted 3 times
...
Esward
1 year, 3 months ago
Given answers are correct!!
upvoted 1 times
...
ghassen204
1 year, 4 months ago
I think: 1: az group update 2: az appservice plan create 3: az webapp create Note: Linux and Windows App Service plans can now share resource groups. This limitation has been lifted from the platform and existing resource groups have been updated to support this.
upvoted 4 times
josecouva
1 year, 4 months ago
But in the queston it says "None of your current resource groups reside in a location that supports Linux", so you can't execute az group update. I think the answer given is correct
upvoted 4 times
...
...
[Removed]
1 year, 7 months ago
It says the Resource groups are not in a location that supports Linux, but you can create a resource in a location other than the resource group location. So, I do not understand why there is a need to create a new RG. But I do agree that given the options the answer is correct
upvoted 5 times
...
Enigma___
1 year, 7 months ago
Linux and Windows App Service plans can now share resource groups. This limitation has been lifted from the platform and existing resource groups have been updated to support this. https://learn.microsoft.com/en-us/azure/app-service/overview#app-service-on-linux
upvoted 1 times
...
[Removed]
1 year, 8 months ago
* The question says ResourceGroup is residing in a location that does not support Linux. But where the resource-group resides has no relation to where the Resources (App service, for example) is residing. * Reduce the number of resource group. The totally useless comment like that is just given to create confusion for the benefit of the certification industry The whole discussion in the comments about Windows and Linux App service plan cannot co locate in an RG is totally unrelated. Nobody said about a Windows app service plan. Either the question is wrong or Microsoft just cannot get anything right
upvoted 2 times
...
xRiot007
1 year, 10 months ago
1. Create group (it very states that your current resources do *not* support Linux) 2. Create service plan 3. Create the web app
upvoted 6 times
...
silvatyrant
2 years, 2 months ago
1) Linux and Windows apps can now be deployed in the same RG. 2) They mention doing an initial deployment as well. "az webapp up" is best suited to do this. Not "az webapp create". The "create" action will not do an initial deployment.
upvoted 3 times
dookebroyle
1 year, 10 months ago
I agree, the "right" answer doesn't deploy the app. Webapp up will create a new resource group and app service plan though, so the answer is the same. Your current resource group locations don't support Linux, so your only option was to move them (not supported) or create a new one.
upvoted 1 times
...
...
Mev4953
2 years, 3 months ago
Got this in the exam 01/22
upvoted 3 times
Mev4953
2 years, 3 months ago
No,sorry i didnt. I read wrong :)
upvoted 2 times
...
...
resonant
2 years, 4 months ago
A couple of things to note in this question: 1. It says "Which three Azure CLI commands should you use to develop the solution?" which means that you HAVE to choose 3 options. Therefore, even if it looks like you don't have to create or update a resource group, that should be enough hint that at least you should choose one of them. 2. You can't change the location of a resource group once it is created. Not even with the "az group update" command. With 1. and 2. it should be clear enough that you have to create the resource group anyways, even if you didn't pay attention to the fact that the question says none of the locations of the resource groups already created can have Linux (independently of the fact that Linux and Windows can NOW coexist in the same resource group).
upvoted 13 times
AmineD
1 year, 5 months ago
I totaly agree with the fact that resource group location cannot be changed after creation and since "None of your current resource groups reside in a location that supports Linux" so we have to use "az group create" instead of "az group update" For me the answer is correct Reference: https://learn.microsoft.com/en-us/rest/api/resources/resource-groups/create-or-update
upvoted 2 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