- Use Cases
- Governance, Policy & Risk
- Report subaccounts by region
Report subaccounts by region
This query uses the Provider column. Provider is deprecated in v1.3 and will be removed in v1.4.
FOCUS Versions
v1.0
v1.1
v1.2
Context
FinOps Practitioners must identify if there are any data residency/ localization/ sovereignty inconsistencies. In order to identify any potential anomalies, they would like to see if the resource being billed for exists in the same geography as the primary payer account. If they do not exist in the same geography, the team would like it flagged for analysis.
FOCUS SQL Query
SELECT
ProviderName,
SubAccountId,
RegionId
RegionName,
COUNT(1)
FROM focus_data_table
WHERE ChargePeriodStart >= ? AND ChargePeriodEnd < ?
GROUP BY
ProviderName,
SubAccountId,
RegionId,
RegionName