An administrator creates a resource group named `rg-finance-prod` and applies a tag with the key `CostCenter` and value `Finance-12` to the resource group. The administrator then deploys several Azure Virtual Machines and Azure SQL databases into this resource group. To track spending, the administrator runs a query in Azure Cost Management filtered by the `CostCenter: Finance-12` tag.
Which of the following describes the outcome of this query?
- The query will return zero costs for the virtual machines and databases because resources do not automatically inherit tags from their parent resource group.Cevap
- BThe query will automatically include the costs of the virtual machines and databases because resources inherit tags from their parent resource group.
- CThe query will display the costs of the virtual machines and databases classified as Capital Expenditure (CapEx) instead of Operational Expenditure (OpEx).
- DThe query will display the costs of the virtual machines and databases only if an Azure Role-Based Access Control (RBAC) role is assigned to the resources to allow tag inheritance.
Cevap
The query will return zero costs for the virtual machines and databases because resources do not automatically inherit tags from their parent resource group.
In Azure, resources do not automatically inherit tags that are applied to their parent resource group. Because the virtual machines and databases do not have the tag applied directly to them, a query filtered by the tag key and value applied to the resource group will return zero costs for those resources.
Adım Adım Çözüm
Anahtar Kavram
Azure Resource Tag Inheritance
Tahmini Süre:1m 0s