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:

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, 6 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 134 times
Alcpt
2 weeks, 6 days ago
the answer is N-Y-Y I took the time to create a new RG with a RO lock in a different region and tried to move a webapp with the result below: {"message":"Resource move policy validation failed. Please see details. Diagnostic information: subscription id '<>', request correlation id '<>'. (Code: ResourceMovePolicyValidationFailed) The scope '/subscriptions/<>/resourcegroups/amba-webapp2/providers/Microsoft.Web/sites/amba-webapp' cannot perform write operation because following scope(s) are locked: '/subscriptions/<>/resourceGroups/amba-webapp2'. Please remove the lock and try again. (Code: ScopeLocked, Target: Microsoft.Web/Microsoft.Web/sites/amba-webapp)","code":"ResourceMovePolicyValidationFailed","name":"BatchResponseItemError","stack":"BatchResponseItemError: Resource move policy validation failed.
upvoted 1 times
...
s9p3r7
3 years, 11 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 56 times
Shailen
3 years, 11 months ago
Yes NYY is the correct answer, since move resources to read only RG will raise error "ResourceMovePolicyValidationFailed"
upvoted 17 times
...
...
c75e123
5 months, 3 weeks 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
5 months, 3 weeks ago
Correction: based on the sources I provided: No, Yes, Yes,
upvoted 6 times
...
...
2d153f5
7 months ago
No. You are wrong. The read/only lock affect to create operations.
upvoted 3 times
...
...
mlantonis
Highly Voted 4 years 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
4 months, 4 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
1 year, 3 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
4 years 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 23 times
pappkarcsiii
3 years, 4 months 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
1 year, 1 month ago
Many thanks for the clarrification
upvoted 1 times
...
...
Dileep75
2 years, 11 months ago
Box 1 is No, you can not move when you have read only lock.
upvoted 7 times
...
...
MiiExamT
Most Recent 2 months, 3 weeks ago
Amount of people voting wrong ans here are staggering Tested in Lab: App1 can be moved to RG2 : NO (Read Lock error on RG2) App1 can be moved to RG3 : YES App1 can be moved to RG4 : YES Note: Some services like App Service can't be moved across regions, here Q is about web app which is eligible to move
upvoted 2 times
...
155e6a0
8 months, 3 weeks ago
N - verified in lab Y Y
upvoted 7 times
...
kejo2
9 months, 1 week 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]
9 months, 1 week ago
WRONG Yes Yes Yes Moving is not locked.
upvoted 2 times
...
Nino1928
11 months, 1 week 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
9 months, 2 weeks 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
11 months, 1 week 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
1 year ago
6/13/24 on exam
upvoted 5 times
...
76d5e04
1 year 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
1 year, 1 month 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
8 months 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
8 months 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
1 year, 2 months 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
1 year, 3 months 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
1 year, 3 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, 4 months ago
No Yes Yes
upvoted 2 times
...
MatAlves
1 year, 4 months 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, 5 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
10 months, 3 weeks 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
...
...
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 ...