Question
Exhibits
Answer Area
- VNET1:Department: D1 onlyNoneDepartment: D1 onlyDepartment: D1, and RGroup: RG6 onlyDepartment: D1, and Label: Value1 onlyDepartment: D1, RGroup: RG6, and Label: Value1
- VNET2:Label: Value1 onlyNoneRGroup: RG6 onlyLabel: Value1 onlyRGroup: RG6, and Label: Value1
Explanation
For VNET1: The official explanation states that "Resources created before policy creation will not inherit the policy rules." VNET1 was an existing resource with the tag "Department: D1" before the policy was applied to RG6. Therefore, it retains its original tag and does not inherit any new tags from the policy or the tag applied to its resource group.
For VNET2: The official explanation states that the built-in policy definition "Append a tag and its value to resources" applies the specified tag and value when any resource missing that tag is created or updated within the policy's scope. VNET2 is a new virtual network deployed to RG6 after the policy was assigned. The policy assigned to RG6 has parameters "Tag name: Label" and "Tag value: Value1". As VNET2 is a newly deployed resource within the policy's scope and would not have the 'Label' tag initially, the policy appends "Label: Value1" to it.
Topics
Community Discussion
No community discussion yet for this question.
