exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 37 discussion

Actual exam question from Microsoft's AZ-104
Question #: 37
Topic #: 4
[All AZ-104 Questions]

HOTSPOT -
You have Azure subscriptions named Subscription1 and Subscription2.
Subscription1 has following resource groups:

RG1 includes a web app named App1 in the West Europe location.
Subscription2 contains the following resource groups:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -
RG2 is read only. ReadOnly means authorized users can read a resource, but they cannot delete or update the resource.

Box 2: Yes -

Box 3: Yes -
Note:
App Service resources are region-specific and cannot be moved directly across regions. You can move the App Service resource by creating a copy of your existing App Service resource in the target region, then move your content over to the new app. You can then delete the source app and App Service plan.
To make copying your app easier, you can clone an individual App Service app into an App Service plan in another region.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/manage-move-across-regions https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/app-service-move-limitations

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
fedztedz
Highly Voted 4 years, 2 months ago
Answer is Correct. Yes Yes Yes - the lock is only effecting the resources itself with edit/delete. Which means If the resource is in a resource group with no lock types then it is free to move to any other group even if the other group has lock type read only or delete. However if the resource is a RG with read-only lock , it can NOT be moved. In case of no delete lock , it can be moved.
upvoted 132 times
s9p3r7
3 years, 8 months ago
NYY, I just test it the first one , moving resources to a read-only RG will fail in the validation operation with "cannot perform write operation because following scope(s) are locked..."
upvoted 54 times
Shailen
3 years, 8 months ago
Yes NYY is the correct answer, since move resources to read only RG will raise error "ResourceMovePolicyValidationFailed"
upvoted 17 times
...
...
c75e123
2 months, 1 week ago
Cornet: Yes, Yes, Yes A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group. But note that a resource with read-only lock can be moved to another resource group. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#considerations-before-applying-your-locks
upvoted 1 times
c75e123
2 months, 1 week ago
Correction: based on the sources I provided: No, Yes, Yes,
upvoted 5 times
...
...
2d153f5
3 months, 2 weeks ago
No. You are wrong. The read/only lock affect to create operations.
upvoted 3 times
...
Sanaz90
4 months, 2 weeks ago
I wonder how 131 people can be wrong on something simple like this. Tested and the answer is NYY
upvoted 8 times
...
...
mlantonis
Highly Voted 3 years, 9 months ago
Correct Answer: Locks are designed for any update or removal. In this case we want to move only, we are not deleting, and we are not changing anything in the resource. For this reason, all of them are 'Y'. Box 1: Yes Box 2: Yes Box 3: Yes
upvoted 87 times
cosmicT73
1 month, 2 weeks ago
according to the MS link, the first is definitely No: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?utm_source=chatgpt.com&tabs=json
upvoted 3 times
...
edurakhan
12 months ago
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group. NYY
upvoted 10 times
...
osnop
3 years, 9 months ago
I tested the first question and i cannot move resources in a RG with a Read-Only lock, so the Box1 should be "No"
upvoted 22 times
pappkarcsiii
3 years ago
Tried again, same. Cant move: {"code":"ResourceMovePolicyValidationFailed","message":"Resource move policy validation failed. Please see details. Diagnostic information: subscription id '082877ab-8970-41b0-8ba8-5246ccda0cbe', request correlation id 'eec62f30-ecd6-49b1-995c-e8efc3072e0a'.","details":[{"code":"ResourceMovePolicyValidationFailed","target":"Microsoft.Network/Microsoft.Network/virtualNetworks/test1","message":"{\"error\":{\"code\":\"ScopeLocked\",\"message\":\"The scope '/subscriptions/082877ab-8970-41b0-8ba8-5246ccda0cbe/resourcegroups/pk_test_2/providers/Microsoft.Network/virtualNetworks/test1' cannot perform write operation because following scope(s) are locked: '/subscriptions/082877ab-8970-41b0-8ba8-5246ccda0cbe/resourceGroups/pk_test_2'. Please remove the lock and try again.\"}}"}]}
upvoted 12 times
...
op22233
10 months, 2 weeks ago
Many thanks for the clarrification
upvoted 1 times
...
...
Dileep75
2 years, 8 months ago
Box 1 is No, you can not move when you have read only lock.
upvoted 7 times
...
...
155e6a0
Most Recent 5 months, 1 week ago
N - verified in lab Y Y
upvoted 6 times
...
kejo2
5 months, 3 weeks ago
Just tested it on my Lab environment. The answer is NYY. The first move to a read-lock, you will receive the below error: Why the other move to RG3 & RG4 validation status was successfully. {"message":"Resource move policy validation failed. Please see details. Diagnostic information: subscription id '4b52c793-3612-4942-a61f-2caf2d665ccf', request correlation id '11851295-890b-471a-b5aa-bfc9b3d2da1c'. (Code: ResourceMovePolicyValidationFailed) The scope '/subscriptions/4b52c793-3612-4942-a61f-2caf2d665ccf/resourcegroups/RG2/providers/Microsoft.Web/serverFarms/ASP-RG1-94c1' cannot perform write operation because following scope(s) are locked:
upvoted 1 times
...
[Removed]
5 months, 4 weeks ago
WRONG Yes Yes Yes Moving is not locked.
upvoted 2 times
...
Nino1928
7 months, 3 weeks ago
Isnt it No, No, No? An app is regional right, it cant be moved to another region you'll have to make a new app?
upvoted 3 times
certainly
6 months ago
I agreed with you once. but change my mind after i re-reading. The question is about moving app. not about "directly moving" it across regions . so answer NYY is correct.
upvoted 1 times
...
...
ayegwalo
7 months, 4 weeks ago
NNY, When you move a Web App to a different subscription, the location of the Web App remains the same, but its policy is changed. For example, if your Web App is in Subscription1 located in Central US and has Policy1, and Subscription2 is in the UK South and has Policy2. If you move the Web App to Subscription2, the location of the Web App remains the same (Central US); however, it will be under the new policy which is policy2. LINK. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/app-service-move-limitations
upvoted 1 times
...
Ni22
8 months, 3 weeks ago
6/13/24 on exam
upvoted 5 times
...
76d5e04
8 months, 3 weeks ago
Exam Topic admin Azure cloud undergoes a lot of changes now and then e.g. Log Analytics agent will be invalid after 2024-August. So please update the discussions which are not relevant to the current situation. A 3 year back discussion may be or not at all relevant. The below discussion confuses and makes to do a lot of researches and not able to come to a conclusion. Please be considerate to your clients who have purchased this course Answer is Correct. Yes Yes Yes - the lock is only effecting the resources itself with edit/delete. Which means If the resource is in a resource group with no lock types then it is free to move to any other group even if the other group has lock type read only or delete. However if the resource is a RG with read-only lock , it can NOT be moved. In case of no delete lock , it can be moved
upvoted 3 times
...
Forkbeard
9 months, 3 weeks ago
What I find frustrating is that re-creating a new App Service and deleting the old one is referred to here as 'moving' the App Service, while in earlier questions we were told that moving a VM to a different VNET was not possible, instead we needed to re-create the VM and delete the old one. So in one case re-creation is called moving, in another case not.
upvoted 2 times
itismadu
4 months, 2 weeks ago
i came reading all the comments for such. I presume we cant just move. You haveve to create anther AP service
upvoted 1 times
itismadu
4 months, 2 weeks ago
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/app-service-move-limitation complicated to move
upvoted 1 times
...
...
...
Arash123
11 months, 2 weeks ago
Answer is correct: You cannot move a resource to a ReadOnly locked RG. Here is result of my test: cannot perform write operation because following scope(s) are locked: '/subscriptions/f8d93f6e-2b7c-4db1-b903-/resourceGroups/test'. Please remove the lock and try again.
upvoted 2 times
...
Sekkakizzan
11 months, 3 weeks ago
Correct: answer is N,Y,Y We can not move resources while Readonly lock is active https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#:~:text=A%20read%2Donly%20lock%20on%20a%20resource%20group%20prevents%20you%20from%20moving%20existing%20resources%20in%20or%20out%20of%20the%20resource%20group.
upvoted 1 times
...
marcosfmarcos2020
12 months ago
Attention! The answer is N-Y-Y. Probably some things changed and cause that you gonna see a lot of YYY in he comments but are you e mayority old comments
upvoted 2 times
...
Amir1909
1 year ago
No Yes Yes
upvoted 2 times
...
MatAlves
1 year, 1 month ago
1. N - "A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group." 2. Y - nothing mentioned about "delete lock" move operations 3. Y - Neither rg1 or rg4 have locks. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
upvoted 1 times
...
EzBL
1 year, 2 months ago
No, you cannot directly move a web app from one resource group in a subscription to another resource group in a different subscription RG3 and RG4 are in subscription2 not in subscription1, then App1 cannot be moved to them.
upvoted 1 times
MiniLa92
7 months, 1 week ago
You can move Azure App services across RGs and subscriptions https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/app-service-move-limitations
upvoted 1 times
...
...
alverdiyev91
1 year, 2 months ago
N-Y-Y A read-only lock on a resource group prevents users from moving any new resource into that resource group. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
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