HOTSPOT - 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:
Answer should be: YYN
No, you cannot add more than one resource lock to an Azure resource. Each resource can only have one lock at a time, either a ReadOnly lock or a CanNotDelete lock
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
YNN.
In Azure, a resource lock is a setting that can be applied to Azure resources to prevent accidental deletion or modification. It's a feature designed to provide an extra layer of protection, ensuring that critical resources remain safe from unintended changes.
YNN.
You can add more than one resource lock to an Azure resource. According to the Microsoft Learn article1, “You can set locks that prevent either deletions or modifications. In the portal, these locks are called Delete and Read-only. In the command line, these locks are called CanNotDelete and ReadOnly.” Therefore, you can apply both a Delete and a Read-only lock to a resource if you want to prevent any changes to it.
You cannot delete a resource group containing resources that have resource locks. According to the Microsoft Learn article1, “If you have a Delete lock on a resource and attempt to delete its resource group, the feature blocks the whole delete operation. Even if the resource group or other resources in the resource group are unlocked, the deletion doesn’t happen. You never have a partial deletion.”
YNN is the answer.
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
As an administrator, you can lock an Azure subscription, resource group, or resource to protect them from accidental user deletions and modifications. The lock overrides any user permissions.
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#lock-inheritance
If you have a Delete lock on a resource and attempt to delete its resource group, the feature blocks the whole delete operation. Even if the resource group or other resources in the resource group are unlocked, the deletion doesn't happen. You never have a partial deletion.
YNN. Proof :
"If you have a Delete lock on a resource and attempt to delete its resource group, the whole delete operation is blocked. Even if the resource group or other resources in the resource group aren't locked, the deletion doesn't happen. You never have a partial deletion."
source : https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
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.
Aunehwet79
Highly Voted 3 years, 3 months agoPooltime123
1 week, 1 day agoContactfornitish
Highly Voted 3 years agoLegendaryZA
Most Recent 4 months, 3 weeks agotnttech
6 months, 3 weeks agoazhrhsn
1 year, 1 month agoTomG
1 year, 6 months agomanofsteel9
1 year, 9 months agozellck
1 year, 10 months agozellck
1 year, 10 months agojqatar
2 years agoluckyiki
2 years, 1 month agoyonie
2 years, 2 months agoTomGray1989
2 years, 2 months agoTanzy360
2 years, 5 months agocantbeme
2 years, 6 months agoYelad
2 years, 7 months agokah1
2 years, 10 months agobillo86
2 years, 10 months agoobaali1990
2 years ago