An Azure subscription contains a resource group with the following configurations:
| Resource Group Name | Tag | Resource Lock |
|---|---|---|
| RG-Services | CostCenter: 4002 | ReadOnly |
You deploy a new Azure Storage account named storebilling inside RG-Services.
You need to perform the following tasks:
- View the configuration properties of storebilling.
- Add a new tag with the key-value pair Project: Audit directly to storebilling.
Which of the following describes the outcome of these tasks?
- You can view the storage account properties, but you cannot add the Project: Audit tag. The CostCenter: 4002 tag is not inherited by the storage account.Answer
- BYou can view the storage account properties and successfully add the Project: Audit tag. The CostCenter: 4002 tag is automatically inherited by the storage account.
- CYou cannot view the storage account properties and cannot add the Project: Audit tag. The CostCenter: 4002 tag is not inherited by the storage account.
- DYou can view the storage account properties, but you cannot add the Project: Audit tag because the inherited CostCenter: 4002 tag prevents additional tags from being added.
Answer
You can view the storage account properties, but you cannot add the Project: Audit tag. The CostCenter: 4002 tag is not inherited by the storage account.
The correct option correctly states that viewing the properties is successful because ReadOnly locks allow GET requests. It also correctly states that you cannot add the tag because adding tags is a write operation blocked by the inherited ReadOnly lock. Finally, it correctly reflects that tags applied to a resource group are not inherited by resources.
Step-by-Step Solution
Key Concept
Azure resource locks (specifically ReadOnly locks) are inherited by child resources and prevent write operations while allowing read operations. Azure tags are not inherited from resource groups to child resources.