存在多个范围标识时,规则可能优先读取更广的管理组
原文依据:2 处范围优先级把“最广的组织范围”Management Group 放在第一位,而 Resource Group 和 Subscription 排在其后。这可能扩大成本和资源查询范围。
代理可能读取并汇总用户当前问题不需要的其他订阅、资源组及组织级费用和资源元数据,使更多敏感经营信息进入响应和本地报告。
这是生效的范围选择规则:当上下文中有多个标识时,它把“最广的组织范围”管理组排在资源组和订阅之前。若用户同时提供这些标识,成本或资源查询可能覆盖超出其预期的订阅,并暴露更广的组织数据。用户可要求每次显示最终范围并在管理组级查询前确认。
## Scope Resolution PriorityWhen multiple scope identifiers are available in context, use the following priority order (highest first):| Priority | Scope | Notes ||----------|-------|-------|| 1 | Management Group | Broadest organizational scope. || 2 | Resource Group | Narrowest resource scope. || 3 | Subscription | Default scope for most queries. || 4 | Billing Profile + Invoice Section | MCA billing hierarchy. |查看另外 1 个位置
## Step 1: Determine ScopeIdentify the Azure scope for the cost query from the Scope Reference table in the main [SKILL.md](../SKILL.md#scope-reference-shared-across-all-workflows).